Discussion:
[Geoserver-users] Unknown namespace WFS error in Firefox / IE
ChrisFleet
2017-06-19 20:41:45 UTC
Permalink
Hello Folks,

We have been using GeoServer in two installations (versions 1.7.2 and 1.8.0)
for six years and been very happy with it. We use it to display bounding
boxes of historical maps and allow selection of these through WFS queries.

In the last week there have been changes made to the servers, as well as an
update to the GeoServers from a backup, and - returning from a holiday to
discover this - these seem to have now caused a fatal error for our WFS
requests.

All our layers are in a single Workspace 'nls' and we access them through a
WFS request along these lines:

http://geoserver.nls.uk/geodata/wfs?service=WFS&version=1.1.0&request=GetFeature&typename=nls:catalog_1inch_1st_3rd&outputFormat=text/javascript&format_options=callback:loadFeatures&srsname=EPSG:3857&cql_filter=INTERSECTS(the_geom,POINT(311912.45037301356%20665758.4406516276))

This sometimes is returning a correct JSON response in Chrome, but not in
Firefox, IE or Edge.

Also, our GeoServer logifiles are now giving a regular error:

ERROR [geoserver.ows] - org.geoserver.wfs.WFSException: Unknown namespace
[nls]

A demo application with a few layers can be viewed at:
http://geo.nls.uk/maps/dev/NLSFindByPlaceOL3/index.html
<http://geo.nls.uk/maps/dev/NLSFindByPlaceOL3/index.html>

This displays the bounding boxes correctly from GWC but when you click on a
coloured rectangle, it only returns the details correctly in the right-hand
results column in Chrome.

The code behind this (with the relevant Javascript in find.js) can be viewed
at: https://github.com/NationalLibraryOfScotland/NLSFindByPlaceOL3
<https://github.com/NationalLibraryOfScotland/NLSFindByPlaceOL3>

This is probably / hopefully something very simple, but we seem to have
tried everything. It may not be a GeoServer error but something at
network/server level. Very grateful for any ideas.

Thanks,

Chris

Chris Fleet
Map Curator | Collections and Research Department
National Library of Scotland
159 Causewayside, Edinburgh EH9 1PH





--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Unknown-namespace-WFS-error-in-Firefox-IE-tp5324738.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
ChrisFleet
2017-06-20 08:06:57 UTC
Permalink
Just as a follow-up message to this, I have just discovered that if I am
logged into GeoServer, the WFS requests work in that browser fine - so it
must be a security setting.

I am still searching for the solution, so very grateful for any ideas on
this more specific problem.

Thanks,

Chris



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Unknown-namespace-WFS-error-in-Firefox-IE-tp5324738p5324803.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Andrea Aime
2017-06-20 08:52:06 UTC
Permalink
Hi Chris,
from here on Linux that call returns proper responses for both Chrome 59
and Firefox 54.
The application also works fine in both.
Telling what's wrong in such a old GeoServer is... well... going to be
really hard, it may well
be that nobody around remembers issues of those versions :-)

Cheers
Andrea
Post by ChrisFleet
Just as a follow-up message to this, I have just discovered that if I am
logged into GeoServer, the WFS requests work in that browser fine - so it
must be a security setting.
I am still searching for the solution, so very grateful for any ideas on
this more specific problem.
Thanks,
Chris
--
View this message in context: http://osgeo-org.1560.x6.
nabble.com/Unknown-namespace-WFS-error-in-Firefox-IE-
tp5324738p5324803.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo Ú consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
ChrisFleet
2017-06-20 09:11:02 UTC
Permalink
Many thanks for your reply, Andrea.

Yes, we are planning to upgrade.

Just to say, in case my earlier message didn't get through, we solved this
by changing settings under Security > Data. Somehow our main nls workspace
did not have the ROLE_ANONYMOUS set and when we did this, all worked fine.
This setting somehow got overwritten without us realising, so we looked
initially in the wrong place for the solution.

Very grateful to you for looking into this.

Chris



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Unknown-namespace-WFS-error-in-Firefox-IE-tp5324738p5324816.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
ChrisFleet
2017-06-20 08:33:33 UTC
Permalink
A final follow-up, just in case useful for others.

We solved this by changing settings under Security > Data. Somehow our main
nls workspace did not have the ROLE_ANONYMOUS set and when we did this, all
worked fine. This setting somehow got overwritten without us realising, so
we looked initially in the wrong place for the solution.

Chris



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Unknown-namespace-WFS-error-in-Firefox-IE-tp5324738p5324804.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Loading...