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

Christopher Schultz <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #17 from Christopher Schultz <[email protected]> ---
(In reply to cristi from comment #14)
> test1.jsp needs a mysql 5.5 server, with a 'tomcaterror' databae. I am sorry
> I was unable to produce a simpler example... 

This really should not require a MySQL database to test. It should be
sufficient to write a short JSP or similar that calls
getResource().getContent().

(In reply to cristi from comment #15)
> I can also confirm that replacing getContent() with getInputStream() works.
> So for me this is not a blocker but maybe this information is useful.

URL.getContent() is always going to be problematic if the server doesn't return
something that is usable by URL.getContent to figure out what type of data to
return to you.

I would *highly* recommend that you always just use
getResource().getInputStream() because theoretically you already know what kind
of data you are expecting. Don't use URL.getContent() as a shortcut to reading
some String value from a file.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to