two names for digitalCollections file

Bug #1231853 reported by Matthias Ronge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Goobi.Production
Status tracked in 1.10
1.10
Fix Committed
Medium
Henning Gerhardt

Bug Description

The name of digitalCollections.xml was changed to goobi_digitalCollections.xml recently. However, in de.sub.goobi.config.DigitalCollections, line 46, the file is still referenced by its old name and the method fails with a java.io.FileNotFoundException if the new filename is used.

Workaround: The file needs to be present twice (or linked, if supported by operating and file system)

Revision history for this message
Henning Gerhardt (henning-gerhardt) wrote :

As the grep shows, both configuration files get actually used. That's certainly a bug due to missed renaming. Fix would be to rename 'digitalCollections.xml' to 'goobi_digitalCollections.xml' in src/de/sub/goobi/config/DigitalCollections.java as well.

goobi-production-1.10.x $: grep "digitalCollections.xml" * -r

src/org/goobi/production/cli/helper/CopyProcess.java:
  String filename = new Helper().getGoobiConfigDirectory() + "goobi_digitalCollections.xml";
src/de/sub/goobi/config/DigitalCollections.java:
  String filename = ConfigMain.getParameter("KonfigurationVerzeichnis") + "digitalCollections.xml";
src/de/sub/goobi/forms/ProzesskopieForm.java:
  String filename = this.help.getGoobiConfigDirectory() + "goobi_digitalCollections.xml";
src/de/sub/goobi/forms/MassImportForm.java:
        String filename = this.help.getGoobiConfigDirectory() + "goobi_digitalCollections.xml";

Revision history for this message
Henning Gerhardt (henning-gerhardt) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.