Issues

Select view

Select search mode

 
17 of 17

PUI: ampersands in notes lead to "Failed to clean XML" error when printing to PDF

Done

Description

A single & character causes failures like this:

RuntimeError (Failed to clean XML: The reference to entity "ix" must end with the ';' delimiter.):

In a note field there is a link with a URL as follows:
http://example.com/something=FA000988536&ix=whatever&I=0&V=D&pm=1
It's choking on the &ix=whatever.

Or any string with an ampersand like J&J or W&S and so on...

This bug fix (which looks to be in the 2.5.1 release) looks to be for a similar issue involving ampersands: https://github.com/archivesspace/archivesspace/issues/972

Environment

None

Details

Assignee

Reporter

Priority

Harvest Time Tracking

Open Harvest Time Tracking

Created January 8, 2019 at 7:36 PM
Updated September 25, 2019 at 2:38 PM
Resolved September 25, 2019 at 2:38 PM

Activity

Show:

Jared CampbellMarch 11, 2019 at 8:09 PM

I was able to & by using & and "&" by myself. From Josh's comment it seems like it may also be possible to enter an & using &amp as well? Tested in test.archivesspace.org

Joshua ShawMarch 5, 2019 at 7:02 PM
Edited

This appears to still be an issue. Adding a note with the text "&ampersand" in the staff UI yields a PUI note display of "&ersand". Tested in test.archivesspace.org

Harvest Time Tracking

Flag notifications