You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you dare to configure anything other than MAX / FULLTEXT in a config file, this will create inconsistent (dysfunctional) file paths, e.g.
stacktrace
2023-04-20 12:23:13 [ERROR] (App:45) java.io.FileNotFoundException: /home/kmw/nfs/schütz-test/DEFAULT/00000001.tif.large.jpg (Datei oder Verzeichnis nicht gefunden)
de.ulb.digital.derivans.DigitalDerivansException: java.io.FileNotFoundException: /home/kmw/nfs/schütz-test/DEFAULT/00000001.tif.large.jpg (Datei oder Verzeichnis nicht gefunden)
at de.ulb.digital.derivans.derivate.PDFDerivateer.create(PDFDerivateer.java:401)
at de.ulb.digital.derivans.Derivans.create(Derivans.java:181)
at de.ulb.digital.derivans.App.main(App.java:43)
Caused by: java.io.FileNotFoundException: /home/kmw/nfs/schütz-test/DEFAULT/00000001.tif.large.jpg (Datei oder Verzeichnis nicht gefunden)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:184)
at java.base/java.net.URL.openStream(URL.java:1140)
at com.itextpdf.text.Image.getInstance(Image.java:260)
at com.itextpdf.text.Image.getInstance(Image.java:241)
at com.itextpdf.text.Image.getInstance(Image.java:364)
at de.ulb.digital.derivans.derivate.PDFDerivateer.create(PDFDerivateer.java:390)
(Notice here how the path is combined from a non-default configured input_dir DEFAULT as directory name with the file name from the default MAX.)
If you dare to configure anything other than MAX / FULLTEXT in a config file, this will create inconsistent (dysfunctional) file paths, e.g.
stacktrace
(Notice here how the path is combined from a non-default configured input_dir
DEFAULT
as directory name with the file name from the defaultMAX
.)The problem is here:
digital-derivans/src/main/java/de/ulb/digital/derivans/data/MetadataStore.java
Lines 94 to 112 in 94f3892
This sets up all
DigitalPage
instances with paths from MAX and FULLTEXT, irrespective of the configuration.This is later combined with the first input step's input_dir:
digital-derivans/src/main/java/de/ulb/digital/derivans/Derivans.java
Lines 119 to 120 in 94f3892
The text was updated successfully, but these errors were encountered: