This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 183460 - pojo app which GETs a file from gfv3 get different CotentType mime type depending
Summary: pojo app which GETs a file from gfv3 get different CotentType mime type depen...
Status: RESOLVED INVALID
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: PC Other
: P3 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-04 19:34 UTC by emiddio
Modified: 2010-04-05 21:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
example test java program used to discover issue (3.43 KB, application/octet-stream)
2010-04-04 19:34 UTC, emiddio
Details
discussion -- copied from a post (6.96 KB, text/plain)
2010-04-05 19:28 UTC, emiddio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emiddio 2010-04-04 19:34:21 UTC
Created attachment 96658 [details]
example test java program used to discover issue

pojo app which GETs a file from gfv3 get different CotentType mime type depending on if gfv3 Admin Console has been loaded or not -- if the mimeType is not declared in gfv3 default-web.xml;

example -- when i GET a WMV file from my gfv3 -- the WMV mime type is not declared/defined in gfv3 default-web.xml

before Admin Console app is loaded in gfv3 -- i get ContentType:text/plain;charset=iso-8859-1;

after Admin Console is loaded i get ContentType:null

this info has been posted to glassfish, grizzly, and netbeans mailing lists.

i do not know which component is responisble -- but it seems the ContentType should be the same ???
Comment 1 Vince Kraemer 2010-04-05 15:54:33 UTC
Please provide the steps necessary to reproduce this issue.
Comment 2 Vince Kraemer 2010-04-05 16:00:44 UTC
I just read through the attached app...

What role do you think NetBeans is playing in this situation?

Did you file an issue against GlassFish v3?
Comment 3 emiddio 2010-04-05 19:07:13 UTC
i do not know what role.

i know netbeans triggers gfv3 Admin Console app to load if gfv3 is running
and i use netbeans to debug my client test java pgm;

if after gvf3 loads console app -- i stop/restart gfv3 with netbeans(without stop/restart of netbeans) -- the next time i debug run my test client program -- gfv3 will not load the console app;

console app is normally triggered to load with connection to
http://localhost:4848 -- but netbeans somehow triggers it to load
when debugger is used with my test program;

also -- if i attempt debugger attach to gfv3 -- does not matter if
gfv3 has been started in debug mode - just that gfv3 has been started
by netbeans -- the console app is triggered to load.

again if netbeans stop/restarts gfv3 -- does not happen next time experiment is run.

also file netbeans bug 
http://netbeans.org/bugzilla/show_bug.cgi?id=183459
regarding issue discussed here;

i filed bugs with glassfish/grizzly -- not directly related to the mime-type,
related to receiving a short file -- which discovered was fixed in gfv3.1beta1.
that bug filed on netbeans as 
https://netbeans.org/bugzilla/show_bug.cgi?id=181640

for reference see
https://glassfish.dev.java.net/issues/show_bug.cgi?id=11651
https://grizzly.dev.java.net/issues/show_bug.cgi?id=804
Comment 4 emiddio 2010-04-05 19:28:57 UTC
Created attachment 96708 [details]
discussion -- copied from a post

please read the attached info
Comment 5 Vince Kraemer 2010-04-05 20:05:27 UTC
this is completely outside of NB control... see https://glassfish.dev.java.net/issues/show_bug.cgi?id=11751...

closing as invalid, since this issue is filed in the wrong issue tracker
Comment 6 emiddio 2010-04-05 21:25:56 UTC
thanks for getting some traction on the issue -- i was getting no response
from my glassfish/grizzly reports.
Comment 7 emiddio 2010-04-05 21:37:02 UTC
so what about the issue of debugger attach attempt to gfv3 by netbeans,
or running test pgm in debugger mode - causes gfv3 to load
admin console ???

this is caused by netbeans -- seems like it should not happen ?

should i file a different report ? and where ?

thanks