Mapstore Dashboards with WFS layers

41 views
Skip to first unread message
Assigned to tobia....@geosolutionsgroup.com by lorenzo...@geosolutionsgroup.com

Pekka Sarkola

unread,
May 5, 2023, 5:52:33 AM5/5/23
to mapstor...@googlegroups.com
Dear list,

I tried to use the WFS layer from Geoserver in the Mapstore dashboard. It seems that Mapstore Dashboard map item is including an "empty" CQL_FILTER parameter which outside Geoserver can't handle. The Mapstore version is "latest" (from Geosolutions Docker container).

Here is short guideline to repeat issue:
  • Create new dashboard
  • Add map
  • Make connection to Geoserver WFS (I use this one: https://geo.stat.fi/geoserver/wfs, pick any layer to repeate)
  • Add map layer (in preview you can see features from WFS server)
  • Publish Map to dashboard => no any features in map
I check what queries Dashboard map is sending: URL is not working (with empty CQL_FILTER), but if you remove it, you can get results:


Is this a bug or a feature?

Rgs,

Pekka

Tobia Di Pisa

unread,
May 5, 2023, 9:17:33 AM5/5/23
to mapstor...@googlegroups.com
Dear Pekka,

that's not a feature, of course, since this behavior is breaking an expected functionality. That's a bug unfortunately. It is not present in the master branch anyway, therefore I can assume it is a kind of small unexpected regression introduced in 2023.01.01. I'm going to open an issue with a few more relevant details I noticed trying to reproduce your steps. We will fix this for 2023.01.02. Thank you for reporting this and thank you for using MapStore.

Best regards,
     Tobia Di Pisa

--
You received this message because you are subscribed to the Google Groups "mapstore-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapstore-users/CANgLEnDLh-xPDPnaJ51Xsp5S19T-XJQ-UzSc8zrBS1Dn47RXQg%40mail.gmail.com.


--


==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==
Dott. Ing. Tobia Di Pisa
Technical Lead / Project Manager


GeoSolutions Group
phone: +39 0584 962313

mobile: +39 340 1781783
fax:      +39 0584 1660272

https://www.geosolutionsgroup.com/
http://twitter.com/geosolutions_it
-------------------------------------------------------


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Tobia Di Pisa

unread,
May 5, 2023, 9:50:29 AM5/5/23
to mapstor...@googlegroups.com
Dear Pekka,

here you can find the created issue and stay tuned.

Best Regards,
     Tobia Di Pisa

Pekka Sarkola

unread,
May 8, 2023, 3:27:22 AM5/8/23
to mapstore-users
Dear Tobia,

Thank you for quick resposen and creationg of the issue. I was too shy to create issue directly to Github. Maybe next time.

Do we need create also an issue to Geoserver? I mean that if Geoserver will get empty CQL_FILTER-parameter, it should ignore whole parameter and not create an error. Or at least for me this make sense.

Rgs,

Pekka

Tobia Di Pisa

unread,
May 8, 2023, 4:17:56 AM5/8/23
to mapstor...@googlegroups.com
Dear Pekka,

don't worry, you did the right thing by writing on the mailing list first. For what concerns the GeoServer issue, we will open it if necessary after approaching the MS one.

Best regards,
     Tobia Di Pisa

Jukka Rahkonen

unread,
May 8, 2023, 4:24:29 AM5/8/23
to mapstor...@googlegroups.com, Pekka Sarkola
Hi,

You can read from https://geoserver.org/issues/ how we in the GeoServer
project hope users to behave with potential bugs.

"If you have a problem when working with GeoServer, then please let us
know through the user mailing lists first. Once confirmed, you can open
a ticket on JIRA, a bug tracking website we use to manage issue
reports."

I wonder if this issue has arised when a security vulnerability
affecting CQL_FILTER was fixed. I think also that an empty CQL_FILTER
could be silenctly skipped.

The issue can be re-produced with the standard demo dataset

http://localhost:8080/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&TypeName=topp:states&CQL_FILTER=

-Jukka Rahkonen-

Pekka Sarkola kirjoitti 2023-05-08 10:27:
> Dear Tobia,
>
> Thank you for quick resposen and creationg of the issue. I was too shy
> to create issue directly to Github. Maybe next time.
>
> Do we need create also an issue to Geoserver? I mean that if Geoserver
> will get empty CQL_FILTER-parameter, it should ignore whole parameter
> and not create an error. Or at least for me this make sense.
>
> Rgs,
>
> Pekka
>
> perjantai 5. toukokuuta 2023 klo 16.50.29 UTC+3 Tobia Di Pisa
> kirjoitti:
>
>> Dear Pekka,
>>
>> here [1] you can find the created issue and stay tuned.
>>
>> Best Regards,
>> Tobia Di Pisa
>>
>> Il giorno ven 5 mag 2023 alle ore 15:17 Tobia Di Pisa
>> <tobia....@geosolutionsgroup.com> ha scritto:
>>
>> Dear Pekka,
>>
>> that's not a feature, of course, since this behavior is breaking an
>> expected functionality. That's a bug unfortunately. It is not
>> present in the master branch anyway, therefore I can assume it is a
>> kind of small unexpected regression introduced in 2023.01.01. I'm
>> going to open an issue with a few more relevant details I noticed
>> trying to reproduce your steps. We will fix this for 2023.01.02.
>> Thank you for reporting this and thank you for using MapStore.
>>
>> Best regards,
>> Tobia Di Pisa
>>
>> Il giorno ven 5 mag 2023 alle ore 11:52 Pekka Sarkola
>> <pe...@gispo.fi> ha scritto:
>>
>> Dear list,
>>
>> I tried to use the WFS layer from Geoserver in the Mapstore
>> dashboard. It seems that Mapstore Dashboard map item is including an
>> "empty" CQL_FILTER parameter which outside Geoserver can't handle.
>> The Mapstore version is "latest" (from Geosolutions Docker
>> container).
>>
>> Here is short guideline to repeat issue:
>>
>> * Create new dashboard
>> * Add map
>> * Make connection to Geoserver WFS (I use this one:
>> https://geo.stat.fi/geoserver/wfs, pick any layer to repeate)
>> * Add map layer (in preview you can see features from WFS server)
>> * Publish Map to dashboard => no any features in map
>>
>> I check what queries Dashboard map is sending: URL is not working
>> (with empty CQL_FILTER), but if you remove it, you can get results:
>>
>>
> https://geo.stat.fi/geoserver/wfs?service=WFS&typeName=tilastointialueet%3Aavi1000k&version=1.1.0&request=GetFeature&outputFormat=application%2Fjson&srsname=EPSG%3A3857&CQL_FILTER=
>> Is this a bug or a feature?
>>
>> Rgs,
>>
>> Pekka
>>
>> Pekka Sarkola
>> Gispo Oy
>> pekka....@gispo.fi - GSM +358 40 725 2042 [2]
>> www.gispo.fi [3] – www.paikkatieto.com [4]
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "mapstore-users" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to mapstore-user...@googlegroups.com.
>> To view this discussion on the web visit
>>
> https://groups.google.com/d/msgid/mapstore-users/CANgLEnDLh-xPDPnaJ51Xsp5S19T-XJQ-UzSc8zrBS1Dn47RXQg%40mail.gmail.com
>> [5].
>>
>> --
>>
>> ==
>> GeoServer Professional Services from the experts!
>>
>> Visit http://bit.ly/gs-services-us [6] for more information.
>> ==
>> Dott. Ing. Tobia Di Pisa
>> Technical Lead / Project Manager
>>
>> GeoSolutions Group
>> phone: +39 0584 962313 [7]
>>
>> mobile: +39 340 1781783 [8]
>> fax: +39 0584 1660272 [9]
>>
>> https://www.geosolutionsgroup.com/ [10]
>> http://twitter.com/geosolutions_it [11]
>> -------------------------------------------------------
>> Con riferimento alla normativa sul trattamento dei dati personali
>> (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati
>> “GDPR”), si precisa che ogni circostanza inerente alla presente
>> email (il suo contenuto, gli eventuali allegati, etc.) è un dato la
>> cui conoscenza è riservata al/i solo/i destinatario/i indicati
>> dallo scrivente. Se il messaggio Le è giunto per errore, è
>> tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei
>> comunque grato se potesse darmene notizia.
>>
>> This email is intended only for the person or entity to which it is
>> addressed and may contain information that is privileged,
>> confidential or otherwise protected from disclosure. We remind that
>> - as provided by European Regulation 2016/679 “GDPR” - copying,
>> dissemination or use of this e-mail or the information herein by
>> anyone other than the intended recipient is prohibited. If you have
>> received this email by mistake, please notify us immediately by
>> telephone or e-mail.
>
> --
>
> ==
> GeoServer Professional Services from the experts!
>
> Visit http://bit.ly/gs-services-us [6] for more information.
> ==
> Dott. Ing. Tobia Di Pisa
> Technical Lead / Project Manager
>
> GeoSolutions Group
> phone: +39 0584 962313 [7]
>
> mobile: +39 340 1781783 [8]
> fax: +39 0584 1660272 [9]
>
> https://www.geosolutionsgroup.com/ [10]
> http://twitter.com/geosolutions_it [11]
> -------------------------------------------------------
> Con riferimento alla normativa sul trattamento dei dati personali
> (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati
> “GDPR”), si precisa che ogni circostanza inerente alla presente
> email (il suo contenuto, gli eventuali allegati, etc.) è un dato la
> cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo
> scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a
> cancellarlo, ogni altra operazione è illecita. Le sarei comunque
> grato se potesse darmene notizia.
>
> This email is intended only for the person or entity to which it is
> addressed and may contain information that is privileged, confidential
> or otherwise protected from disclosure. We remind that - as provided
> by European Regulation 2016/679 “GDPR” - copying, dissemination or
> use of this e-mail or the information herein by anyone other than the
> intended recipient is prohibited. If you have received this email by
> mistake, please notify us immediately by telephone or e-mail.
>
> --
> You received this message because you are subscribed to the Google
> Groups "mapstore-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mapstore-user...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mapstore-users/302e182f-3492-41c8-8819-8c401580fb46n%40googlegroups.com
> [12].
>
>
> Links:
> ------
> [1] https://github.com/geosolutions-it/MapStore2/issues/9139
> [2] tel:+358%2040%207252042
> [3] http://www.gispo.fi/
> [4] http://www.paikkatieto.com/
> [5]
> https://groups.google.com/d/msgid/mapstore-users/CANgLEnDLh-xPDPnaJ51Xsp5S19T-XJQ-UzSc8zrBS1Dn47RXQg%40mail.gmail.com?utm_medium=email&amp;utm_source=footer
> [6] http://bit.ly/gs-services-us
> [7] tel:+39%200584%20962313
> [8] tel:+39%20340%20178%201783
> [9] tel:+39%200584%20166%200272
> [10] https://www.geosolutionsgroup.com/
> [11] http://twitter.com/geosolutions_it
> [12]
> https://groups.google.com/d/msgid/mapstore-users/302e182f-3492-41c8-8819-8c401580fb46n%40googlegroups.com?utm_medium=email&utm_source=footer

Andrea Aime

unread,
May 8, 2023, 4:26:22 AM5/8/23
to mapstor...@googlegroups.com, Pekka Sarkola
On Mon, May 8, 2023 at 10:24 AM Jukka Rahkonen <jukka.r...@latuviitta.fi> wrote:
"If you have a problem when working with GeoServer, then please let us
know through the user mailing lists first. Once confirmed, you can open
a ticket on JIRA, a bug tracking website we use to manage issue
reports."

Let's skip one step, as a GS core developer I acknowledge it's an issue, go ahead for the ticket, if there is not one already (to be checked).

Cheers
Andrea

Pekka Sarkola

unread,
May 8, 2023, 6:57:34 AM5/8/23
to Andrea Aime, mapstor...@googlegroups.com
Hi!

Ok, I will create a Geoserver issue. Thank you!

Rgs,

Pekka

Pekka Sarkola
Gispo Oy
pekka....@gispo.fi   - GSM +358 40 725 2042

Pekka Sarkola

unread,
May 8, 2023, 9:45:34 AM5/8/23
to mapstore-users
Hi!

Geoserver issue has been reported: Empty CGL_FILTER-parameter should be ignored 

Rgs,

Pekka
Reply all
Reply to author
Forward
0 new messages