Skip to content

Commit 39777bc

Browse files
committed
Fixed WebID URI logging in entrypoint
`XsltExecutableFilter` logs stylesheet URI on loading error
1 parent c7b1369 commit 39777bc

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

platform/entrypoint.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,8 +521,6 @@ SECRETARY_URI="${SECRETARY_URI:-${ADMIN_BASE_URI}acl/agents/${SECRETARY_UUID}/#t
521521

522522
OWNER_DATASET_PATH="/var/linkeddatahub/datasets/owner/${OWNER_CERT_ALIAS}.trig"
523523

524-
printf "\n### Owner's WebID URI: %s\n" "$OWNER_URI"
525-
526524
# generate owner's keystore, cert, and public key if the public key does not exist
527525
# store owner's metadata in an RDF dataset
528526
if [ ! -f "$OWNER_PUBLIC_KEY" ]; then
@@ -560,8 +558,6 @@ fi
560558

561559
SECRETARY_DATASET_PATH="/var/linkeddatahub/datasets/secretary/${SECRETARY_CERT_ALIAS}.trig"
562560

563-
printf "\n### Secretary's WebID URI: %s\n" "$SECRETARY_URI"
564-
565561
# generate secretary's keystore, cert, and public key if the public key does not exist
566562
# store secretary's metadata in an RDF dataset
567563
if [ ! -f "$SECRETARY_PUBLIC_KEY" ]; then
@@ -624,6 +620,9 @@ SECRETARY_KEY_URI=$(echo "$secretary_metadata" | xmlstarlet sel -N srx="http://w
624620
SECRETARY_KEY_DOC_URI=$(echo "$SECRETARY_KEY_URI" | sed 's|#this$||')
625621
SECRETARY_KEY_URI="${SECRETARY_KEY_DOC_URI}#this"
626622

623+
printf "\n### Owner's WebID URI: %s\n" "$OWNER_URI"
624+
printf "\n### Secretary's WebID URI: %s\n" "$SECRETARY_URI"
625+
627626
# Note: LOAD_DATASETS check is now done per-app inside the loop
628627

629628
# base the $CONTEXT_DATASET

src/main/java/com/atomgraph/linkeddatahub/server/filter/response/XsltExecutableFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public Source getSource(String url) throws IOException
189189
try (Response cr = builder.accept(MediaType.TEXT_XSL_TYPE).get())
190190
{
191191
if (!cr.getStatusInfo().getFamily().equals(Response.Status.Family.SUCCESSFUL))
192-
throw new IOException("XSLT stylesheet could not be successfully loaded over HTTP");
192+
throw new IOException("XSLT stylesheet could not be successfully loaded over HTTP. URL: " + uri);
193193

194194
// buffer the stylesheet stream so we can close Response
195195
try (InputStream is = cr.readEntity(InputStream.class))

0 commit comments

Comments
 (0)