camptocamp / c2cgeoportal

c2cgeoportal application
http://geomapfish.org
Other
64 stars 46 forks source link

Desktop cgxp interface route issue with 2.1.0RC1 #2571

Closed gnerred closed 7 years ago

gnerred commented 7 years ago

Here the error, a route issue :

https://preprod.cartoriviera.ch/v2/

sbrunner commented 7 years ago

in the file cartoriviera/templates/desktop.html this

<script type="text/javascript" src="${request.route_url('viewer', _query=extra_params)}"></script>

should be replaced by:

<script type="text/javascript" src="${request.route_url('desktop.js', _query=extra_params)}"></script>

[to be documented]

gnerred commented 7 years ago

Ok thanks, now I have a token problem

https://preprod.cartoriviera.ch/v2/

sbrunner commented 7 years ago

:-)

sbrunner commented 7 years ago

I miss the .js in may comment (I just edit it :-) )

gnerred commented 7 years ago

Ok, now it is an error 500 :O(

sbrunner commented 7 years ago

If you need the ogcproxy you should add "papyrus_ogcproxy" in the dependencies in your "setup.py" file and set ogcproxy_enable to true in the vars file and CONFIG_VARS += ogcproxy_enable in your project make file, if not you should remove it in the desktop.js file.

[to be documented]

gnerred commented 7 years ago

Where do I add it in setup.py ?

sbrunner commented 7 years ago

In the install_requires (about line 20)

gnerred commented 7 years ago

Done, rebuiled, but still error 500 https://preprod.cartoriviera.ch/v2/

But still this error too during the build https://github.com/camptocamp/c2cgeoportal/issues/2534 : Unable to DescribeFeatureType from URL /qgis/qgis_mapserver.fcgi?map=/var/sig/qgis/distribution.qgs&transparent=true&VERSION=1.1.0&REQUEST=DescribeFeatureType&SERVICE=WFS No such table '' for layer 'separateurs_hydro'. CONST_Makefile:686: recipe for target 'cartoriviera/locale/cartoriviera-client.pot' failed make: *\ [cartoriviera/locale/cartoriviera-client.pot] Error 1

gnerred commented 7 years ago

Still error 500, even after a rebuild without error

sbrunner commented 7 years ago

In the OGC server table you have two entry for QGIS server, and one have an invalid URL...

gnerred commented 7 years ago

Ok, I corrected, there are no more invalid URLs in OGC server table (if I understood well the problem), but still an error 500 https://preprod.cartoriviera.ch/v2/

sbrunner commented 7 years ago

OK, I miss to say that you should set ogcproxy_enable to true in your vars_cartoriviera.yaml file :-)

gnerred commented 7 years ago

Ok I did it like below, but still error 500 : https://preprod.cartoriviera.ch/v2/

vars:

    # ogcproxy
    ogcproxy_enable: true

    # Database name
    db: cartoriviera_preprod
sbrunner commented 7 years ago

And an other miss is to add CONFIG_VARS += ogcproxy_enable in your project make file cartoriviera.mk.

gnerred commented 7 years ago

Still get an error 500. Here the debug : https://preprod.cartoriviera.ch/v2/wsgi/_debug/view/1476079310

sbrunner commented 7 years ago

This time it's an other error :-)

I remove this line

        externalWFSTypes: ${externalWFSTypes | n},

in the desktop.js file and now it's working

[Should be added in the changelog]

gnerred commented 7 years ago

Ok thanks, my desktop CGXP is now working on GMF 2.1 :O)