This commit is contained in:
Francesco Mangiacrapa 2024-03-27 11:47:46 +01:00
parent ca455477f5
commit 89c3f1f435
4 changed files with 69 additions and 23 deletions

View File

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
@ -16,7 +19,10 @@
<wb-module deploy-name="uri-resolver-2.9.0">
@ -33,7 +39,10 @@
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
@ -50,7 +59,10 @@
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
@ -67,7 +79,10 @@
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
@ -84,7 +99,10 @@
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
@ -101,7 +119,10 @@
<property name="context-root" value="uri-resolver"/>
@ -118,7 +139,10 @@
<property name="java-output-path" value="/uri-resolver/target/classes"/>
@ -135,7 +159,10 @@
</wb-module>

View File

@ -4,6 +4,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v2.10.0-SNAPSHOT]
- GeoPortal-Resolver enhancement: share link towards Geoportal Data-Entry facility implemented [#27135]
## [v2.9.0]
- GeoPortal-Resolver implemented [#24792]

View File

@ -5,11 +5,11 @@
<parent>
<artifactId>maven-parent</artifactId>
<groupId>org.gcube.tools</groupId>
<version>1.1.0</version>
<version>1.2.0</version>
</parent>
<groupId>org.gcube.data.transfer</groupId>
<artifactId>uri-resolver</artifactId>
<version>2.9.0</version>
<version>2.10.0-SNAPSHOT</version>
<packaging>war</packaging>
<description>The URI Resolver is an HTTP URI resolver implemented as a REST service which gives access trough HTTP to different gcube Resolvers and gCube Applications.</description>

View File

@ -95,8 +95,6 @@ public class RuntimeResourceReader {
System.err.println("Error on reading Access point not found");
}
System.out.println("sono qui");
seb.setListAP(listAp);
listSE.add(seb);
}
@ -127,13 +125,31 @@ public class RuntimeResourceReader {
*/
public static void main(String[] args) {
String scope = "/gcube/devsec/devVRE";
//String platformName = "GeoServer";
String platformName = "postgis";
String category = "Database";
// String scope = "/pred4s/preprod/preVRE";
// String scope = "/d4science.research-infrastructures.eu/D4OS/GNA";
// String scope = "/gcube/devsec/devVRE";
String scope = "/d4science.research-infrastructures.eu/gCubeApps/Esquiline";
//scope = "/pred4s/preprod/preVRE";
// String platformName = "geonetwork";
// String category = "Gis";
String platformName = "GeoServer";
String category = "Gis";
// String platformName = "postgis";
// String category = "Database";
// String platformName = "postgresql";
// String category = "Database";
// String platformName = "mongodb";
// String category = "Database";
// scope = "/pred4s/preprod/preVRE";
// scope = "/d4science.research-infrastructures.eu/D4OS/Blue-Cloud2026Project";
// platformName = "Zenodo";
// category = "Repository";
RuntimeResourceReader reader;
try {
@ -148,14 +164,13 @@ public class RuntimeResourceReader {
for (AccessPoint ap : listAp) {
System.out.println("username: " + ap.username());
System.out.println("password: " + ap.password());
try{
try {
String decryptedPassword = StringEncrypter.getEncrypter().decrypt(ap.password());
System.out.println("Decrypted Password: "+decryptedPassword);
}catch(Exception e){
System.out.println("Decrypted Password: " + decryptedPassword);
} catch (Exception e) {
System.out.println("ignoring exception during pwd decrypting");
}
}
}