[GeoNode-devel] Geoserver Layers from 2.4 to 2.6 - permissions

LM Admin skeenamaps at gmail.com
Mon Dec 18 12:30:19 PST 2017

I understand that the Geoserver data directory is different in 2.6 from
2.4.  However, the only problem seems to be that the layers are not visible
to public users.  Is there a way to replace only the layer permissions on
the layers imported with the Geonode / Geoserver 2.4 data directory?

Or is it possible to copy just the layer info from the 2.4 data directory
into the 2.6 data directory?  I'm not exactly clear on how to do this,
information referencing layers and styles seems to be in many places.


On Fri, Dec 15, 2017 at 3:02 PM, LM Admin <skeenamaps at gmail.com> wrote:

> Thank you for the suggestions. Should I be using this guide to setup
> Oauth? http://docs.geonode.org/en/master/tutorials/admin/
> geoserver_geonode_security/
> Oauth parameters seem to be set correctly.  ./manage.py sync_geofence did
> not fix the issue, however.
> LM
> On Fri, Dec 15, 2017 at 2:41 PM, Francesco Bartoli <xbartolone at gmail.com>
> wrote:
>> GeoServer data dir is partially different so just copying wouldn’t help.
>> I think there should be a backup/restore procedure but I haven’t tried it
>> yet, maybe Paolo and Alessio can help here
>> Il giorno 15/dic/2017, alle ore 20:58, LM Admin <skeenamaps at gmail.com>
>> ha scritto:
>> > Hi all,
>> >
>> > I recently upgraded a client's map portal from Geonode 2.4 to 2.6.  I
>> copied the db and updated to the 2.6 schema using manage.py --fake-initial,
>> and updatemaplayerip. I also copied the entire Geoserver data directory.
>> When logged in as a registered user, maps and layers work fine. However, as
>> an anonymous user (not logged in), none of the layers render correctly in
>> Geoserver--instead I get error tiles of class
>> olTileImage.olImageLoadError.  In Geonode, all of these layers are set to
>> public.
>> >
>> > However, new layers that I upload display correctly for both registered
>> and anonymous users. So the permission issue is limited to layers imported
>> from Geonode 2.4.  Given the change in Geoserver versions, and the change
>> in authentication, is copying the entire Geoserver data directory the right
>> thing to do? Or am I missing a step?
>> >
>> > Thank you,
>> >
>> > LM
>> > _______________________________________________
>> > 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/20171218/2c2f2e15/attachment.html>

More information about the geonode-devel mailing list