On Sat, Dec 11, 2010 at 8:53 AM, Andrea Aime
<[email protected]> wrote:
> On Sat, Dec 11, 2010 at 12:00 AM, Rob Atkinson <[email protected]> 
> wrote:
>> moral support, at the very least :-)
>>
>> I'll forward it on to the OGC as well - and see if I can get a
>> response. There is an emerging discussion on HTTP protocol and
>> browser-friendliness...

Made a bit more tests, the results are really not looking good.
The pastures are green for those that use a browser worthy of thy name
and recent OGC service versions, but for everyone else an unusable
debugging experience is there waiting for us to enable http error codes
in responses.

My last hope is that I may have did something stupid in how I set the
http status.
Currently I just use HTTPServletResponse.setStatus(int) and then
write out the service exception.
The only alternative I see would be to use
HTTPServletResponse.sendError(int, message), but by javadoc
that sets the content type to html and builds a small html page
around the error message.
Anyways, if anyone has ideas the patch is here:
http://jira.codehaus.org/browse/GEOS-4255

It's probably time to start thinking about workarounds here, since
all IE versions I tried fail to deliver any meaningful error back.
Ideas:
- set a custom header like ogcHttpStatus instead? That would
  break OWS 2.0 compliance, but at the same not sure what
  service out there is using OWS 2.0.
  WCS 2.0 and WFS 2.0 maybe? Not sure
  This work around should still make monitoring statistics software
  life easier
- the above plus browser detection: if the client is a known to be
  broken one (that is, IE) set the status to 200 nevertheless.
  At least the well behaved part of the internet can have proper
  status codes with the newer OGC services

Opinions?

Cheers
Andrea

-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584962313
fax:     +39 0584962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-----------------------------------------------------

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to