[GeoNode-users] Permissions - Cannot download layers

Paolo Pasquali paolo.pasquali at gmail.com
Mon Dec 16 05:02:15 PST 2019


Great! It works.

Thank you so much. I owe a beer.

Ciao

P.

On Mon, Dec 16, 2019 at 1:14 PM Alessio Fabiani <
alessio.fabiani at geo-solutions.it> wrote:

> Probably the "set_all_layers_metadata -d" management command, but I'm
> not sure the most updated version is present on your current platform.
>
> Il giorno lun 16 dic 2019 alle ore 13:09 Paolo Pasquali <
> paolo.pasquali at gmail.com> ha scritto:
>
>> Is there a chance to restore the download link in the db?
>> In what table can I find this value?
>>
>> Thanks.
>>
>>
>> On Mon, Dec 16, 2019 at 11:38 AM Alessio Fabiani <
>> alessio.fabiani at geo-solutions.it> wrote:
>>
>>> @Paolo Pasquali <paolo.pasquali at gmail.com> the  "Request
>>> Download" button appears because the resource does not have any "download
>>> link" configured on the DB.
>>>
>>> Not sure why they have been deleted/removed.
>>>
>>> Il giorno lun 16 dic 2019 alle ore 11:30 Paolo Pasquali <
>>> paolo.pasquali at gmail.com> ha scritto:
>>>
>>>> Should be 2.10.0 or something like that but less than 2.10.1
>>>>
>>>> For instance, in the Django admin I don't get the "Set Layer
>>>> permissions" action from the drop down menu.
>>>>
>>>> Anyway, If I run
>>>>
>>>> python manage.py set_layers_permissions -p download -g SomeGroup
>>>>
>>>> Should the expected result be that all the layers are downloadable for
>>>> that group. But it does not seem to work.
>>>>
>>>> Is there a way to set a permission for all the users and not filtered
>>>> by a group or user?
>>>>
>>>> Thanks.
>>>>
>>>> Please note that if I upload a new layer, the permissions are properly
>>>> set.
>>>>
>>>> Ciao
>>>>
>>>> P.
>>>>
>>>>
>>>>
>>>> On Mon, Dec 16, 2019 at 10:41 AM Alessio Fabiani <
>>>> alessio.fabiani at geo-solutions.it> wrote:
>>>>
>>>>> Uhm,
>>>>> I don't get this message. Just tried to run the command and it started
>>>>> scanning the layers. Which version are you using?
>>>>>
>>>>> Moreover, if you want to batch set/unset the permissions you might
>>>>> want to consider also this command here
>>>>> http://docs.geonode.org/en/master/admin/mgmt_commands/index.html#batch-sync-permissions
>>>>>
>>>>> I'm using 2.10.x branch now.
>>>>>
>>>>>
>>>>> Il giorno lun 16 dic 2019 alle ore 09:50 Paolo Pasquali <
>>>>> paolo.pasquali at gmail.com> ha scritto:
>>>>>
>>>>>> Ciao Alessio,
>>>>>>
>>>>>> Thanks for the reply.
>>>>>> I've already followed this documentation section but without success.
>>>>>>
>>>>>> If I run:
>>>>>>
>>>>>> python manage.py sync_geonode_layers --updatepermissions
>>>>>>
>>>>>> I get:
>>>>>>
>>>>>> manage.py sync_geonode_layers: error: argument --updatepermissions:
>>>>>> expected one argument
>>>>>>
>>>>>> Which argument should I specify?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> P.
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Dec 16, 2019 at 9:38 AM Alessio Fabiani <
>>>>>> alessio.fabiani at geo-solutions.it> wrote:
>>>>>>
>>>>>>> Hello Paolo,
>>>>>>> probably this section of the docs might be helpful
>>>>>>>
>>>>>>>
>>>>>>> http://docs.geonode.org/en/master/admin/mgmt_commands/index.html#update-permissions-metadata-legends-and-download-links
>>>>>>>
>>>>>>>
>>>>>>> Il giorno ven 13 dic 2019 alle ore 17:05 Paolo Pasquali <
>>>>>>> paolo.pasquali at gmail.com> ha scritto:
>>>>>>>
>>>>>>>> Dear all,
>>>>>>>>
>>>>>>>> I'm still struggling with the permission system (again).
>>>>>>>> I have migrated several layers from an old version into a GeoNode
>>>>>>>> 2.10. I have launched the updatelayers and sync_geonode_layers commands but
>>>>>>>> for all these layers I have the "Request Download" button instead of the
>>>>>>>> "Download Layer" button.
>>>>>>>>
>>>>>>>> The problem is that my user is administrator and "Anyone" is
>>>>>>>> flagged for "Who can download this layer?" in the permission modal.
>>>>>>>>
>>>>>>>> Could you suggest how to fix this issue?
>>>>>>>>
>>>>>>>> Please note that some commands mentioned in the docs such as
>>>>>>>> set_layer_permissions are not available in my 2.10 version.
>>>>>>>>
>>>>>>>> If I upload a new layer everything is fine.
>>>>>>>>
>>>>>>>> Thanks.
>>>>>>>>
>>>>>>>> Best,
>>>>>>>>
>>>>>>>> Paolo
>>>>>>>> _______________________________________________
>>>>>>>> geonode-users mailing list
>>>>>>>> geonode-users at lists.osgeo.org
>>>>>>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> ==
>>>>>>>
>>>>>>> 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
>>>>>>> -------------------------------------------------------
>>>>>>>
>>>>>>> Con riferimento alla normativa sul trattamento dei dati personali
>>>>>>> (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”),
>>>>>>> si precisa che ogni circostanza inerente alla presente email (il suo
>>>>>>> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
>>>>>>> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
>>>>>>> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
>>>>>>> operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
>>>>>>>
>>>>>>>
>>>>>>> This email is intended only for the person or entity to which it is
>>>>>>> addressed and may contain information that is privileged, confidential or
>>>>>>> otherwise protected from disclosure. We remind that - as provided by
>>>>>>> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
>>>>>>> e-mail or the information herein by anyone other than the intended
>>>>>>> recipient is prohibited. If you have received this email by mistake, please
>>>>>>> notify us immediately by telephone or e-mail.
>>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> ==
>>>>>
>>>>> 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
>>>>> -------------------------------------------------------
>>>>>
>>>>> Con riferimento alla normativa sul trattamento dei dati personali
>>>>> (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”),
>>>>> si precisa che ogni circostanza inerente alla presente email (il suo
>>>>> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
>>>>> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
>>>>> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
>>>>> operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
>>>>>
>>>>>
>>>>> This email is intended only for the person or entity to which it is
>>>>> addressed and may contain information that is privileged, confidential or
>>>>> otherwise protected from disclosure. We remind that - as provided by
>>>>> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
>>>>> e-mail or the information herein by anyone other than the intended
>>>>> recipient is prohibited. If you have received this email by mistake, please
>>>>> notify us immediately by telephone or e-mail.
>>>>>
>>>> _______________________________________________
>>>> geonode-users mailing list
>>>> geonode-users at lists.osgeo.org
>>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>>
>>>
>>>
>>> --
>>>
>>> ==
>>>
>>> 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
>>> -------------------------------------------------------
>>>
>>> Con riferimento alla normativa sul trattamento dei dati personali (Reg.
>>> UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
>>> precisa che ogni circostanza inerente alla presente email (il suo
>>> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
>>> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
>>> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
>>> operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
>>>
>>>
>>> This email is intended only for the person or entity to which it is
>>> addressed and may contain information that is privileged, confidential or
>>> otherwise protected from disclosure. We remind that - as provided by
>>> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
>>> e-mail or the information herein by anyone other than the intended
>>> recipient is prohibited. If you have received this email by mistake, please
>>> notify us immediately by telephone or e-mail.
>>>
>>
>
> --
>
> ==
>
> 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
> -------------------------------------------------------
>
> Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
> 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
> precisa che ogni circostanza inerente alla presente email (il suo
> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
> operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
>
>
> This email is intended only for the person or entity to which it is
> addressed and may contain information that is privileged, confidential or
> otherwise protected from disclosure. We remind that - as provided by
> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
> e-mail or the information herein by anyone other than the intended
> recipient is prohibited. If you have received this email by mistake, please
> notify us immediately by telephone or e-mail.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20191216/d5605870/attachment-0001.html>


More information about the geonode-users mailing list