<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p>Hi Alessio,</p>
<p><br>
</p>
<p>the raster layer is a public layer. It can be seen by anyone (check box marked). There is also my name among the users. The same for download capabilities.</p>
<p>I saw this information in the 'Change layer permissions' panel. </p>
<p>What do you mean with "<span style="font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">Is the geotiff present and configured
on the second instance too</span>"? If you mean that the raster layer is listed also in the child site,</p>
<p>the answer is yes.</p>
<p>I don't know how to catch the request, however the geoserver log output is:</p>
<p><a href="https://pastebin.com/W0K9LHde" class="OWAAutoLink" id="LPlnk800025" previewremoved="true">https://pastebin.com/W0K9LHde</a></p>
<p><br>
</p>
<p>any hints?</p>
<p><br>
</p>
<p>E. </p>
<br>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Da:</b> Alessio Fabiani <alessio.fabiani@gmail.com><br>
<b>Inviato:</b> mercoledì 24 maggio 2017 15.50<br>
<b>A:</b> Eugenio Trumpy<br>
<b>Cc:</b> geonode-users; Simone Dalmasso<br>
<b>Oggetto:</b> Re: [GeoNode-users] geoserver authentication in multi-geosites</font>
<div> </div>
</div>
<div>
<div dir="auto">Is the geotiff present and configured on the second instance too? Is it private or publicly accessible? Can you somehow intercept the requests and send them here? </div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On May 20, 2017 15:20, "Eugenio Trumpy" <<a href="mailto:frippe12573@hotmail.com">frippe12573@hotmail.com</a>> wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="m_-3639788991529324940divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p>Hi all,</p>
<p><br>
</p>
<p>unfortunately I was not able to solve the issue raised in this thread. I was just living in the situation described.</p>
<p>However, today I have to face a consequent, I guess, issue.</p>
<p>From a child site I'm not able to download a raster layer (uploaded as tif) in geotiff format (i.e. in the download menu there is not the item 'Geotiff').</p>
<p>If I try to download the same raster layer from the master site it is possible <span style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">(i.e.
in the download menu there is the item 'Geotiff'</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">)</span>.</p>
<p>I think is a matter of geoserver configuration/authentication in geonode-multitenancy environment.</p>
<p><br>
</p>
<p>Have you got any suggestion?</p>
<p><br>
</p>
<p>E.</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block; width:98%">
<div id="m_-3639788991529324940divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Da:</b> Simone Dalmasso <<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>><br>
<b>Inviato:</b> mercoledì 5 aprile 2017 15.39<br>
<b>A:</b> Eugenio Trumpy<br>
<b>Cc:</b> <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<b>Oggetto:</b> Re: geoserver authentication in multi-geosites</font>
<div> </div>
</div>
<div>
<div dir="ltr">Eugenio, I don't see wrong config. It is ok I guess to leave the master site host in the gs config as well as I think it is ok that you cannot log in directly into gs from a child site. That said, when geosites was developed, the geoserver ext
was modified to make sure that geoserver pings the same host that made the http request for authentication instead of relying on the base url parameter. So ideally it should work as you would expect.
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-04-05 14:39 GMT+02:00 Eugenio Trumpy <span dir="ltr">
<<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="m_-3639788991529324940m_8958335284791106177divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p>Hi,</p>
<p><br>
</p>
<p>I'm working on geonode 2.4 in a Ubuntu server 14.04LTS (tomcat7, java8).</p>
<p>I had to upgrade geoserver from 2.7.x version up to 2.9.x.</p>
<p>In the system I configured geonode to work as multi-geosites.</p>
<p>The master site is the normal geonode site, I mean it use the local_setting.py I have in /geonode/geonode</p>
<p>The geosites are in /geonode/geonode/contrib/geosi<wbr>tes, and they use the relative config files.</p>
<p><br>
</p>
<p>The documentation: <a href="https://github.com/terranodo/geosites-project/blob/master/GEOSITES-README.md" class="m_-3639788991529324940m_8958335284791106177OWAAutoLink" id="m_-3639788991529324940m_8958335284791106177LPlnk952912" target="_blank">https://github.<wbr>com/terranodo/geosites-project<wbr>/blob/master/GEOSITES-README.<wbr>md</a></p>
<p>indicates to leave empty <baseurl> in config.xml in security/auth/geonodeauthprovi<wbr>der/</p>
<p>In that way I have this error:</p>
<p></p>
<pre>java.lang.IllegalArgumentExcep<wbr>tion: host parameter is null
org.apache.commons.httpclient.<wbr>HttpConnection.<init>(HttpConn<wbr>ection.java:206)
org.apache.commons.httpclient.<wbr>HttpConnection.<init>(HttpConn<wbr>ection.java:155)
org.apache.commons.httpclient.<wbr>SimpleHttpConnectionManager.ge<wbr>tConnectionWithTimeout(SimpleH<wbr>ttpConnectionManager.java:175)
org.apache.commons.httpclient.<wbr>HttpMethodDirector.executeMeth<wbr>od(HttpMethodDirector.java:<wbr>153)
org.apache.commons.httpclient.<wbr>HttpClient.executeMethod(HttpC<wbr>lient.java:397)
org.apache.commons.httpclient.<wbr>HttpClient.executeMethod(HttpC<wbr>lient.java:323)
org.geonode.security.HTTPClien<wbr>t.sendGET(HTTPClient.java:89)
org.geonode.security.DefaultSe<wbr>curityClient.authenticate(Defa<wbr>ultSecurityClient.java:185)
org.geonode.security.DefaultSe<wbr>curityClient.authenticateCooki<wbr>e(DefaultSecurityClient.java:1<wbr>16)
org.geonode.security.GeoNodeAu<wbr>thenticationProvider.authentic<wbr>ate(GeoNodeAuthenticationProvi<wbr>der.java:66)
org.geoserver.security.GeoServ<wbr>erAuthenticationProvider.<wbr>authenticate(GeoServerAuthenti<wbr>cationProvider.java:58)
org.springframework.security.a<wbr>uthentication.ProviderManager.<wbr>authenticate(ProviderManager.<wbr>java:167)
org.geoserver.security.GeoServ<wbr>erSecurityManager$1.authentica<wbr>te(GeoServerSecurityManager.<wbr>java:323)
org.geonode.security.GeoNodeCo<wbr>okieProcessingFilter.doFilter(<wbr>GeoNodeCookieProcessingFilter.<wbr>java:94)
org.springframework.security.w<wbr>eb.FilterChainProxy$VirtualFil<wbr>terChain.doFilter(FilterChainP<wbr>roxy.java:330)
org.geoserver.security.filter.<wbr>GeoServerCompositeFilter$Neste<wbr>dFilterChain.doFilter(GeoServe<wbr>rCompositeFilter.java:69)
org.springframework.security.w<wbr>eb.context.SecurityContextPers<wbr>istenceFilter.doFilter(Securit<wbr>yContextPersistenceFilter.<wbr>java:91)
org.geoserver.security.filter.<wbr>GeoServerSecurityContextPersis<wbr>tenceFilter$1.doFilter(GeoServ<wbr>erSecurityContextPersistenceFi<wbr>lter.java:53)
org.geoserver.security.filter.<wbr>GeoServerCompositeFilter$Neste<wbr>dFilterChain.doFilter(GeoServe<wbr>rCompositeFilter.java:73)
org.geoserver.security.filter.<wbr>GeoServerCompositeFilter.doFil<wbr>ter(GeoServerCompositeFilter.<wbr>java:92)
org.springframework.security.w<wbr>eb.FilterChainProxy$VirtualFil<wbr>terChain.doFilter(FilterChainP<wbr>roxy.java:330)
org.springframework.security.w<wbr>eb.FilterChainProxy.doFilterIn<wbr>ternal(FilterChainProxy.java:<wbr>213)
org.springframework.security.w<wbr>eb.FilterChainProxy.doFilter(F<wbr>ilterChainProxy.java:176)
org.geoserver.security.GeoServ<wbr>erSecurityFilterChainProxy.<wbr>doFilter(GeoServerSecurityFilt<wbr>erChainProxy.java:152)
org.springframework.web.filter<wbr>.DelegatingFilterProxy.invokeD<wbr>elegate(DelegatingFilterProxy.<wbr>java:346)
org.springframework.web.filter<wbr>.DelegatingFilterProxy.doFilte<wbr>r(DelegatingFilterProxy.java:2<wbr>62)
org.geoserver.filters.LoggingF<wbr>ilter.doFilter(LoggingFilter.<wbr>java:87)
org.geoserver.filters.GZIPFilt<wbr>er.doFilter(GZIPFilter.java:<wbr>42)
org.geoserver.filters.SessionD<wbr>ebugFilter.doFilter(SessionDeb<wbr>ugFilter.java:48)
org.geoserver.filters.FlushSaf<wbr>eFilter.doFilter(FlushSafeFilt<wbr>er.java:44)
org.springframework.web.filter<wbr>.CharacterEncodingFilter.doFil<wbr>terIntaernal(CharacterEncoding<wbr>Filter.java:121)
org.springframework.web.filter<wbr>.OncePerRequestFilter.doFilter<wbr>(OncePerRequestFilter.java:<wbr>107)</pre>
both if I use the geoserver link in the menu (once logged in) and if I call geoserver by using the geoserver url in the browser address bar.
<p></p>
<p><br>
</p>
<p>If set the doman name of the master site in <span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px"><baseurl> in config.xml in security/auth/geonodeauthprovi<wbr>der/</span></p>
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">I'm able to enter in geoserver as admin from the menu, by the way doing the same
operation from a geosite</span></p>
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">I got the geoserverage but not logged.</span></p>
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px"><br>
</span></p>
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px"><span>The master site virtualhost as well as those of the geosites have the proxypass
and reverse pointing to <a href="http://localhost:8080/geoserver" class="m_-3639788991529324940m_8958335284791106177OWAAutoLink" id="m_-3639788991529324940m_8958335284791106177LPlnk163963" target="_blank">
http://localhost:8080/geoserve<wbr>r</a></span><br>
</span></p>
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">The same in /geonode/geonode/contrib/geosi<wbr>tes/local_setting.py and pre-setting.py
I have <a href="http://localhost:8080/geoserver" class="m_-3639788991529324940m_8958335284791106177OWAAutoLink" id="m_-3639788991529324940m_8958335284791106177LPlnk531949" target="_blank">http://localhost:8080/geo<wbr>server</a></span></p>
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px"><br>
</span></p>
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">Is there a wrong configuration?</span></p>
<p><span style="font-family:Calibri,Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">Any hints?</span></p>
<p><br>
</p>
<p><br>
</p>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-3639788991529324940gmail_signature">Simone </div>
</div>
</div>
</div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/geonode-users</a><br>
<br>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</body>
</html>