Issue Details (XML | Word | Printable)

Key: GLASSFISH-11751
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Shing Wai Chan
Reporter: vince kraemer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
glassfish

loading admin gui alters mime type mappings

Created: 05/Apr/10 11:10 AM   Updated: 26/Apr/10 01:06 PM   Resolved: 26/Apr/10 01:06 PM
Component/s: web_container
Affects Version/s: v3.0.1
Fix Version/s: v3.0.1

Time Tracking:
Not Specified

Environment:

Operating System: Mac OS X
Platform: Macintosh


Issuezilla Id: 11,751
Tags: v3_0_1_approved
Participants: jluehe, Shing Wai Chan and vince kraemer


 Description  « Hide

See http://netbeans.org/bugzilla/show_bug.cgi?id=183460 for details.

I was able to reproduce this issue without NB in the picture.

here is a quick sbs...

touch the file domains/domain1/docroot/wgfaSftCapture3.wmv

start the server

run the app attached to the NB issue... note the content type...

use the browser to open the admin gui

run the app attached to the nb issue... the content-type is different.



jluehe added a comment - 05/Apr/10 11:30 AM

Before the admin gui is accessed, a request for

domains/domain1/docroot/wgfaSftCapture3.wmv

will be handled by the Grizzly layer directly, that is, default-web.xml is not
in the picture.

Accessing the admin gui will cause the web container to be launched. From that
point onward, a request for

domains/domain1/docroot/wgfaSftCapture3.wmv

will be handled by the (dummy) web module created around the virtual server's
docroot, and the MIME mappings in default-web.xml will be consulted.


Shing Wai Chan added a comment - 05/Apr/10 05:42 PM

...


Shing Wai Chan added a comment - 05/Apr/10 06:10 PM

Sending web-core/src/main/java/org/apache/catalina/Connector.java
Sending web-core/src/main/java/org/apache/catalina/connector/Connector.java
Sending
web-core/src/main/java/org/apache/catalina/connector/CoyoteAdapter.java
Sending
web-glue/src/main/java/com/sun/enterprise/web/connector/coyote/PECoyoteConnector.java
Transmitting file data ....
Committed revision 36305.


Shing Wai Chan added a comment - 06/Apr/10 12:43 PM

Sending src/main/java/org/apache/catalina/connector/CoyoteAdapter.java
Transmitting file data .
Committed revision 36321.


Shing Wai Chan added a comment - 07/Apr/10 12:28 PM

Revert the previous fix as it breaks Servlet 3.0 TCK.
Sending web-core/src/main/java/org/apache/catalina/Connector.java
Sending web-core/src/main/java/org/apache/catalina/connector/Connector.java
Sending
web-core/src/main/java/org/apache/catalina/connector/CoyoteAdapter.java
Sending
web-glue/src/main/java/com/sun/enterprise/web/connector/coyote/PECoyoteConnector.java
Transmitting file data ....
Committed revision 36338.

The correct fix should be in Grizzly. And the code is under reviewed.


Shing Wai Chan added a comment - 08/Apr/10 09:32 AM

Fix checkin in Grizzly.
Sending http/src/main/java/com/sun/grizzly/http/ProcessorTask.java
Transmitting file data .
Committed revision 4420.

The fix will be available in the coming Grizzly integration.


Shing Wai Chan added a comment - 12/Apr/10 12:07 PM

add v3.0.1_approved, will commit the change to branch soon


Shing Wai Chan added a comment - 12/Apr/10 02:16 PM

Port fix to Grizzly 1.9.18m tags
Sending http/src/main/java/com/sun/grizzly/http/ProcessorTask.java
Transmitting file data .
Committed revision 4429.


Shing Wai Chan added a comment - 12/Apr/10 02:47 PM

Sending PECoyoteConnector.java
Transmitting file data .
Committed revision 36442.


Shing Wai Chan added a comment - 26/Apr/10 01:06 PM

additional fix in Grizzly that allow setting default response type to be null
Sending http/src/main/java/com/sun/grizzly/http/ProcessorTask.java
Transmitting file data .
Committed revision 4479.