[Geoserver-users] 501 Not implemented

Hi List,
While testing WMTS I accidentally fat-figured the URL and made a typo. The result is that IIS (which is load balancing) returns the following error:

501 - Header values specify a method that is not implemented.### The page you are looking for cannot be displayed because a header value in the request does not match certain configuration settings on the Web server. For example, a request header might specify a POST to a static file that cannot be posted to, or specify a Transfer-Encoding value that cannot make use of compression.

If I make the request direct to GeoServer (skipping the load balancing) I get a standard exception although firebug is still telling me it’s a “501 Not Implemented” behind the scenes.

The following URL will do it:
http://www.example.com/geoserver/gwc/service/wmts?REQUEST=turnips

Would I be right in thinking this is a bug in GeoServer?

Cheers
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

On Fri, Nov 8, 2013 at 4:59 PM, Jonathan Moules <
jonathanmoules@anonymised.com> wrote:

Hi List,
While testing WMTS I accidentally fat-figured the URL and made a typo. The
result is that IIS (which is load balancing) returns the following error:

501 - Header values specify a method that is not implemented.The page you
are looking for cannot be displayed because a header value in the request
does not match certain configuration settings on the Web server. For
example, a request header might specify a POST to a static file that cannot
be posted to, or specify a Transfer-Encoding value that cannot make use of
compression.

If I make the request direct to GeoServer (skipping the load balancing) I
get a standard exception although firebug is still telling me it's a "501
Not Implemented" behind the scenes.

The following URL will do it:
http://www.example.com/geoserver/gwc/service/wmts?REQUEST=turnips

Would I be right in thinking this is a bug in GeoServer?

Hmm... why? You are making a request for a method that is not part of WMTS,
and the response says it's not implemented.
Seems a fair response to me?

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

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

Hi Andrea,
It’s kind of incongruous with all the other services (WFS, WMS etc) exceptions being 200’s. Looking further into it (reading the WMTS spec), it seems that they do actually specify HTTP exception codes to go with their errors. That is only going to make things harder when using a load-balanced service that is intercepting the headers and putting up a web-page based on them. Ah well.

Thanks,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

···

On 8 November 2013 16:07, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Fri, Nov 8, 2013 at 4:59 PM, Jonathan Moules <jonathanmoules@anonymised.com> wrote:

Hi List,
While testing WMTS I accidentally fat-figured the URL and made a typo. The result is that IIS (which is load balancing) returns the following error:

501 - Header values specify a method that is not implemented.### The page you are looking for cannot be displayed because a header value in the request does not match certain configuration settings on the Web server. For example, a request header might specify a POST to a static file that cannot be posted to, or specify a Transfer-Encoding value that cannot make use of compression.

If I make the request direct to GeoServer (skipping the load balancing) I get a standard exception although firebug is still telling me it’s a “501 Not Implemented” behind the scenes.

The following URL will do it:
http://www.example.com/geoserver/gwc/service/wmts?REQUEST=turnips

Would I be right in thinking this is a bug in GeoServer?

Hmm… why? You are making a request for a method that is not part of WMTS, and the response says it’s not implemented.
Seems a fair response to me?

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