[Geoserver-users] WMS GetMap filter issue [SEC=OFFICIAL]

Hi all,

Following a recent upgrade to GeoServer 2.23.2, WMS GetMap requests that include a filter containing the PropertyIsLike comparison operator are returning null pointer exceptions.

Example filter:

STATE

SA

Above filter applied in a WMS GetMap request:

https://services.ga.gov.au/gis/earthresource/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&STYLES&LAYERS=ama:MineralDeposits&exceptions=application/vnd.ogc.se_inimage&SRS=EPSG:4283&WIDTH=768&HEIGHT=413&BBOX=103.7109375,-45.6591796875,171.2109375,-9.3603515625&filter=%3CFilter%3E%3CPropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escape=%22!%22%3E%3CPropertyName%3ESTATE%3C/PropertyName%3E%3CLiteral%3ESA%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E

The same filter is ok in a WFS GetFeature request:

https://services.ga.gov.au/gis/earthresource/wfs?request=GetFeature&service=WFS&version=1.1.0&typeName=ama:MineralDeposits&filter=%3CFilter%3E%3CPropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escape=%22!%22%3E%3CPropertyName%3ESTATE%3C/PropertyName%3E%3CLiteral%3ESA%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E&outputFormat=json

The issue appears to have come about after version 2.22.2, which we were using prior to upgrading to 2.23.2. The issue also occurs in the current stable release 2.24.0.

There doesn’t appear to be any tickets in the GeoServer Jira related to this, and before I log a ticket, I’m wondering if anyone on the forum has come across the issue and perhaps has a simple fix?

GeoServer 2.23.2, 2.24.0

JDK 11

Tomcat 8, Tomcat 9

Windows 10, Ubuntu 22.04

Thanks,

Aaron Sedgmen.

It has not been reported yet, can you do so please and attach the stack trace.

Thanks
Jody

On Thu, Nov 9, 2023 at 8:10 PM Aaron Sedgmen <Aaron.Sedgmen@anonymised.com> wrote:

Hi all,

Following a recent upgrade to GeoServer 2.23.2, WMS GetMap requests that include a filter containing the PropertyIsLike comparison operator are returning null pointer exceptions.

Example filter:

STATE

SA

Above filter applied in a WMS GetMap request:

https://services.ga.gov.au/gis/earthresource/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&STYLES&LAYERS=ama:MineralDeposits&exceptions=application/vnd.ogc.se_inimage&SRS=EPSG:4283&WIDTH=768&HEIGHT=413&BBOX=103.7109375,-45.6591796875,171.2109375,-9.3603515625&filter=%3CFilter%3E%3CPropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escape=%22!%22%3E%3CPropertyName%3ESTATE%3C/PropertyName%3E%3CLiteral%3ESA%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E

The same filter is ok in a WFS GetFeature request:

https://services.ga.gov.au/gis/earthresource/wfs?request=GetFeature&service=WFS&version=1.1.0&typeName=ama:MineralDeposits&filter=%3CFilter%3E%3CPropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escape=%22!%22%3E%3CPropertyName%3ESTATE%3C/PropertyName%3E%3CLiteral%3ESA%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E&outputFormat=json

The issue appears to have come about after version 2.22.2, which we were using prior to upgrading to 2.23.2. The issue also occurs in the current stable release 2.24.0.

There doesn’t appear to be any tickets in the GeoServer Jira related to this, and before I log a ticket, I’m wondering if anyone on the forum has come across the issue and perhaps has a simple fix?

GeoServer 2.23.2, 2.24.0

JDK 11

Tomcat 8, Tomcat 9

Windows 10, Ubuntu 22.04

Thanks,

Aaron Sedgmen.

Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) is intended only for the person or entity to which it is addressed. If you are not the intended recipient, then you have received this e-mail by mistake and any use, dissemination, forwarding, printing or copying of this e-mail and its file attachments is prohibited. The security of emails transmitted cannot be guaranteed; by forwarding or replying to this email, you acknowledge and accept these risks.


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi,

The error seems to happen also with Geoserver 2.24 for the standard “states” demo layer.

http://localhost:8080/geoserver/topp/wms?service=WMS&version=1.1.0&request=GetMap&layers=topp%3Astates&bbox=-124.73142200000001%2C24.955967%2C-66.969849%2C49.371735&width=768&height=330&srs=EPSG%3A4326&styles=&format=image/png&filter=%3CFilter%3E%3CPropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escape=%22!%22%3E%3CPropertyName%3ESTATE_NAME%3C/PropertyName%3E%3CLiteral%3Eco%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E&&exceptions=application/vnd.ogc.se_inimage

-Jukka Rahkonen-

···

Lähettäjä: Jody Garnett <jody.garnett@…84…>
Lähetetty: perjantai 10. marraskuuta 2023 6.43
Vastaanottaja: Aaron Sedgmen <Aaron.Sedgmen@…174…>
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WMS GetMap filter issue [SEC=OFFICIAL]

It has not been reported yet, can you do so please and attach the stack trace.

Thanks

Jody

On Thu, Nov 9, 2023 at 8:10 PM Aaron Sedgmen <Aaron.Sedgmen@…174…> wrote:

Hi all,

Following a recent upgrade to GeoServer 2.23.2, WMS GetMap requests that include a filter containing the PropertyIsLike comparison operator are returning null pointer exceptions.

Example filter:

STATE

SA

Above filter applied in a WMS GetMap request:

https://services.ga.gov.au/gis/earthresource/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&STYLES&LAYERS=ama:MineralDeposits&exceptions=application/vnd.ogc.se_inimage&SRS=EPSG:4283&WIDTH=768&HEIGHT=413&BBOX=103.7109375,-45.6591796875,171.2109375,-9.3603515625&filter=%3CFilter%3E%3CPropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escape=%22!%22%3E%3CPropertyName%3ESTATE%3C/PropertyName%3E%3CLiteral%3ESA%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E

The same filter is ok in a WFS GetFeature request:

https://services.ga.gov.au/gis/earthresource/wfs?request=GetFeature&service=WFS&version=1.1.0&typeName=ama:MineralDeposits&filter=%3CFilter%3E%3CPropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escape=%22!%22%3E%3CPropertyName%3ESTATE%3C/PropertyName%3E%3CLiteral%3ESA%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E&outputFormat=json

The issue appears to have come about after version 2.22.2, which we were using prior to upgrading to 2.23.2. The issue also occurs in the current stable release 2.24.0.

There doesn’t appear to be any tickets in the GeoServer Jira related to this, and before I log a ticket, I’m wondering if anyone on the forum has come across the issue and perhaps has a simple fix?

GeoServer 2.23.2, 2.24.0

JDK 11

Tomcat 8, Tomcat 9

Windows 10, Ubuntu 22.04

Thanks,

Aaron Sedgmen.

Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) is intended only for the person or entity to which it is addressed. If you are not the intended recipient, then you have received this e-mail by mistake and any use, dissemination, forwarding, printing or copying of this e-mail and its file attachments is prohibited. The security of emails transmitted cannot be guaranteed; by forwarding or replying to this email, you acknowledge and accept these risks.


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

This is possibly a regression from the fix for this issue:
https://osgeo-org.atlassian.net/browse/GEOS-10903

Steve Ikeoka

···

From: Rahkonen Jukka <jukka.rahkonen@…6847…>
Sent: Friday, November 10, 2023 12:34 AM
To: Jody Garnett <jody.garnett@…84…>; Aaron Sedgmen <Aaron.Sedgmen@…174…>
Cc: geoserver-users@lists.sourceforge.net geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] WMS GetMap filter issue [SEC=OFFICIAL]

Hi, The error seems to happen also with Geoserver 2. 24 for the standard “states” demo layer. http: //localhost: 8080/geoserver/topp/wms?service=WMS&version=1. 1. 0&request=GetMap&layers=topp%3Astates&bbox=-124. 73142200000001%2C24. 955967%2C-66. 969849%2C49. 371735&width=768&height=330&srs=EPSG%3A4326&styles=&format=image/png&filter=%3CFilter%3E%3CPropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22. %22%20escape=%22!%22%3E%3CPropertyName%3ESTATE_NAME%3C/PropertyName%3E%3CLiteral%3Eco%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E&&exceptions=application/vnd. ogc. se_inimage
ZjQcmQRYFpfptBannerStart

This Message Is From an External Sender

Please use caution with links, attachments, and any requests for credentials.

ZjQcmQRYFpfptBannerEnd

Hi,

The error seems to happen also with Geoserver 2.24 for the standard “states” demo layer.

http://localhost:8080/geoserver/topp/wms?service=WMS&version=1.1.0&request=GetMap&layers=topp%3Astates&bbox=-124.73142200000001%2C24.955967%2C-66.969849%2C49.371735&width=768&height=330&srs=EPSG%3A4326&styles=&format=image/png&filter=%3CFilter%3E%3CPropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escape=%22!%22%3E%3CPropertyName%3ESTATE_NAME%3C/PropertyName%3E%3CLiteral%3Eco%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E&&exceptions=application/vnd.ogc.se_inimage

-Jukka Rahkonen-

Lähettäjä: Jody Garnett <jody.garnett@…84…>
Lähetetty: perjantai 10. marraskuuta 2023 6.43
Vastaanottaja: Aaron Sedgmen <Aaron.Sedgmen@…174…>
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WMS GetMap filter issue [SEC=OFFICIAL]

It has not been reported yet, can you do so please and attach the stack trace.

Thanks

Jody

On Thu, Nov 9, 2023 at 8:10 PM Aaron Sedgmen <Aaron.Sedgmen@…174…> wrote:

Hi all,

Following a recent upgrade to GeoServer 2.23.2, WMS GetMap requests that include a filter containing the PropertyIsLike comparison operator are returning null pointer exceptions.

Example filter:

STATE

SA

Above filter applied in a WMS GetMap request:

https://services.ga.gov.au/gis/earthresource/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&STYLES&LAYERS=ama:MineralDeposits&exceptions=application/vnd.ogc.se_inimage&SRS=EPSG:4283&WIDTH=768&HEIGHT=413&BBOX=103.7109375,-45.6591796875,171.2109375,-9.3603515625&filter=%3CFilter%3E%3CPropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escape=%22!%22%3E%3CPropertyName%3ESTATE%3C/PropertyName%3E%3CLiteral%3ESA%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E

The same filter is ok in a WFS GetFeature request:

https://services.ga.gov.au/gis/earthresource/wfs?request=GetFeature&service=WFS&version=1.1.0&typeName=ama:MineralDeposits&filter=%3CFilter%3E%3CPropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escape=%22!%22%3E%3CPropertyName%3ESTATE%3C/PropertyName%3E%3CLiteral%3ESA%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E&outputFormat=json

The issue appears to have come about after version 2.22.2, which we were using prior to upgrading to 2.23.2. The issue also occurs in the current stable release 2.24.0.

There doesn’t appear to be any tickets in the GeoServer Jira related to this, and before I log a ticket, I’m wondering if anyone on the forum has come across the issue and perhaps has a simple fix?

GeoServer 2.23.2, 2.24.0

JDK 11

Tomcat 8, Tomcat 9

Windows 10, Ubuntu 22.04

Thanks,

Aaron Sedgmen.

Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) is intended only for the person or entity to which it is addressed. If you are not the intended recipient, then you have received this e-mail by mistake and any use, dissemination, forwarding, printing or copying of this e-mail and its file attachments is prohibited. The security of emails transmitted cannot be guaranteed; by forwarding or replying to this email, you acknowledge and accept these risks.


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks everyone, ticket now logged in the GeoServer Jira – GEOS-11194.

Cheers,

Aaron Sedgmen.

···

From: Ikeoka, Steve <Steve.Ikeoka@…4839…>
Sent: Saturday, November 11, 2023 5:43 AM
To: Rahkonen Jukka <jukka.rahkonen@…6847…>; Jody Garnett <jody.garnett@…84…>; Aaron Sedgmen <Aaron.Sedgmen@…174…>
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] WMS GetMap filter issue [SEC=OFFICIAL]

This is possibly a regression from the fix for this issue:

https://osgeo-org.atlassian.net/browse/GEOS-10903

Steve Ikeoka


From: Rahkonen Jukka <jukka.rahkonen@…6847…>
Sent: Friday, November 10, 2023 12:34 AM
To: Jody Garnett <jody.garnett@…84…>; Aaron Sedgmen <Aaron.Sedgmen@…174…>
Cc: geoserver-users@lists.sourceforge.net <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] WMS GetMap filter issue [SEC=OFFICIAL]

Hi, The error seems to happen also with Geoserver 2. 24 for the standard “states” demo layer. http: //localhost: 8080/geoserver/topp/wms?service=WMS&version=1. 1. 0&request=GetMap&layers=topp%3Astates&bbox=-124. 73142200000001%2C24. 955967%2C-66. 969849%2C49. 371735&width=768&height=330&srs=EPSG%3A4326&styles=&format=image/png&filter=%3CFilter%3E%3CPropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22. %22%20escape=%22!%22%3E%3CPropertyName%3ESTATE_NAME%3C/PropertyName%3E%3CLiteral%3Eco%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E&&exceptions=application/vnd. ogc. se_inimage

ZjQcmQRYFpfptBannerStart

This Message Is From an External Sender

Please use caution with links, attachments, and any requests for credentials.

ZjQcmQRYFpfptBannerEnd

Hi,

The error seems to happen also with Geoserver 2.24 for the standard “states” demo layer.

http://localhost:8080/geoserver/topp/wms?service=WMS&version=1.1.0&request=GetMap&layers=topp%3Astates&bbox=-124.73142200000001%2C24.955967%2C-66.969849%2C49.371735&width=768&height=330&srs=EPSG%3A4326&styles=&format=image/png&filter=%3CFilter%3E%3CPropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escape=%22!%22%3E%3CPropertyName%3ESTATE_NAME%3C/PropertyName%3E%3CLiteral%3Eco%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E&&exceptions=application/vnd.ogc.se_inimage

-Jukka Rahkonen-

Lähettäjä: Jody Garnett <jody.garnett@…84…>
Lähetetty: perjantai 10. marraskuuta 2023 6.43
Vastaanottaja: Aaron Sedgmen <Aaron.Sedgmen@…174…>
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] WMS GetMap filter issue [SEC=OFFICIAL]

It has not been reported yet, can you do so please and attach the stack trace.

Thanks

Jody

On Thu, Nov 9, 2023 at 8:10 PM Aaron Sedgmen <Aaron.Sedgmen@…174…> wrote:

Hi all,

Following a recent upgrade to GeoServer 2.23.2, WMS GetMap requests that include a filter containing the PropertyIsLike comparison operator are returning null pointer exceptions.

Example filter:

STATE

SA

Above filter applied in a WMS GetMap request:

https://services.ga.gov.au/gis/earthresource/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&STYLES&LAYERS=ama:MineralDeposits&exceptions=application/vnd.ogc.se_inimage&SRS=EPSG:4283&WIDTH=768&HEIGHT=413&BBOX=103.7109375,-45.6591796875,171.2109375,-9.3603515625&filter=%3CFilter%3E%3CPropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escape=%22!%22%3E%3CPropertyName%3ESTATE%3C/PropertyName%3E%3CLiteral%3ESA%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E

The same filter is ok in a WFS GetFeature request:

https://services.ga.gov.au/gis/earthresource/wfs?request=GetFeature&service=WFS&version=1.1.0&typeName=ama:MineralDeposits&filter=%3CFilter%3E%3CPropertyIsLike%20matchCase=%22false%22%20wildCard=%22*%22%20singleChar=%22.%22%20escape=%22!%22%3E%3CPropertyName%3ESTATE%3C/PropertyName%3E%3CLiteral%3ESA%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E&outputFormat=json

The issue appears to have come about after version 2.22.2, which we were using prior to upgrading to 2.23.2. The issue also occurs in the current stable release 2.24.0.

There doesn’t appear to be any tickets in the GeoServer Jira related to this, and before I log a ticket, I’m wondering if anyone on the forum has come across the issue and perhaps has a simple fix?

GeoServer 2.23.2, 2.24.0

JDK 11

Tomcat 8, Tomcat 9

Windows 10, Ubuntu 22.04

Thanks,

Aaron Sedgmen.

Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) is intended only for the person or entity to which it is addressed. If you are not the intended recipient, then you have received this e-mail by mistake and any use, dissemination, forwarding, printing or copying of this e-mail and its file attachments is prohibited. The security of emails transmitted cannot be guaranteed; by forwarding or replying to this email, you acknowledge and accept these risks.


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users