Uploaded image for project: 'Magnolia Test Framework'
  1. Magnolia Test Framework
  2. MGNLTEST-236

MagnoliaRestClient#nodeExists fails to figure the existence of node-names with UTF8-chars in the node name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.3.2
    • None

      This leads to a couple of problems with test operating with UTF8-chars in the node name. 

      Note that the MagnoliaHttpClient does find such a node (on website workspace) - but the MagnoliaRestClient fails.

          @Test
          @Fixture(fixtureFile = "website.ääööüü.yaml", repository = WEBSITE)
          void nodeExistsWorksForUTF8NodeNames(MagnoliaHttpClient magnoliaHttpClient) throws IOException {
              boolean nodeExistsAccordingToMagnoliaRestClient = client.nodeExists(WEBSITE, "/ääööüü");
              int responseStatus = magnoliaHttpClient.get(
                      magnoliaHttpClient.user(new User() {
                          @Override
                          public String getUserName() {
                              return "superuser";
                          }
      
                          @Override
                          public String getPassword() {
                              return "superuser";
                          }
                      }).instance(Instance.DIRECT_AUTHOR).path("/ääööüü").build()).code();
              boolean nodeExistsAccordingToMagnoliaHttpClient = 200 == responseStatus;
      
              assertEquals(nodeExistsAccordingToMagnoliaHttpClient, nodeExistsAccordingToMagnoliaRestClient);
          }
      

      The above test fails.
      While debugging & checking JCR-app. it becomes clear that

      • website.ääööüü.yaml is bootstrapped properly.
      • MagnoliaRestClient cannot find the node with nodeExists
      • but the MagnoliaHttpClient does find the node.

      The issue may be ther underlying reason for MGNLTEST-235

        Acceptance criteria

              mduerig Michael Duerig
              cmeier Christoph Meier
              Foundation
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 5.5h
                    5.5h