[Geoserver-users] TIME parameter Required or Optional?

Hi list,

This one seems like it may be a bug, but I thought I’d ask before reporting it. 2.5.1.

The following query works fine:

http://wppgeog3/gs/ows?LAYERS=Public_Data_DB%3ATRO_ORDERS&TRANSPARENT=TRUE&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&TIME=2014-07-29T00%3A00%3A00.0Z%2F2014-08-13T23%3A59%3A59.999Z&SRS=EPSG%3A27700&BBOX=299012.5,224193.75,560987.5,315806.25&WIDTH=1497&HEIGHT=523

However, if I change it to remove the TIME parameter:
http://wppgeog3/gs/ows?LAYERS=Public_Data_DB%3ATRO_ORDERS&TRANSPARENT=TRUE&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A27700&BBOX=299012.5,224193.75,560987.5,315806.25&WIDTH=1497&HEIGHT=523

The result is an XML error:

Internal error
Problem visiting TRO_ORDERS visiting TRO_ORDERS.fid-3d3d23d3_14781baaf14_-45fb:java.lang.NullPointerException
null

Looking at the WMS 1.1.1 specification, TIME is an Optional parameter, so it should work fine.

Am I missing something? Should I JIRA it?

Cheers,
Jonathan

This transmission is intended for the named addressee(s) only and may contain confidential, sensitive or personal information 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 Tue, Jul 29, 2014 at 12:52 PM, Jonathan Moules <
jonathanmoules@anonymised.com> wrote:

Hi list,

This one seems like it may be a bug, but I thought I'd ask before
reporting it. 2.5.1.

The following query works fine:

http://wppgeog3/gs/ows?LAYERS=Public_Data_DB%3ATRO_ORDERS&TRANSPARENT=TRUE&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&TIME=2014-07-29T00%3A00%3A00.0Z%2F2014-08-13T23%3A59%3A59.999Z&SRS=EPSG%3A27700&BBOX=299012.5,224193.75,560987.5,315806.25&WIDTH=1497&HEIGHT=523

However, if I change it to remove the TIME parameter:

http://wppgeog3/gs/ows?LAYERS=Public_Data_DB%3ATRO_ORDERS&TRANSPARENT=TRUE&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A27700&BBOX=299012.5,224193.75,560987.5,315806.25&WIDTH=1497&HEIGHT=523

The result is an XML error:

      Internal error

Problem visiting TRO_ORDERS visiting
TRO_ORDERS.fid-3d3d23d3_14781baaf14_-45fb:java.lang.NullPointerException
null

Looking at the WMS 1.1.1 specification, TIME is an Optional parameter, so
it should work fine.

Yes, it's optional, the code should apply a default in case it's not
provided.

Am I missing something? Should I JIRA it?

Yep, with a full stack trace and a way to reproduce it if possible

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

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

This transmission is intended for the named addressee(s) only and may contain confidential, sensitive or personal information 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.

···

Thanks Andrea. Jira created.

For reference - http://jira.codehaus.org/browse/GEOS-6591

Cheers,
Jonathan

On 29 July 2014 12:05, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Tue, Jul 29, 2014 at 12:52 PM, Jonathan Moules <jonathanmoules@anonymised.com> wrote:

Hi list,

This one seems like it may be a bug, but I thought I’d ask before reporting it. 2.5.1.

The following query works fine:

http://wppgeog3/gs/ows?LAYERS=Public_Data_DB%3ATRO_ORDERS&TRANSPARENT=TRUE&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&TIME=2014-07-29T00%3A00%3A00.0Z%2F2014-08-13T23%3A59%3A59.999Z&SRS=EPSG%3A27700&BBOX=299012.5,224193.75,560987.5,315806.25&WIDTH=1497&HEIGHT=523

However, if I change it to remove the TIME parameter:
http://wppgeog3/gs/ows?LAYERS=Public_Data_DB%3ATRO_ORDERS&TRANSPARENT=TRUE&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A27700&BBOX=299012.5,224193.75,560987.5,315806.25&WIDTH=1497&HEIGHT=523

The result is an XML error:

Internal error
Problem visiting TRO_ORDERS visiting TRO_ORDERS.fid-3d3d23d3_14781baaf14_-45fb:java.lang.NullPointerException
null

Looking at the WMS 1.1.1 specification, TIME is an Optional parameter, so it should work fine.

Yes, it’s optional, the code should apply a default in case it’s not provided.

Am I missing something? Should I JIRA it?

Yep, with a full stack trace and a way to reproduce it if possible

Cheers
Andrea

==

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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