Bug: MSI-Betrieb – relative Pfade in application.properties funktionieren nicht (log.directory, runtime.lock.file) #89
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Befund aus manuellem Produkttest V3.0 (MSI-Test)
Problem
Im MSI-Betrieb (Start über Startmenü) werden relative Pfade in der
application.propertiesrelativ zum ArbeitsverzeichnisC:\Program Files\PDF-KI-Renamer\aufgelöst. Dieser Ordner ist schreibgeschützt – Log4j2 und Lock-Datei können dort nichts schreiben.Betroffene Parameter
log.directory=./work/local/logs→ schreibgeschützter Installationspfadruntime.lock.file=./work/local/pdf-umbenenner.lock→ schreibgeschützter InstallationspfadZusatz: Backslash-Problem
Backslashes in
.properties-Werten (z.B.C:\Users\Funny\Documents) werden von Java als Escape-Sequenzen interpretiert. Dadurch entstehen ungültige Pfade. Forward-Slashes (C:/Users/Funny/Documents) sind sicher, aber nicht intuitiv für Windows-Benutzer.Empfehlung
betrieb.mderweitern: Warnung vor relativen Pfaden im MSI-Betrieb, Empfehlung für absolute Pfade mit Forward-SlashesSchwere
Medium – betrifft alle MSI-Erstbenutzer die die Standardkonfiguration nicht anpassen.
Ziel-Version
V3.1 (Doku sofort, GUI-Validierung V3.1)