Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8972

[GSS](7.1.0) static content under jboss-web.xml overlay directory is not served correctly after the content is updated

    Details

    • Steps to Reproduce:
      Hide
      1. Create a directory /tmp/files for overlay
      2. Start JBoss EAP 7.0.5 or later
      3. Deploy an web app having <overlay> setting in jboss-web.xml
        <?xml version="1.0" encoding="UTF-8"?>
        <jboss-web xmlns="http://www.jboss.com/xml/ns/javaee"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-web_10_0.xsd"
                   version="10.0">
          <overlay>/tmp/files/</overlay>
        </jboss-web>
        
      4. echo 'aaa' > /tmp/files/aaa.txt
      5. curl -v http://localhost:8080/example/aaa.txt
        • aaa is displayed -> correct
      6. echo 'edited' > /tmp/files/aaa.txt
      7. curl -v http://localhost:8080/example/aaa.txt
        • edited is displayed -> correct
      8. echo 'edited2' > /tmp/files/aaa.txt
      9. curl -v http://localhost:8080/example/aaa.txt
        • edit is displayed -> wrong
        • edited2 should be displayed but it looks truncated
      Show
      Create a directory /tmp/files for overlay Start JBoss EAP 7.0.5 or later Deploy an web app having <overlay> setting in jboss-web.xml <?xml version= "1.0" encoding= "UTF-8" ?> <jboss-web xmlns= "http: //www.jboss.com/xml/ns/javaee" xmlns:xsi= "http: //www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http: //www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-web_10_0.xsd" version= "10.0" > <overlay>/tmp/files/</overlay> </jboss-web> echo 'aaa' > /tmp/files/aaa.txt curl -v http://localhost:8080/example/aaa.txt aaa is displayed -> correct echo 'edited' > /tmp/files/aaa.txt curl -v http://localhost:8080/example/aaa.txt edited is displayed -> correct echo 'edited2' > /tmp/files/aaa.txt curl -v http://localhost:8080/example/aaa.txt edit is displayed -> wrong edited2 should be displayed but it looks truncated

      Description

      Static content under jboss-web.xml <overlay> directory is not served correctly after the content is updated.

      This issue does not happen with the exploded application, so a possible suspect is cache resource handling.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  swd847 Stuart Douglas
                  Reporter:
                  swd847 Stuart Douglas
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: