Skip to content

Commit

Permalink
chore: added more debug information to narrow down how the file is be…
Browse files Browse the repository at this point in the history
…ing read
  • Loading branch information
lfdesousa committed Jul 16, 2024
1 parent ca40a19 commit 6069c21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>ch.bfh</groupId>
<artifactId>mobile-access-gateway</artifactId>
<version>0.0.54</version>
<version>0.0.55</version>
<description>FHIR Gateway supporting the PMIR and MHD server actors and uses XDS/PIXV3 to communicate with an XDS Affinity Domain</description>
<packaging>jar</packaging>

Expand Down
11 changes: 7 additions & 4 deletions src/main/java/ch/bfh/ti/i4mi/mag/xua/SamlIDPIntegration.java
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,10 @@ public ExtendedMetadataDelegate ssoCircleExtendedMetadataProvider(String entityI
String idpSSOCircleMetadataURL = metadataIdpLocation != null && !metadataIdpLocation.isEmpty()
? metadataIdpLocation
: conf.getMetadataUrl();
log.info("metadataIdpLocation: {}", metadataIdpLocation);
log.info("conf.getMetadataUrl(): {}", conf.getMetadataUrl());
log.info("Final idpSSOCircleMetadataURL: {}", idpSSOCircleMetadataURL);
File metadataFile = new File(idpSSOCircleMetadataURL);
log.info("metadataIdpLocation: {}", metadataIdpLocation.trim());
log.info("conf.getMetadataUrl(): {}", conf.getMetadataUrl().trim());
log.info("Final idpSSOCircleMetadataURL: {}", idpSSOCircleMetadataURL.trim());
File metadataFile = new File(idpSSOCircleMetadataURL.trim());
log.info("Metadata file exists: {}", metadataFile.exists());
log.info("Metadata file absolute path: {}", metadataFile.getAbsolutePath());
AbstractReloadingMetadataProvider prov;
Expand All @@ -472,6 +472,9 @@ public ExtendedMetadataDelegate ssoCircleExtendedMetadataProvider(String entityI
extendedMetadataDelegate.setMetadataTrustCheck(true);
extendedMetadataDelegate.setMetadataRequireSignature(false);
backgroundTaskTimer.purge();
log.debug("Current working directory: {}", System.getProperty("user.dir"));
log.debug("File exists: {}", new File("/idp-metadata.xml").exists());
log.debug("File is readable: {}", new File("/idp-metadata.xml").canRead());
return extendedMetadataDelegate;
}

Expand Down

0 comments on commit 6069c21

Please sign in to comment.