2.12.8 After-upgrade notes
2.12.8.1 [optional] Image thumbnail generation
Daisy 1.5 can generate image thumbnails and extract their width and height to store them in fields of the Image document type. If you want to do this for all your current images, you can do so by running a document task. For this, first make sure you're logged in as Administrator, then go to the Document Tasks screen (the link is in the user menu) and create a new document task. Select the documents using the query:
select name where documentType = 'Image'
You might first want to try this with one document to see if everything is OK.
Then go to the next screen, and use the following script:
var document = repository.getDocument(variantKey, true);
document.setField("ImageWidth", new java.lang.Long(0));
document.save();
This script "touches" the document by setting a field to a dummy value. Otherwise, the document wouldn't be changed and no save will be performed.
2.12.8.2 OpenJMS cleanup
Since OpenJMS is not used anymore, some cleanup you might want to to:
- delete the openjms database
- if globally set, remove the OPENJMS_HOME environment variable
- remove the openjms wrapper script, if used
2.12.8.3 ActiveMQ authentication
With the procedure we followed above, ActiveMQ still uses default passwords. If the ActiveMQ port is publicly accessible, it is of course very much recommended to change these. Here is how. The password needs to be changed in the following locations:
Original setting:
In this file: <datadir>/conf/users.properties in this line: admin=jmsadmin
For the connection made by the Repository Server:
In this file: <datadir>/conf/myconfig.xml in this line: <credentials username="admin" password="jmsadmin"/>
For the connection made by the Daisy Wiki:
In this file: <wikidata dir>/daisy.xconf in this line: <credentials username="admin" password="jmsadmin"/>
After making these changes, stop both the Daisy Wiki and the Repository Server, and then restart them (first the repository, then the wiki).
2.12.8.4 Note about static resources and caching
Since static resources are cached for about 5 hours by your browser, you might need to clear the browsers' cache.
In Firefox, this is done using Edit -> Preferences -> Privacy -> press the "Clear" button next to Cache
Internet Explorer users, see here.
If these instructions or unclear to you, or if you find an error in them, please share them with us on the Daisy mailing list or by leaving a comment.
Previous