[GeoNode-devel] Geonode 2.7 layer upload: No AuthenticationProvider found for ...UsernamePasswordAuthentication
Alessio Fabiani
alessio.fabiani at geo-solutions.it
Tue Jan 9 00:47:51 PST 2018
That usually is a side effect of misconfigured REST Role Service.
You need to be sure GeoServer is able to fetch roles from GeoNode APIs.
Regards,
Alessio Fabiani
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==
Ing. Alessio Fabiani
@alfa7691
Founder/Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 331 6233686
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.
2018-01-09 8:31 GMT+01:00 Jonathan Doig <j.doig at unsw.edu.au>:
> Hi all
>
>
>
> Trying to get Geonode 2.7.x (stable?) running on Ubuntu 16.
>
>
>
> I have done all the steps documented here: http://docs.geonode.org/en/
> master/tutorials/admin/geoserver_geonode_security/
>
>
>
> When I try to upload a shapefile (as admin) I get:
>
>
>
> HTTP Status 401 - No AuthenticationProvider found for
> org.springframework.security.authentication.UsernamePasswordAuthentication
> Token
>
> type Status report
>
> message No AuthenticationProvider found for org.springframework.security.
> authentication.UsernamePasswordAuthenticationToken
>
> description This request requires HTTP authentication.
>
> Apache Tomcat/8.0.32 (Ubuntu)
>
>
>
> Traceback (most recent call last):
>
> File "/mnt/data/geonode/geonode/geonode/upload/views.py", line 715, in
> view
>
> resp = _steps[step](req, upload_session)
>
> File "/mnt/data/geonode/geonode/geonode/upload/views.py", line 298, in
> save_step_view
>
> time_presentation_reference_value=form.cleaned_data['time_
> presentation_reference_value']
>
> File "/mnt/data/geonode/geonode/geonode/upload/upload.py", line 411, in
> save_step
>
>
>
> Seems to be a problem with ‘basic’ authentication used in the ‘rest’
> filter chain:
>
> basic
>
> geonode-oath2
>
> anonymous
>
>
>
> If I move basic down to 2nd place after geonode-oath2, or ‘Disable
> security for this chain’ then I get a different error, a null store:
>
>
>
> Unexpected error in upload step
>
> Traceback:
>
> File "/mnt/data/geonode/geonode/geonode/upload/views.py", line 715, in
> view
>
> resp = _stepsstep](req, upload_session)
>
> File "/mnt/data/geonode/geonode/geonode/upload/views.py", line 298, in
> save_step_view
>
> time_presentation_reference_value=form.cleaned_data'time_
> presentation_reference_value']
>
> File "/mnt/data/geonode/geonode/geonode/upload/upload.py", line 272, in
> save_step
>
> resources = store.get_resources()
>
> AttributeError: 'NoneType' object has no attribute 'get_resources'
>
> Traceback (most recent call last):
>
> File "/mnt/data/geonode/geonode/geonode/upload/views.py", line 715, in
> view
>
> resp = _stepsstep](req, upload_session)
>
> File "/mnt/data/geonode/geonode/geonode/upload/views.py", line 298, in
> save_step_view
>
> time_presentation_reference_value=form.cleaned_data'time_
> presentation_reference_value']
>
> File "/mnt/data/geonode/geonode/geonode/upload/upload.py", line 272, in
> save_step
>
> resources = store.get_resources()
>
> AttributeError: 'NoneType' object has no attribute 'get_resources'
>
>
>
>
>
> Any suggestions appreciated.
>
>
>
> Regards
>
> Jonathan
>
>
>
> _______________________________________________
> geonode-devel mailing list
> geonode-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180109/6e412fc7/attachment-0001.html>
More information about the geonode-devel
mailing list