Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1624

Item names with trailing spaces should not be allowed

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 0.20
    • core, jcr
    • None

    Description

      the following should fail:

              Node hello = session.getRootNode().addNode("hello");
              session.save();
      
              Node illegal = hello.addNode("test "); <-- here
              session.save();
      
              assertEquals("/hello/test ", illegal.getPath()); <-- and here
      
              Node other = session.getNode("/hello/test "); <-- and here
              assertTrue(other.isSame(illegal));
              assertTrue(session.nodeExists("/hello/test ")); <-- and here
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            tripod Tobias Bocanegra
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment