[GeoNode-devel] attributes are not created when uploading a layer

Paolo Corti pcorti at gmail.com
Wed Jul 31 09:13:38 PDT 2019


Hi Alessio,

I created the ticket here:
https://github.com/GeoNode/geonode/issues/4713

If there isn't an easy way to fix this, we should consider to use the
previous attributes synchronization mechanism, which I believe was
based using basic authentication [1]. What do you think?

cheers
Paolo

[1]
https://github.com/GeoNode/geonode/blob/2.0.x/geonode/layers/models.py#L696


On Tue, Jul 16, 2019 at 9:01 PM Paolo Corti <pcorti at gmail.com> wrote:
>
> Hi Alessio
> thanks for your reply. I am currently using gsconfig==1.0.10 which I
> believe is already the latest version - at least the latest available
> on pypi. Or
> you mean to use its master code?
> We experienced this on 3 different instances, so it is very likely
> that other GeoNode instances could be affected. Though, this very likely
> won't impact users unless they want to use features that need the
> attributes to be stored in the database.
> One thing which will fix this for one layer is to save its metadata -
> or run updatelayers. But it would be nice to have this working out
> of the box.
> cheers and thanks!
>
> Paolo
>
> On Tue, Jul 16, 2019 at 8:54 AM Alessio Fabiani
> <alessio.fabiani at geo-solutions.it> wrote:
> >
> > Hi Paolo,
> > I guess this needs more investigation. Currently, I'm not sure what's
going on.
> > It is also possible that the update to the new "geoserver-restconfig"
library instead of the old "gsconfig" one, already fixes the problem.
> >
> > I would open an issue in any case.
> >
> > Cheers,
> > Alessio.
> >
> >
> > Il giorno mar 16 lug 2019 alle ore 04:38 Paolo Corti <pcorti at gmail.com>
ha scritto:
> >>
> >> Hi all
> >>
> >> Two things to add here:
> >>
> >> * I realized that this behaviour is happening randomly - so it could
> >> be that for some reason during the upload process GeoServer
> >> authorization doesn't work under some circumstances.
> >>
> >> For example this is the same shapefile uploaded today and on Saturday:
> >> attributes are there only in the latter one:
> >>
> >> http://128.31.22.46/layers/geonode:subwaylines_p_odp_2
> >> http://128.31.22.46/layers/geonode:subwaylines_p_odp_3
> >>
> >> * Everything else with GeoServer works correctly (style editing, data
> >> editing etc...), so I believe configuration should be correct
> >>
> >> @afabiani, I am planning to file a ticket, let me know your thoughts
about this.
> >>
> >> thanks
> >> Paolo
> >>
> >> On Fri, Jul 12, 2019 at 4:07 PM Paolo Corti <pcorti at gmail.com> wrote:
> >> >
> >> > Hi (GeoServer) devs
> >> >
> >> > this is happening not locally, but on two our production instances
now
> >> > - it was working correctly before a few weeks ago - with different
> >> > code.
> >> >
> >> > What is happening: when a user - even the administrator - upload a
new
> >> > vector layer, the attributes are not created in the layer_attributes
> >> > django table.
> >> >
> >> > The problem seems to occur at this line:
> >> >
https://github.com/GeoNode/geonode/blob/master/geonode/geoserver/helpers.py#L915
> >> >
> >> > Checking the body of the response I see:
> >> >
> >> > <?xml version="1.0" ?>
> >> > <ServiceExceptionReport
> >> >    version="1.2.0"
> >> >    xmlns="http://www.opengis.net/ogc"
> >> >    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >> >    xsi:schemaLocation="http://www.opengis.net/ogc
> >> > http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
> >> >    <ServiceException code="InvalidParameterValue">
> >> >       Could not find type: {
http://www.geonode.org/}subwaylines_p_odp_4
> >> > </ServiceException></ServiceExceptionReport>
> >> >
> >> > If I save the layer (from metadata) then the attributes are
correctly created.
> >> >
> >> > I am pretty sure this must be some GeoServer misconfiguration in
> >> > security directory: do you have an hint about what could cause this?
> >> >
> >> > thanks in advance!
> >> > Paolo
> >> >
> >> > --
> >> > Paolo Corti
> >> > Geospatial software developer
> >> > web: http://www.paolocorti.net
> >> > twitter: @capooti
> >> > skype: capooti
> >> > #drt3jc1
> >>
> >>
> >>
> >> --
> >> Paolo Corti
> >> Geospatial software developer
> >> web: http://www.paolocorti.net
> >> twitter: @capooti
> >> skype: capooti
> >> #drt3jc1
> >> _______________________________________________
> >> geonode-devel mailing list
> >> geonode-devel at lists.osgeo.org
> >> https://lists.osgeo.org/mailman/listinfo/geonode-devel
> >
> >
> >
> > --
> >
> > ==
> >
> > 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.
>
>
>
> --
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
> #drt3jc1



-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
#drt3jc1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20190731/df70915c/attachment.html>


More information about the geonode-devel mailing list