Hi,

I'm having a problem using WFS with a virtual service. 

After debugging, I found out that the prefix is emptied during the
GetFeature request.

In WorkspaceQualifier.java, there's this line :

typeName = new QName(ns.getURI(), typeName.getLocalPart());

As you can see the third parameter (the prefix) is omitted so the resulting
QName doesn't have a prefix (it's equal to an empty string).

If I replace the calling line with :

typeName = new QName(ns.getURI(), typeName.getLocalPart(),
typeName.getPrefix());

The prefix is kept an the problem is gone.

My question is : Why is the prefix not passed to the QName constructor ?

Thanks




--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


_______________________________________________
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