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

Item names with trailing spaces should not be allowed

    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

        1. OAK-1624.patch
          5 kB
          Angela Schreiber

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: