Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-2256

Resource predicate presentation differs depending on how it is set up

    There seems to be a difference in UX in 'resource' predicate render depending on how it is used.

    "path-prefix(/foo)-> { set(attribute=%U,value=${remaining}); resource(location='/home/baranowb/redhat/tmp/test-dir',allow-listing=true) }"
    

    resource_with_uri_alter.png
    vs

    "path-prefix(/foo2)-> resource(location='/home/baranowb/redhat/tmp/test-dir2',allow-listing=true)"
    

    resource_no_uri_alter.png

    Possible source of this might be: https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/server/handlers/resource/DirectoryUtils.java#L98 ?

          [UNDERTOW-2256] Resource predicate presentation differs depending on how it is set up

          Bartosz Baranowski added a comment - https://github.com/undertow-io/undertow/blob/master/servlet/src/main/java/io/undertow/servlet/handlers/DefaultServlet.java#L180 ?

          Letting this one go for now, just in case someone wants to pick it up.

          Bartosz Baranowski added a comment - Letting this one go for now, just in case someone wants to pick it up.

            dkafe Dimitris Kafetzis
            rhn-cservice-bbaranow Bartosz Baranowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: