Skip to content

Issues with .env GEOSERVER_ADMIN_PASSWORD #7535

Closed
@khalifeserge

Description

@khalifeserge

Expected Behavior

Geoserver password should be updated to the value in GEOSERVER_ADMIN_PASSWORD

Actual Behavior

Geoserver password is not updated

Steps to Reproduce the Problem

in the .env file set
GEOSERVER_ADMIN_USER=administrator
GEOSERVER_ADMIN_PASSWORD=newpassword

start the stack with docker-build.sh
the geoserver password is not updated

Specifications

  • GeoNode version: 3.2
  • Installation method (manual, GeoNode Docker, SPCGeoNode Docker): docker-build.sh
  • Platform: docker on ubuntu
  • Additional details:

I figured out the reason this is happening and would like to fix if you agree

in settings.py around line 978 the python variable OGC_SERVER_DEFAULT_USER is set to env variable GEOSERVER_ADMIN_USER

then is tasks.py under task "_geoserver_info_provision" OGC_SERVER_DEFAULT_USER is used to login to geoserver.

The code need to be updated to differentiate between current user and password and new user and password.

The spc version has code in the initialize.py that gets the old password but I think it might suffer from the same issue ( I have not investigated enough to be certain)

Metadata

Metadata

Assignees

Labels

dockerIssues specific to GeoNode docker or GeoNode SPC

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions