geonetwork / geonetwork/core-geonetwork

align extent-api settings

Open
#5,352 2 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
Java
Stars
521
Forks
514
Avg merge
6d 13h
Merged PRs (30d)
19

Description

today i ran in a situation that extent image shows an error

```
no protocol: settings
```

the problem was caused by:
- region/getmap/background setting had value "oceans" (from previous install)
- [config-spring-geonetwork.xml](https://github.com/geonetwork/core-geonetwork/blob/aa37f95246d2abae70e801c01dc33224daebef14/web/src/main/webResources/WEB-INF/config-spring-geonetwork.xml#L164) did no longer contain a definition for "oceans"
- [background-map setting](https://github.com/geonetwork/core-geonetwork/blob/aa37f95246d2abae70e801c01dc33224daebef14/web/src/main/webResources/WEB-INF/config.properties#L48) on config properties had no effect

![image](https://user-images.githubusercontent.com/299829/104649545-2da83600-56b5-11eb-8f6d-0814c2142fd5.png)

- "Workaround", make sure region/getmap/background contains "osm" (or add a configuration in config-spring-geonetwork.xml)
- Basic improvement is to print in image a message that "oceans" is not one of available map configurations.
- Alternative is to remove the setting region/getmap/background and depend only on config.properties configuration

Contributor guide

Open the contributing guide

Research direction

Start with web/src/main/webResources/WEB-INF/config-spring-geonetwork.xml and config.properties, then trace how region/getmap/background is used when generating the extent image. Reproduce the error with the "oceans" value and determine whether the intended result is a clear invalid-configuration message or consistent configuration precedence; verify the chosen behavior with a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.