Fixes #23391 (idempotent publish for concessioni)
This commit is contained in:
parent
47043b482c
commit
ba0545e2c7
|
@ -3,8 +3,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||
# Changelog for org.gcube.application.geoportal-service
|
||||
|
||||
|
||||
## [v1.0.9] 2021-09-20
|
||||
## [v1.0.9-SNAPSHOT] 2021-09-20
|
||||
- Fixes [#23381](https://support.d4science.org/issues/23381)
|
||||
- Fixes [#23485](https://support.d4science.org/issues/23485)
|
||||
|
||||
|
||||
## [v1.0.8] 2021-09-20
|
||||
- Logging
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.gcube.application</groupId>
|
||||
<artifactId>geoportal-service</artifactId>
|
||||
<version>1.0.9</version>
|
||||
<version>1.0.9-SNAPSHOT</version>
|
||||
<name>Geoportal Service</name>
|
||||
<packaging>war</packaging>
|
||||
|
||||
|
|
|
@ -213,7 +213,12 @@ public class ConcessioniMongoManager extends MongoManager{
|
|||
|
||||
public Concessione publish(String id) throws IOException{
|
||||
Concessione toReturn=asConcessione(getById(asId(id),collectionName));
|
||||
// unpublish if published
|
||||
toReturn=onUpdate(toReturn);
|
||||
// try unpublish
|
||||
toReturn = unpublish(toReturn);
|
||||
|
||||
|
||||
toReturn.validate();
|
||||
|
||||
// MATERIALIZE LAYERS
|
||||
|
|
Loading…
Reference in New Issue