<div dir="ltr">Mmm,<div>I'm not fully sure this method is valid</div><div><br></div><div><span style="font-family:Calibri;font-size:14.6667px"> url:"/gs/" + </span><font color="red" style="font-family:Calibri;font-size:14.6667px"><b>workspace</b></font><span style="font-family:Calibri;font-size:14.6667px"> + layer.params.LAYERS</span><br></div><div><span style="font-family:Calibri;font-size:14.6667px"><br></span></div><div><span style="font-family:Calibri;font-size:14.6667px">I guess /gs/ is a GeoNode Proxy to GeoServer, used by GeoServer itself to get the authorization rules from GeoNode.</span></div><div><span style="font-family:Calibri;font-size:14.6667px"><br></span></div><div><span style="font-family:Calibri;font-size:14.6667px">I'm not fully sure the workspace is supported, but I may be wrong.</span></div><div><span style="font-family:Calibri;font-size:14.6667px"><br></span></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div style="font-size:12.8px">Best Regards,</div><div style="font-size:12.8px">Alessio Fabiani.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>==</div><div>GeoServer Professional Services from the experts!</div><div>Visit <a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.</div><div>==</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Ing. Alessio Fabiani</div><div style="font-size:12.8px">@alfa7691</div><div style="font-size:12.8px">Founder/Technical Lead</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>GeoSolutions S.A.S.</div><div>Via di Montramito 3/A</div><div>55054 Massarosa (LU)</div><div>Italy</div><div>phone: +39 0584 962313</div><div>fax: +39 0584 1660272</div><div>mob: +39 333 8128928</div><div><br></div><div><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></div><div><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a></div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">-------------------------------------------------------</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><p><span lang="IT"><font size="1"><b>AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</b></font></span></p><p><span lang="IT"><font size="1">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.</font></span></p><p><span lang="IT"><font size="1"> </font></span></p><p><font size="1">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.</font></p><p><font size="1">---------------------------------------------------------------------</font></p></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Feb 16, 2016 at 2:11 PM, David Alda Fernandez de Lezea <span dir="ltr"><<a href="mailto:dalda@hazi.eus" target="_blank">dalda@hazi.eus</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<font face="Calibri" size="2"><span style="font-size:11pt">
<div>Yes, I guess so, I haven't changed anything related to GeoNode and Geoserver configuration. Everything is in the same machine.</div>
<div> </div>
<div>The changes I made in the code are (<font color="red"><b>in red</b></font>):</div>
<div> </div>
<div><b><u>/usr/local/lib/python2.7/dist-packages/geonode/settings.py</u></b></div>
<div> </div>
<div>LOCAL_GEOSERVER = {</div>
<div> "source": {</div>
<div> "ptype": "gxp_wmscsource",</div>
<div> "url": OGC_SERVER['default']['PUBLIC_LOCATION'] + "<font color="red"><b>geonode</b></font>/wms",</div>
<div> "restUrl": "/gs/rest"</div>
<div> }</div>
<div> }</div>
<div> </div>
<div> </div>
<div><b><u>/var/www/geonode/static/geonode/js/extjs/GeoNode-mixin.js</u></b></div>
<div> </div>
<div>layer.url.indexOf(app.localGeoServerBaseUrl.replace(app.urlPortRegEx, "$1/")) === 0)) {</div>
<div> </div>
<div> <font color="red"><b> var workspace="geonode:"; </b></font></div>
<div><font color="red"> <b> if (layer.params.LAYERS.indexOf(":")!=-1){</b></font></div>
<div><font color="red"> <b>workspace = "";</b></font></div>
<div><font color="red"><b> </b><b> </b><b> </b><b>}</b></font></div>
<div> Ext.Ajax.request({</div>
<div> /* TODO: use a template variable here if possible */</div>
<div> url:"/gs/" + <font color="red"><b>workspace</b></font> + layer.params.LAYERS + "/edit-check",</div>
<div> method:"POST",</div>
<div> success:function (response) {</div>
<div> var result = Ext.decode(response.responseText);</div>
<div> if (result.authorized === false) {</div>
<div> toggleButtons(false);</div>
<div> } else {</div>
<div> layer.displayOutsideMaxExtent = true;</div>
<div> toggleButtons(true);</div>
<div> }</div>
<div> },</div>
<div> failure:function () {</div>
<div> toggleButtons(false);</div>
<div> }</div>
<div> });</div>
<div> } else {</div>
<div> toggleButtons(false);</div>
<div> }</div>
<div> </div>
<div> </div>
<div>Thanks.</div>
<div> </div>
<div>Regards.</div><span class="">
<div> </div>
<div>Agur bero bat,</div>
<div> </div>
<div> </div>
<div>David Alda Fernández de Lezea</div>
<div>Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.</div>
<div>dalda@hazi.eus | <a href="http://www.hazi.eus" target="_blank">www.hazi.eus</a></div>
</span><div>T 945 003 240 – M 627 923 170 – F 945 003 290 </div>
<div>Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba </div><span class="">
<div>********************* LEGE OHARRA ******************* AVISOLEGAL ******************* DISCLAIMER *****************************</div>
<div>Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.</div>
<div>Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.</div>
<div>This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.</div>
<div> </div>
</span><div>De: <a href="mailto:alessio.fabiani@gmail.com" target="_blank">alessio.fabiani@gmail.com</a> [<a href="mailto:alessio.fabiani@gmail.com" target="_blank">mailto:alessio.fabiani@gmail.com</a>] En nombre de Alessio Fabiani</div>
<div>Enviado el: martes, 16 de febrero de 2016 13:24</div>
<div>Para: David Alda Fernandez de Lezea</div>
<div>CC: <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a></div>
<div>Asunto: Re: [GeoNode-users] Error 405 not permitted</div><div><div class="h5">
<div> </div>
<div>Are GeoServer and GeoNode under the same domain? (same hostname and same port)?</div>
<div> </div>
<div> </div>
<div>Best Regards,</div>
<div>Alessio Fabiani.</div>
<div> </div>
<div>==</div>
<div>GeoServer Professional Services from the experts!</div>
<div>Visit <a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.</div>
<div>==</div>
<div> </div>
<div>Ing. Alessio Fabiani</div>
<div>@alfa7691</div>
<div>Founder/Technical Lead</div>
<div> </div>
<div>GeoSolutions S.A.S.</div>
<div>Via di Montramito 3/A</div>
<div>55054 Massarosa (LU)</div>
<div>Italy</div>
<div>phone: <a href="tel:%2B39%200584%20962313" value="+390584962313" target="_blank">+39 0584 962313</a></div>
<div>fax: <a href="tel:%2B39%200584%201660272" value="+3905841660272" target="_blank">+39 0584 1660272</a></div>
<div>mob: <a href="tel:%2B39%20333%208128928" value="+393338128928" target="_blank">+39 333 8128928</a></div>
<div> </div>
<div><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></div>
<div><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a></div>
<div> </div>
<div>-------------------------------------------------------</div>
<div> </div>
<div>AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</div>
<div>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.</div>
<div> </div>
<div>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.</div>
<div>---------------------------------------------------------------------</div>
<div> </div>
<div>On Tue, Feb 16, 2016 at 1:02 PM, David Alda Fernandez de Lezea <dalda@hazi.eus> wrote:</div>
<div>Hi list,</div>
<div> </div>
<div>I'm continuing with our GeoNode customization. One of our requirements was to show in the GeoExplorer Local GeoServer combo only the layers from "geonode" workspace. So far I've been able to modify everything and get it working, but I've found an issue
while accessing layer details. I get an HTTP 405 error METHOD NOT ALLOWED while accessing
<a href="http://192.168.1.190/gs/rest/styles" target="_blank">http://192.168.1.190/gs/rest/styles</a></div>
<div> </div>
<div>HTTP/1.1 405 METHOD NOT ALLOWED</div>
<div>Date: Tue, 16 Feb 2016 11:39:17 GMT</div>
<div>Server: Apache/2.4.7 (Ubuntu)</div>
<div>Vary: Accept-Language,Cookie</div>
<div>X-Frame-Options: SAMEORIGIN</div>
<div>Content-Language: es</div>
<div>Content-Length: 0</div>
<div>Keep-Alive: timeout=5, max=100</div>
<div>Connection: Keep-Alive</div>
<div>Content-Type: text/plain</div>
<div> </div>
<div>And the layer is not displayed in the preview. Apache doesn't show any error.</div>
<div> </div>
<div>Can anyone point me to the file(s) that I have to change?</div>
<div> </div>
<div>Thanks in advance.</div>
<div> </div>
<div>Regards,</div>
<div> </div>
<div>Agur bero bat,</div>
<div> </div>
<div> </div>
<div>David Alda Fernández de Lezea</div>
<div>Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.</div>
<div>dalda@hazi.eus | <a href="http://www.hazi.eus" target="_blank">www.hazi.eus</a></div>
<div>T 945 003 240 - M 627 923 170 - F 945 003 290</div>
<div>Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute - Araba</div>
<div> </div>
<div>********************* LEGE OHARRA ******************* AVISOLEGAL ******************* DISCLAIMER *****************************</div>
<div>Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.</div>
<div>Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.</div>
<div>This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.</div>
<div> </div>
<div>_______________________________________________</div>
<div>geonode-users mailing list</div>
<div><a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a></div>
<div><a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a></div>
<div> </div>
<div> </div>
</div></div></span></font>
</div>
<br>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br></div>