4207: Uri Resolver upgrade: it must support new Geonetwork Manager
Task-Url: https://support.d4science.org/issues/4207 Set LoginLevel to ADMIN git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@129031 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
467d510a7f
commit
f99f30528e
|
@ -111,7 +111,7 @@ public class GeonetworkInstance {
|
|||
|
||||
try {
|
||||
try {
|
||||
logger.info("Authenticationg with login level: "+level);
|
||||
logger.info("Authenticating with login level: "+level);
|
||||
this.geonetworkPublisher.login(level);
|
||||
}
|
||||
catch (MissingConfigurationException | MissingServiceEndpointException e) {
|
||||
|
|
|
@ -282,7 +282,7 @@ public class GisResolver extends HttpServlet{
|
|||
|
||||
try {
|
||||
GeonetworkServiceInterface gntwAccess = new GeonetworkAccessParameter(scope, geonetworkParams);
|
||||
return MetadataConverter.getWMSOnLineResource(gntwAccess.getGeonetworkInstance(true, GeonetworkLoginLevel.SCOPE), gisUUID);
|
||||
return MetadataConverter.getWMSOnLineResource(gntwAccess.getGeonetworkInstance(true, GeonetworkLoginLevel.ADMIN), gisUUID);
|
||||
}catch (GeonetworkInstanceException e){
|
||||
logger.error("An error occurred when instancing geonetowrk gis layer with UUID "+gisUUID, e);
|
||||
throw new IllegalArgumentException("Sorry, An error occurred when instancing geonetwork with UUID: "+gisUUID);
|
||||
|
|
Loading…
Reference in New Issue