You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2019/04/19 22:15:35 UTC

[Bug 63367] New: Static content with trailing decimal in the URL shown as not found (404 response)

https://bz.apache.org/bugzilla/show_bug.cgi?id=63367

            Bug ID: 63367
           Summary: Static content with trailing decimal in the URL shown
                    as not found (404 response)
           Product: Tomcat 8
           Version: 8.0.24
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connectors
          Assignee: dev@tomcat.apache.org
          Reporter: mark.reyes@ucop.edu
  Target Milestone: ----

Hello,

I find that Tomcat 8 will not serve up static content with a trailing decimal
in
the URL.  A response code of 404 is served up, not the static content.

My configuration is a symbolic link in the webapps/ directory. e.g.

         <Context path="/externalData" docBase="externalData">
            <Resources>
               allowLinking="true"
            </Resources>
         </Context>

A sample request URL that will fail is the following.  Note that the file
"externalData/trailingDot." exists on the file system.

         http://localhost:8080/externalData/trailingDot.

I have tried to URL encode the period in the request, but the problem still
exists.



Instance information
--------------------
Server version: Apache Tomcat/8.0.24
Server built:   Jul 1 2015 20:19:55 UTC
Server number:  8.0.24.0
OS Name:        Linux
OS Version:     4.14.104-78.84.amzn1.x86_64
Architecture:   amd64
JVM Version:    1.8.0_201-b09
JVM Vendor:     Oracle Corporation

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63367] Static content with trailing decimal in the URL shown as not found (404 response)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63367

--- Comment #3 from Mark Reyes <ma...@ucop.edu> ---
I have confirmed that the problem is resolved by upgrading to either Tomcat 8.5
or Tomcat 9.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63367] Static content with trailing decimal in the URL shown as not found (404 response)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63367

Konstantin Kolinko <kn...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Konstantin Kolinko <kn...@gmail.com> ---
Tomcat 8.0 has reached End of Life and is no longer supported.


>            <Resources>
>               allowLinking="true"
>            </Resources>

BTW, the above fragment has "allowLinking" misplaced, so that it is interpreted
as text content of an XML element and thus it is ignored by Tomcat.

An attribute of an XML element should precede the '>' symbol of its opening
tag.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 63367] Static content with trailing decimal in the URL shown as not found (404 response)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63367

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
For the record I can't reproduce this on 9.0.x or 7.0.x which suggests that
this is an old bug or a configuration error.

The users list is the place to obtain further support if required.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org