Tricky question, if I request /%20 (which is the equivalent of the space) on some servers I always get a 404, so this is handled as a valid request to a resource with the name " " So one could argue that map should just work and leave it untouched I'm fine with 1) as well, but I wouldn't do 2)
Carsten 2012/1/13 Justin Edelson <jus...@justinedelson.com>: > I discovered today that JcrResourceResolver.map(" ") throws a > NullPointerException from inside the mangleNamespaces() method. This > is unintuitive, so I was trying to make it more intuitive. > > But then I got stuck trying to think about what it should do. I've > come up with two options, but am open to others. Note - this isn't a > formal vote (unless someone else feels it should be): > > 1) throw IllegalArgumentException. In this case, map("") should > probably throw this exception as well. > 2) return the root node (which is what map("") does currently). > > WDYT? -- Carsten Ziegeler cziege...@apache.org