Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-22696

(7.4.z) static content under jboss-web.xml overlay directory is not served correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 7.2.5.GA
    • Undertow
    • None
    • False
    • False
    • Hide
      1. Create a directory /tmp/files for overlay
      2. Start JBoss EAP 7.2.5.GA
      3. Deploy an web app having <overlay> setting in jboss-web.xml
        <?xml version="1.0" encoding="UTF-8"?>
        <jboss-web>
          <overlay>/tmp/files/</overlay>
        </jboss-web>
        
      1. echo 'aaa' > /tmp/files/index.html
        • Notice that index.html already exist in the web app
      2. curl[ http://localhost:8080/JSPSample/index.html|http://localhost:8080/JSPSample/index.html]
        • aaa is not displayed -> wrong
      3. echo '111' > /tmp/files/index1.html
        • Notice that index1.html does not exist in the web app
      4. curl http://localhost:8080/JSPSample/index1.html
        • 111 is displayed -> right
      5. echo '222' > /tmp/files/index1.html
        • Notice that index1.html does not exist in the web app but is modified in the overlay
      6. curl http://localhost:8080/JSPSample/index1.html
        • 222 is displayed -> right

       

      However, if I create the overlay with CLI it works:

      1. echo 'aaa' > /tmp/overlay/index.html
      2. deployment-overlay add --name=myOverlay --content=index.html=/tmp/overlay/index.html --deployments=JSPSample.war --redeploy-affected
      3. curl http://localhost:8080/JSPSample/index.html
        • aaa is displayed -> correct

      But If I modify the index.html the result is not updated:

      1. echo 'bbb' > /tmp/overlay/index.html
      2. curl http://localhost:8080/JSPSample/index.html
        • bbb is not displayed -> wrong
      Show
      Create a directory  /tmp/files  for overlay Start JBoss EAP 7.2.5.GA Deploy an web app having  <overlay>  setting in jboss-web.xml <?xml version= "1.0" encoding= "UTF-8" ?> <jboss-web> <overlay>/tmp/files/</overlay> </jboss-web> echo 'aaa' > /tmp/files/index.html Notice that index.html already exist in the web app curl[ http://localhost:8080/JSPSample/index.html |http://localhost:8080/JSPSample/index.html] aaa is not displayed -> wrong echo '111' > /tmp/files/index1.html Notice that index1.html does not exist in the web app curl http://localhost:8080/JSPSample/index1.html 111 is displayed -> right echo '222' > /tmp/files/index1.html Notice that index1.html does not exist in the web app but is modified in the overlay curl http://localhost:8080/JSPSample/index1.html 222 is displayed -> right   However, if I create the overlay with CLI it works: echo 'aaa' > /tmp/overlay/index.html deployment-overlay add --name=myOverlay --content=index.html=/tmp/overlay/index.html --deployments=JSPSample.war --redeploy-affected curl http://localhost:8080/JSPSample/index.html aaa is displayed -> correct But If I modify the index.html the result is not updated: echo 'bbb' > /tmp/overlay/index.html curl http://localhost:8080/JSPSample/index.html bbb is not displayed -> wrong

    Attachments

      Issue Links

        Activity

          People

            Unassigned Unassigned
            dseveria@redhat.com David Severiano
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: