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

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

Activity

Show:
Joshua Shaw
March 5, 2019, 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

Jared Campbell
March 11, 2019, 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

Done

Assignee

Blake Carver

Reporter

Blake Carver

Priority

Major