HTTP-404 Errors When Serving Files With Ntilde Characters (ñ And Ñ) In Oracle Application Server 10.1.2
Last updated on OCTOBER 13, 2017
Applies to:Oracle Containers for J2EE - Version 10.1.2.0.2 and later
Information in this document applies to any platform.
A custom application creates PDF files with filenames containing ntilde characters, ñ or UTF code point U+00F1 and Ñ or UTF code point U+00D1.
After implementing a variation of the workaround in <Note: 472674.1> : Oracle HTTP Server Returns "404 Not Found" Error if URL Contains Non-ASCII Characters, the files can be retrieved when served. However, when the file is moved under the OC4J web application root, the "404 Not Found" errors return.
1. There is no problem with the actual content of the file.
2. A file whose filename contains a non-ASCII character (ntilde) cannot be served by OC4J as static content.
For an easily reproducible test case, using a default install of Oracle Application Server 10gR2 (10.1.2.0.2), you can create such a file using the command:
Retrieving this URL via http://server.example.com/IsWebcacheWorking/TañaMarie.txt will return the error:
<HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>404 Not Found</H1>Resource /IsWebCacheWorking/Ta%C3%B1aMarie.txt not found on this server</BODY></HTML>
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms