Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malformed urls cause breaking of thumbnails and download options of the uploaded layers #6822

Closed
bisceglialuigi opened this issue Jan 15, 2021 · 1 comment
Labels
spc-docker issues only affecting spc
Milestone

Comments

@bisceglialuigi
Copy link

Expected Behavior

I installed spcgeonode cloning Geonode version 3.1 and executing "docker-compose up -d" in the "geonode/scripts/spcgeonode" folder. After the building and the starting of every container, I expect to:

  1. normally visualize layer's thumbnails in the "explore layers" menu for each uploaded layer;
  2. correctly download layers from the button "download" in the layer info.

I did not modify anything in the Dockerfiles or .env, so all the default configurations are retained, as host="127.0.0.1" and port "80".

Actual Behavior

  1. no thumbnails can be loaded for any layer. Opening the Network tab in the browser
    developer console, it is clear that requests for thumbnails are failing due to wrong urls. Actual url: "http://localhost:8000/uploaded/thumbs/layer-dbd85c1e-55b1-11eb-b789-0242ac140003-thumb.png".
    break
    break2

If I manually change to "http://127.0.0.1/uploaded/thumbs/layer-dbd85c1e-55b1-11eb-b789-0242ac140003-thumb.png" and request it in the browser the thumbnail comes up.
break3

  1. Any format of the download option in the layer info is compromised. The requests for any format fail for a reason similar to the point 1. If for example I click Download Layer > Data > GeoJSON, I can see the malformed url "http://localhost:8080/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typename=geonode%3Ajoined_layer&outputFormat=json&srs=EPSG%3A32632&srsName=EPSG%3A32632&access_token=jNCuF13KV0yLVKlpe0rAJY3E4F9Haw" in the url bar and no layer content.
    brok5

If I manually fix it to "http://127.0.0.1/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typename=geonode%3Ajoined_layer&outputFormat=json&srs=EPSG%3A32632&srsName=EPSG%3A32632&access_token=jNCuF13KV0yLVKlpe0rAJY3E4F9Haw" I can get the resource.
brok6

Steps to Reproduce the Problem

  1. Git Clone Geonode version 3.1 released on 30 Nov 2020
  2. cd into "geonode/scripts/spcgeonode/"
  3. execute "docker-compose up -d"
  4. upload a layer
  5. from the main page: Data > Layers, you can see broken thumbnails
  6. from the detail page of an uploaded layer: Download Layer > Data > GeoJSON, you can not see any content.

Specifications

  • GeoNode version: 3.1
  • Installation method: SPCGeoNode Docker
  • Platform: Ubuntu 18.04
  • Additional details:
@gannebamm
Copy link
Contributor

@t-book t-book added docker Issues specific to GeoNode docker or GeoNode SPC spc-docker issues only affecting spc and removed docker Issues specific to GeoNode docker or GeoNode SPC labels Feb 18, 2021
@afabiani afabiani added this to the 4.0.0 milestone Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spc-docker issues only affecting spc
Projects
None yet
Development

No branches or pull requests

5 participants