Sounds like a bug. Can you open a bug report for it?
If you need a fix quickly, I'd also recommend investigating and try to
prepare a pull request with the necessary changes yourself.

Cheers
Andrea

On Tue, Aug 16, 2022 at 10:57 AM Ralf Trier <ralf.tr...@gdi-service.de>
wrote:

> Hallo Andrea,
>
> the geoserver version is the latest (2.21.1).
>
> I checked global versus workspace specific URL
>
> global is working:
>
>       https://host/geoserver/ows?service=WFS&version=2.0.0 
> <https://host/geoserver/ps/ows?service=WFS&version=2.0.0&request=GetFeature&count=25&typenames=ns21:ProtectedSite&namespaces=xmlns(xml,http://www.w3.org/XML/1998/namespace),xmlns(ns21,http://inspire.ec.europa.eu/schemas/ps/4.0),xmlns(wfs,http://www.opengis.net/wfs/2.0)>...
> workspace is not working:
>
>       https://host/geoserver/workspace/ows?service=WFS&version=2.0.0 
> <https://host/geoserver/ps/ows?service=WFS&version=2.0.0&request=GetFeature&count=25&typenames=ns21:ProtectedSite&namespaces=xmlns(xml,http://www.w3.org/XML/1998/namespace),xmlns(ns21,http://inspire.ec.europa.eu/schemas/ps/4.0),xmlns(wfs,http://www.opengis.net/wfs/2.0)>...
>
>
> Thank you.
> Greetings
> Ralf
>
>
>
> Hi Ralf,
> yes, it should, we even have a test covering this specific situation:
>
>
> https://github.com/geoserver/geoserver/blob/01bd2f2deb6fee761ca96b7035f6178996c6a16e/src/wfs/src/test/java/org/geoserver/wfs/v2_0/GetFeatureTest.java#L107
>
> Two ideas:
>
>    - The test and supporting code has been added in 2017, is your
>    GeoServer very old by any chance?
>    - The test is not using a workspace specific URL, but a global one
>    instead (uses "wfs" directly instead of "cdf/wfs"). Can you try using a
>    global url in your case as well, e.g. "https://host/geoserver/ows?";
>
> Cheers
> Andrea
>
> On Thu, Aug 11, 2022 at 5:03 PM Ralf Trier <ralf.tr...@gdi-service.de>
> wrote:
>
>> Hallo
>>
>> the WFS 2.0 Conformance Test Suite send a request with another Namesspace 
>> then used in my Geoserver Project and throws an exception.
>>
>> The 
>> Request:https://host/geoserver/ps/ows?service=WFS&version=2.0.0&request=GetFeature&count=25&typenames=ns21:ProtectedSite&namespaces=xmlns(xml,http://www.w3.org/XML/1998/namespace),xmlns(ns21,http://inspire.ec.europa.eu/schemas/ps/4.0),xmlns(wfs,http://www.opengis.net/wfs/2.0)
>>
>> In my geoserver project the namespace(-uri) 
>> *http://inspire.ec.europa.eu/schemas/ps/4.0 
>> <http://inspire.ec.europa.eu/schemas/ps/4.0>* has the prefix ps. If the 
>> prefix ps is specified in the request, the response is as expected.
>>
>> Should geoserver not lookup the the namespace prefix by the namespace(-uri)?
>>
>> Is this implemented and i missing sth.?
>>
>> Any comments would appreciate.
>>
>>
>> By the way the Java-Stacktrace:
>>       org.geoserver.wfs.WFSException: Unknown namespace []
>>         at 
>> org.geoserver.wfs.kvp.BaseFeatureKvpRequestReader.checkTypeName(BaseFeatureKvpRequestReader.java:342)
>>         at 
>> org.geoserver.wfs.kvp.BaseFeatureKvpRequestReader.read(BaseFeatureKvpRequestReader.java:129)
>>         at 
>> org.geoserver.wfs.kvp.GetFeatureKvpRequestReader.read(GetFeatureKvpRequestReader.java:67)
>>         at 
>> org.geoserver.wfs.kvp.v2_0.GetFeatureKvpRequestReader.read(GetFeatureKvpRequestReader.java:32)
>>         at org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1511)
>>         at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:684)
>>         at 
>> org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:261)
>>
>>
>> Thankyou.
>>
>>
>> Ralf Trier
>>
>> _______________________________________________
>> Geoserver-users mailing list
>>
>> Please make sure you read the following two resources before posting to
>> this list:
>> - Earning your support instead of buying it, but Ian Turton:
>> http://www.ianturton.com/talks/foss4g.html#/
>> - The GeoServer user list posting guidelines:
>> http://geoserver.org/comm/userlist-guidelines.html
>>
>> 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
>>
>
>
> --
>
> Regards,
>
> Andrea Aime
>
> == GeoServer Professional Services from the experts!
>
> Visit http://bit.ly/gs-services-us for more information. == Ing. Andrea
> Aime @geowolf Technical Lead
>
> GeoSolutions Group phone: +39 0584 962313
>
> fax:     +39 0584 1660272
>
> mob:   +39  339 8844549
>
> 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
>
>
>

-- 

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  339 8844549

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
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

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

Reply via email to