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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.8.CR1, 7.0.8.GA
    • 7.0.6.GA
    • Undertow
    • None
    • 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
    • EAP 7.0.8

    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.

      Attachments

        Issue Links

          Activity

            People

              chaowan@redhat.com Chao Wang
              rhn-support-mmiura Masafumi Miura
              Michael Cada Michael Cada
              Michael Cada Michael Cada
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: