[Geoserver-devel] WFS 1.1 exception content type: application/xml (should it be text/xml?)

Hi,

Is this message from geoserver-users related in any way or is it just coincidence that it deals with application/xml and text/xml?

Dmitriy wrote:

“Yes Christian, j2ee filter is in the rest filter chain settings. In any case, I found a solution by changing the header Content-type to application/xml instead of text/xml. Now everything works.”

-Jukka Rahkonen-

···

Lähettäjä: Justin Deoliveira [mailto:jdeolive@anonymised.com…]
Lähetetty: 5. syyskuuta 2013 17:13
Vastaanottaja: Andrea Aime
Kopio: Geoserver-devel
Aihe: Re: [Geoserver-devel] WFS 1.1 exception content type: application/xml (should it be text/xml?)

Hmmm… not really that I can recall. If anything it would probably be something to ensure cite tests pass. But it also may just be a default that was chosen and the cite tests don’t exercise it.

I guess i would go ahead and change it and run the cite tests to verify nothing breaks. And if so then go ahead with the change.

On Thu, Sep 5, 2013 at 4:52 AM, Andrea Aime <andrea.aime@anonymised.com…> wrote:

Hi,

I’ve noticed that GeoServer now returns a content type of “application/xml”

in OWS10ServiceExceptionHandler

https://github.com/geoserver/geoserver/blob/master/src/ows/src/main/java/org/geoserver/ows/OWS10ServiceExceptionHandler.java#L95

However, looking at the OWS 1.0 specification I see no mention of the application/xml format, and while I haven’t seen any specific requirement one way or the other, there is an example caps document citing:

text/xml

text/plain

text/html

Do you know where the current mime type choice is coming from?

Cheers

Andrea

==

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

==

Ing. Andrea Aime

@geowolf

Technical Lead

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054 Massarosa (LU)

Italy

phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

http://www.geo-solutions.it

http://twitter.com/geosolutions_it



Learn the latest–Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk


Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


Justin Deoliveira

OpenGeo - http://opengeo.org

Enterprise support for open source geospatial.

On Thu, Sep 5, 2013 at 4:34 PM, Rahkonen Jukka <jukka.rahkonen@anonymised.com>wrote:

Hi,****

** **

Is this message from geoserver-users related in any way or is it just
coincidence that it deals with application/xml and text/xml?****

** **

Dmitriy wrote:****

** **

“Yes Christian, j2ee filter is in the rest filter chain settings. In any
case, I found a solution by changing the header Content-type to
application/xml instead of text/xml. Now everything works.”

I believe they are unrelated, if I'm not mistaken the user was talking
about the content type of something he was posting to geoserver, not
getting back

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

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