[GeoNode-users] [Geoserver-users] data dir migration from 2.7.x to 2.10.x
Alessio Fabiani
alessio.fabiani at geo-solutions.it
Wed Apr 5 04:39:40 PDT 2017
I guess it is normal with the old authentication system. It is based on
cookies. Therefore if you do not match exactly the same domain it won't
work.
Best Regards,
Alessio Fabiani.
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==
Ing. Alessio Fabiani
@alfa7691
github <https://github.com/afabiani?tab=overview>
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.
---------------------------------------------------------------------
On Wed, Apr 5, 2017 at 1:35 PM, Eugenio Trumpy <frippe12573 at hotmail.com>
wrote:
> I checked it out, in the gui you attached I have not the second line
> (i.e. geonode-rest) in 'Role services'.
>
>
> So I made this test:
>
> I had to reinserted in config.xml (security/auth/geonodeAuthProvider),
> <baseurl>http://my_master_site_hostname/</baseurl>.
>
> In this way, once I login from master geosite, I'm able from the menu to
> enter in geoserver administrator role,
>
> by the way if I try to enter in geoserver from one of the geosites I
> cannot enter in geoserver as admin, I see the geoserver page
>
> and all the layers in preview but unloged. I neither login with geonode
> nor geoserver credential.
>
>
> E.
>
>
> ------------------------------
> *Da:* Alessio Fabiani <alessio.fabiani at geo-solutions.it>
> *Inviato:* mercoledì 5 aprile 2017 12.29
> *A:* Eugenio Trumpy
> *Cc:* Alessio Fabiani; simone.dalmasso at gmail.com;
> geonode-users at lists.osgeo.org
>
> *Oggetto:* Re: [Geoserver-users] data dir migration from 2.7.x to 2.10.x
>
> Can you double check that you do not have the geonode role service
> enabled? If so, try to remove it completely.
>
> [image: Inline image 1]
>
> Best Regards,
> Alessio Fabiani.
>
> ==
> GeoServer Professional Services from the experts!
> Visit http://goo.gl/it488V for more information.
> ==
>
> Ing. Alessio Fabiani
> @alfa7691
> github <https://github.com/afabiani?tab=overview>
> Founder/Technical Lead
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313 <0584%20962313>
> fax: +39 0584 1660272 <0584%20166%200272>
> mob: +39 331 6233686 <331%20623%203686>
>
> 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.
>
> ---------------------------------------------------------------------
>
> On Wed, Apr 5, 2017 at 12:26 PM, Eugenio Trumpy <frippe12573 at hotmail.com>
> wrote:
>
>> Hi Alessio,
>>
>>
>> to simplify my life I decided to come back to 2.9.x, so I have not
>> problem on the new authentication issues.
>>
>> However, I still have problems:
>>
>>
>> - if I visit the geoserver page directly I'm not able to access as
>> administrator (admin/*****), I have this message: host parameter is
>> null,
>> - as well as if I login in geonode as admin and from menu I choose
>> geoserver (this should allow me to access geoserver in an authenticated
>> session to manage the layers)
>>
>>
>> here below the complete error:
>>
>> java.lang.IllegalArgumentException: host parameter is null
>> org.apache.commons.httpclient.HttpConnection.<init>(HttpConnection.java:206)
>> org.apache.commons.httpclient.HttpConnection.<init>(HttpConnection.java:155)
>> org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnectionWithTimeout(SimpleHttpConnectionManager.java:175)
>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153)
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
>> org.geonode.security.HTTPClient.sendGET(HTTPClient.java:89)
>> org.geonode.security.DefaultSecurityClient.authenticate(DefaultSecurityClient.java:185)
>> org.geonode.security.DefaultSecurityClient.authenticateUserPwd(DefaultSecurityClient.java:147)
>> org.geonode.security.GeoNodeAuthenticationProvider.authenticate(GeoNodeAuthenticationProvider.java:55)
>> org.geoserver.security.GeoServerAuthenticationProvider.authenticate(GeoServerAuthenticationProvider.java:58)
>> org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:167)
>> org.geoserver.security.GeoServerSecurityManager$1.authenticate(GeoServerSecurityManager.java:323)
>> org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.attemptAuthentication(UsernamePasswordAuthenticationFilter.java:93)
>> org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:217)
>> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
>> org.geoserver.security.filter.GeoServerUserNamePasswordAuthenticationFilter.doFilter(GeoServerUserNamePasswordAuthenticationFilter.java:116)
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
>> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
>> org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
>> org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:53)
>> org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
>> org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
>> org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
>> org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:152)
>> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
>> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
>> org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:87)
>> org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
>> org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:48)
>> org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44)
>> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
>> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
>>
>> I would remember, I have a geosites configuration, so I modified config.xml
>> in security/auth/geonodeAuthProvider, I set <baseurl>empty as explained
>> here:
>> https://github.com/GeoNode/geonode/blob/2.6.x/geonode/contri
>> b/geosites/README.md
>>
>> Moreover as pointed in the documentation for a normal installation I set
>> in web.xml
>>
>> <context-param>
>> <param-name>GEONODE_BASE_URL</param-name>
>> <param-value>http://localhost/</param-value></context-param>
>>
>> where <param-value> is the url of the master geosite.
>>
>> In pre-setting.py, local_setting.py I have in contrib/geosites I leave
>> geoserver internal URL
>> as default (http://localhost:8080/geoserver).
>>
>> In the webserver virtualhost the proxy for geoserver is set as follow:
>>
>>
>> ProxyPreserveHost On
>> ProxyPass /geoserver http://localhost:8080/geoserver
>> ProxyPassReverse /geoserver http://localhost:8080/geoserver
>>
>> Where am I wrong?
>>
>> E.
>>
>>
>> ------------------------------
>> *Da:* Alessio Fabiani <alessio.fabiani at geo-solutions.it>
>> *Inviato:* martedì 4 aprile 2017 15.42
>>
>> *A:* Eugenio Trumpy
>> *Cc:* Alessio Fabiani; geonode-users at lists.osgeo.org
>> *Oggetto:* Re: [Geoserver-users] data dir migration from 2.7.x to 2.10.x
>>
>> Mmm, the process seems correct to me.
>>
>> If you need to keep the old authentication, you can also remove all the
>> geofence JARs from WEB-INF/lib. In that case you won't need to deal with
>> GeoFence stuff.
>>
>>
>>
>> Best Regards,
>> Alessio Fabiani.
>>
>> ==
>> GeoServer Professional Services from the experts!
>> Visit http://goo.gl/it488V for more information.
>> ==
>>
>> Ing. Alessio Fabiani
>> @alfa7691
>> github <https://github.com/afabiani?tab=overview>
>> Founder/Technical Lead
>>
>> GeoSolutions S.A.S.
>> Via di Montramito 3/A
>> 55054 Massarosa (LU)
>> Italy
>> phone: +39 0584 962313 <0584%20962313>
>> fax: +39 0584 1660272 <0584%20166%200272>
>> mob: +39 331 6233686 <331%20623%203686>
>>
>> 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.
>>
>> ---------------------------------------------------------------------
>>
>> On Tue, Apr 4, 2017 at 3:21 PM, Eugenio Trumpy <frippe12573 at hotmail.com>
>> wrote:
>>
>>> Hi Alessio,
>>>
>>>
>>> I lost my self among many attempts, so I started again:
>>>
>>>
>>>
>>> - I deployed geoserver2.10 with my backuped data dir
>>> - I checked:
>>>
>>>
>>> 1. security\auth\geonodeAuthProvider
>>> 2. security\filter\geonodeAnonymousFilter
>>> 3. security\filter\geonodeCookieFilter
>>>
>>> and they seem ok.
>>>
>>>
>>> - restarted tomcat and I got: host parameter is null
>>>
>>>
>>> I think this should be due to the different default setting of the
>>> authentication provider, what about?
>>> My next step was to insert the data dir from the link you gave me
>>> http://build.geonode.org/geoserver/latest/ (data-2.10.x.zip)
>>> and modify config.xml in security/auth/geonodeAuthProvider, I set the
>>> <baseurl>empty.
>>> By the way in this way I went to the geoserver UI directly to set-up the
>>> authentication as the test version.
>>> I was able to modify the 'authentication providers' in the
>>> 'Authentication, from provider chain I moved geonodeAuthProvider in
>>> Selected and I promote it at second place.
>>> The I tried to modify 'data' since the well running geoserver test
>>> version has *.*.r * and *.*.w * whereas the geoserver 2.10 has *.*. r
>>> and *.*. w GROUP_ADMIN,ROLE_ADMIN,ADMIN
>>> If I tried to modify *.*. r I got this problem:
>>>
>>> org.apache.wicket.WicketRuntimeException: Error attaching this
>>> container for rendering: [Palette [Component id = palette]]
>>> Caused by: java.lang.RuntimeException: An error occurred while getting
>>> the model object for Component: [Palette [Component id = palette, page =
>>> org.geoserver.security.web.data.EditDataAccessRulePage, path =
>>> 11:form:roles:palette.Palette, isVisible = true, isVersioned = false],
>>> children = [Recorder [Component id = recorder]][Choices [Component id =
>>> choices]][Selection [Component id = selection]][PaletteButton [Component id
>>> = addButton]][PaletteButton [Component id = removeButton]][PaletteButton
>>> [Component id = moveUpButton]][PaletteButton [Component id =
>>> moveDownButton]][PaletteButton [Component id = addAllButton]][PaletteButton
>>> [Component id = removeAllButton]][Component id = availableHeader][Component
>>> id = selectedHeader]]
>>> Am I going in the right direction or am I losing time?
>>> In the latter case, maybe it would be batter to downgrade to 2.9.x?
>>>
>>> What can you suggest?
>>>
>>> E.
>>>
>>> ------------------------------
>>> *Da:* Alessio Fabiani <alessio.fabiani at geo-solutions.it>
>>> *Inviato:* lunedì 3 aprile 2017 16.27
>>> *A:* Eugenio Trumpy
>>> *Cc:* Alessio Fabiani
>>> *Oggetto:* Re: [Geoserver-users] data dir migration from 2.7.x to 2.10.x
>>>
>>> Hmm, I'd suggest to get a copy of your old data dir and see if GeoServer
>>> is able to update it automatically.
>>>
>>> In theory the only issues you should have should be on the
>>> "data/security". You can replace just this folder with the 2.10.x one from "
>>> http://build.geonode.org/geoserver/latest/" and than tune up the
>>> security configuration later from the GeoServer GUI.
>>>
>>> The old GeoNode Authentication Providers still exist on the GeoServer
>>> distribution. You just need to diable the oauth2 providers and adjust the
>>> providers priority. You can use as a template an existent old running 2.7
>>> version and do changes from GeoServer Admin GUI accordingly to that one.
>>>
>>>
>>> Best Regards,
>>> Alessio Fabiani.
>>>
>>> ==
>>> GeoServer Professional Services from the experts!
>>> Visit http://goo.gl/it488V for more information.
>>> GeoSolutions Enterprise Services <http://goo.gl/it488V>
>>> goo.gl
>>> GeoSolutions offers enterprise support services to help you building
>>> enterprise-class Spatial Data Infrastructures leveraging on best-of-breed
>>> Open Source
>>>
>>> ==
>>>
>>> Ing. Alessio Fabiani
>>> @alfa7691
>>> github <https://github.com/afabiani?tab=overview>
>>> Founder/Technical Lead
>>>
>>> GeoSolutions S.A.S.
>>> Via di Montramito 3/A
>>> 55054 Massarosa (LU)
>>> Italy
>>> phone: +39 0584 962313 <0584%20962313>
>>> fax: +39 0584 1660272 <0584%20166%200272>
>>> mob: +39 331 6233686 <331%20623%203686>
>>>
>>> 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.
>>>
>>> ---------------------------------------------------------------------
>>>
>>> On Mon, Apr 3, 2017 at 1:58 PM, Eugenio Trumpy <frippe12573 at hotmail.com>
>>> wrote:
>>>
>>>> I restarted tomcat and then I was able to add the rule as you mentioned.
>>>>
>>>> After that I leave blank the <baseUrl> in config.xml of
>>>> auth/geonodeAuthProvider since I have geosites config.
>>>>
>>>>
>>>> I checked also geofence-server.properties and
>>>> geofence-datasource-ovr.properties and are empty.
>>>>
>>>>
>>>> Here the geoserver log from the last restart:
>>>>
>>>> https://paste.ubuntu.com/24306228/
>>>>
>>>>
>>>> Could I use the data dir deployed from geoserver2.10.x.war downloaded
>>>> from http://build.geonode.org/geoserver/latest/ and include inside the
>>>> children data dir I have in my backup?
>>>>
>>>>
>>>> Thank you again
>>>>
>>>>
>>>> Eugenio
>>>>
>>>>
>>>>
>>>> ------------------------------
>>>> *Da:* Alessio Fabiani <alessio.fabiani at geo-solutions.it>
>>>> *Inviato:* lunedì 3 aprile 2017 12.13
>>>> *A:* Eugenio Trumpy
>>>> *Cc:* Alessio Fabiani; geonode-users at lists.osgeo.org
>>>> *Oggetto:* Re: [Geoserver-users] data dir migration from 2.7.x to
>>>> 2.10.x
>>>>
>>>> Mmm, in theory old providers should work. You will need to to set them
>>>> manually. Maybe just upgrading the data dir from 2.7 should work with minor
>>>> changes.
>>>>
>>>> From your stack trace it looks like there is a configuration issue.
>>>> That's strange since geofence should use by default a file base db.
>>>>
>>>> Can you double check geofence properties on you geoserver data dir?
>>>>
>>>>
>>>> Best Regards,
>>>> Alessio Fabiani.
>>>>
>>>> ==
>>>> GeoServer Professional Services from the experts!
>>>> Visit http://goo.gl/it488V for more information.
>>>> GeoSolutions Enterprise Services <http://goo.gl/it488V>
>>>> goo.gl
>>>> GeoSolutions offers enterprise support services to help you building
>>>> enterprise-class Spatial Data Infrastructures leveraging on best-of-breed
>>>> Open Source
>>>>
>>>> ==
>>>>
>>>> Ing. Alessio Fabiani
>>>> @alfa7691
>>>> github <https://github.com/afabiani?tab=overview>
>>>> Founder/Technical Lead
>>>>
>>>> GeoSolutions S.A.S.
>>>> Via di Montramito 3/A
>>>> 55054 Massarosa (LU)
>>>> Italy
>>>> phone: +39 0584 962313 <0584%20962313>
>>>> fax: +39 0584 1660272 <0584%20166%200272>
>>>> mob: +39 331 6233686 <331%20623%203686>
>>>>
>>>> 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.
>>>>
>>>> ---------------------------------------------------------------------
>>>>
>>>> On Mon, Apr 3, 2017 at 11:43 AM, Eugenio Trumpy <
>>>> frippe12573 at hotmail.com> wrote:
>>>>
>>>>> Just tried, but on click 'GeoFence Data Rules' I got:
>>>>>
>>>>>
>>>>> https://paste.ubuntu.com/24305737/
>>>>>
>>>>>
>>>>> Do you think it is feasible to let geoserver 2.10 runs for geonode 2.4?
>>>>>
>>>>> Do you suggest me to come back to geoserver 2.9?
>>>>>
>>>>>
>>>>> E.
>>>>>
>>>>>
>>>>> ------------------------------
>>>>> *Da:* Alessio Fabiani <alessio.fabiani at geo-solutions.it>
>>>>> *Inviato:* lunedì 3 aprile 2017 11.14
>>>>> *A:* Eugenio Trumpy
>>>>> *Cc:* geonode-users at lists.osgeo.org
>>>>> *Oggetto:* Re: [Geoserver-users] data dir migration from 2.7.x to
>>>>> 2.10.x
>>>>>
>>>>> Hello Eugenio,
>>>>> pay attention, GeoServer 2.10.x version works against the new OAuth2
>>>>> authentication.
>>>>>
>>>>> However, try to enter on geoserver ui with the internal geoserver
>>>>> administrator (from the form insert admin / ****), go to geofence rules and
>>>>> add (if not exists) a new one with all defaults (ALLOW anything to all).
>>>>>
>>>>> Best Regards,
>>>>> Alessio Fabiani.
>>>>>
>>>>> ==
>>>>> GeoServer Professional Services from the experts!
>>>>> Visit http://goo.gl/it488V for more information.
>>>>> GeoSolutions Enterprise Services <http://goo.gl/it488V>
>>>>> goo.gl
>>>>> GeoSolutions offers enterprise support services to help you building
>>>>> enterprise-class Spatial Data Infrastructures leveraging on best-of-breed
>>>>> Open Source
>>>>>
>>>>> ==
>>>>>
>>>>> Ing. Alessio Fabiani
>>>>> @alfa7691
>>>>> github <https://github.com/afabiani?tab=overview>
>>>>> Founder/Technical Lead
>>>>>
>>>>> GeoSolutions S.A.S.
>>>>> Via di Montramito 3/A
>>>>> 55054 Massarosa (LU)
>>>>> Italy
>>>>> phone: +39 0584 962313 <0584%20962313>
>>>>> fax: +39 0584 1660272 <0584%20166%200272>
>>>>> mob: +39 331 6233686 <331%20623%203686>
>>>>>
>>>>> 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.
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>>
>>>>> On Mon, Apr 3, 2017 at 10:42 AM, Eugenio Trumpy <
>>>>> frippe12573 at hotmail.com> wrote:
>>>>>
>>>>>> Hi Alessio,
>>>>>>
>>>>>>
>>>>>> I needed to update again the geonode geoserver.
>>>>>>
>>>>>> I started from your suggestion wrote on the email below, so I
>>>>>> downloaded geoserver 2.10 (instead 2.9 you pointed).
>>>>>>
>>>>>> I thought were same procedure update from 2.7.x to 2.9.x but probably
>>>>>> I'm wrong. I'm having some authentication problems,
>>>>>>
>>>>>> here the log output:
>>>>>>
>>>>>>
>>>>>> https://paste.ubuntu.com/24305552/
>>>>>>
>>>>>>
>>>>>> for what I understood the main issues are:
>>>>>>
>>>>>> 2017-04-03 10:15:26,481 WARN [geonode.security] - Error connecting to
>>>>>> the GeoNode server for authentication purposes
>>>>>>
>>>>>> 2017-04-03 10:16:50,156 WARN [geofence.internal] - GeoFence was not
>>>>>> able to find any matching user on Security Context amd Services.
>>>>>>
>>>>>> 2017-04-03 10:16:50,218 ERROR [geoserver.ows] -
>>>>>> org.geoserver.platform.ServiceException: Could not find layer
>>>>>> geonode:hypo_density_clipped
>>>>>> ... and others related to other layers
>>>>>>
>>>>>>
>>>>>> I would remember that I'm working with a geosites configuration,
>>>>>> which needs to leave blank the <baseUrl> in config.xml of
>>>>>> auth/geonodeAuthProvider
>>>>>>
>>>>>> What am I missing?
>>>>>>
>>>>>> cheers
>>>>>>
>>>>>> Eugenio
>>>>>>
>>>>>> ------------------------------
>>>>>> *Da:* Eugenio Trumpy <frippe12573 at hotmail.com>
>>>>>> *Inviato:* giovedì 2 marzo 2017 14.46
>>>>>> *A:* geonode-users at lists.osgeo.org
>>>>>> *Oggetto:* I: [Geoserver-users] data dir migration from 2.7.x to
>>>>>> 2.9.x
>>>>>>
>>>>>>
>>>>>> I checked the contents of the security directories/files between
>>>>>> those you suggested in data-2.9.zip and those I had in my 2.7 data dir.
>>>>>>
>>>>>> I just insert the right baseurl in the geonodeAuthProvider/config.xml
>>>>>> and it works.
>>>>>>
>>>>>>
>>>>>> Now I have geonode 2.4 stable with geonode 2.9-snapshot.
>>>>>>
>>>>>> I can confirm that layers that had the border (due to tne
>>>>>> reprojection on the fly) are well represented!!
>>>>>>
>>>>>>
>>>>>> So changing the geoserver version solved the issue.
>>>>>>
>>>>>> Thank you
>>>>>>
>>>>>> E.
>>>>>>
>>>>>> ------------------------------
>>>>>> *Da:* alessio.fabiani at gmail.com <alessio.fabiani at gmail.com> per
>>>>>> conto di Alessio Fabiani <alessio.fabiani at geo-solutions.it>
>>>>>> *Inviato:* giovedì 2 marzo 2017 10.13
>>>>>> *A:* Andrea Aime
>>>>>> *Cc:* Eugenio Trumpy; geoserver-users at lists.sourceforge.net
>>>>>> *Oggetto:* Re: [Geoserver-users] data dir migration from 2.7.x to
>>>>>> 2.9.x
>>>>>>
>>>>>> Hi Eugenio,
>>>>>>
>>>>>> try to replace the following "security" folders of your GeoServer
>>>>>> data dir with the one here http://build.geonode.org/geose
>>>>>> rver/latest/data-2.9.x.zip (backup the old ones first):
>>>>>>
>>>>>> 1. security\auth\geonodeAuthProvider
>>>>>> 2. security\filter\geonodeAnonymousFilter
>>>>>> 3. security\filter\geonodeCookieFilter
>>>>>>
>>>>>> Later make sure to redo manually the GeoNode authentication filter
>>>>>> configuration settings on the new security folder (just do a diff of XML
>>>>>> files and be sure the GeoNode and GeoServer URLs are correct)
>>>>>>
>>>>>>
>>>>>> Best Regards,
>>>>>> Alessio Fabiani.
>>>>>>
>>>>>> ==
>>>>>> GeoServer Professional Services from the experts!
>>>>>> Visit http://goo.gl/it488V for more information.
>>>>>> GeoSolutions Enterprise Services <http://goo.gl/it488V>
>>>>>> goo.gl
>>>>>> GeoSolutions offers enterprise support services to help you building
>>>>>> enterprise-class Spatial Data Infrastructures leveraging on best-of-breed
>>>>>> Open Source
>>>>>>
>>>>>> ==
>>>>>>
>>>>>> Ing. Alessio Fabiani
>>>>>> @alfa7691
>>>>>> github <https://github.com/afabiani?tab=overview>
>>>>>> Founder/Technical Lead
>>>>>>
>>>>>> GeoSolutions S.A.S.
>>>>>> Via di Montramito 3/A
>>>>>> 55054 Massarosa (LU)
>>>>>> Italy
>>>>>> phone: +39 0584 962313 <0584%20962313>
>>>>>> fax: +39 0584 1660272 <0584%20166%200272>
>>>>>> mob: +39 331 6233686 <331%20623%203686>
>>>>>>
>>>>>> 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.
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>> On Thu, Mar 2, 2017 at 9:57 AM, Andrea Aime <
>>>>>> andrea.aime at geo-solutions.it> wrote:
>>>>>>
>>>>>>> Hi Eugenio,
>>>>>>> read below:
>>>>>>>
>>>>>>> On Thu, Mar 2, 2017 at 9:10 AM, Eugenio Trumpy <
>>>>>>> frippe12573 at hotmail.com> wrote:
>>>>>>>
>>>>>>>> org.geonode.security.HTTPClient.sendGET(HTTPClient.java:89)
>>>>>>>>
>>>>>>>> * org.geonode.security.DefaultSecurityClient.authenticate(DefaultSecurityClient.java:185)
>>>>>>>> org.geonode.security.DefaultSecurityClient.authenticateCookie(DefaultSecurityClient.java:116)
>>>>>>>> org.geonode.security.GeoNodeAuthenticationProvider.authenticate(GeoNodeAuthenticationProvider.java:66)*You are hitting an issue with a plugin the GeoServer community is not maintaining, not sure we can help.
>>>>>>>>
>>>>>>>> Plugins are version specific, I'd suggest you check with the
>>>>>>> GeoNode developers if there is a version compatible
>>>>>>> with GeoServer 2.9 and see if there is any upgrade procedure you
>>>>>>> have to follow to use it
>>>>>>>
>>>>>>> Cheers
>>>>>>> Andrea
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> ==
>>>>>>> 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 <0584%20962313>
>>>>>>> fax: +39 0584 1660272 <0584%20166%200272>
>>>>>>> mob: +39 339 8844549 <339%20884%204549>
>>>>>>>
>>>>>>> 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.
>>>>>>>
>>>>>>> -------------------------------------------------------
>>>>>>>
>>>>>>> ------------------------------------------------------------
>>>>>>> ------------------
>>>>>>> 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
>>>>>>> Geoserver-users at lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170405/3abe15de/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 23393 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170405/3abe15de/attachment-0001.png>
More information about the geonode-users
mailing list