Ampersands in unittitles and notes causing print to PDF to fail.

Description

Collections that formerly could print to PDF are now failing following ArchivesSpace upgrade. Version is actually listed as 2.5.2 which is not available in the dropdown.

Error message is as follows:

org.xml.sax.SAXParseException; lineNumber: 89; columnNumber: 130; The entity name must immediately follow the '&' in the entity reference.
net.sf.saxon.s9api.DocumentBuilder.build(net/sf/saxon/s9api/DocumentBuilder.java:379)
java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:453)
org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:314)
RUBY.parse(/archivesspace/gems/gems/saxon-xslt-0.8.2.1-java/lib/saxon/xml.rb:28)
RUBY.XML(/archivesspace/gems/gems/saxon-xslt-0.8.2.1-java/lib/saxon/processor.rb:58)
RUBY.XML(/archivesspace/gems/gems/saxon-xslt-0.8.2.1-java/lib/saxon/xml.rb:10)
RUBY.to_fo(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_any/webapp/WEB-INF/app/lib/AS_fop.rb:32)
RUBY.to_pdf(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_any/webapp/WEB-INF/app/lib/AS_fop.rb:38)
RUBY.block in run(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_any/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:45)
archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus__minus_any_minus.webapp.WEB_minus_INF.app.lib.request_context.open(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_any/webapp/WEB-INF/app/lib/request_context.rb:24)
RUBY.run(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_any/webapp/WEB-INF/app/lib/job_runners/print_to_pdf_runner.rb:14)
archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus__minus_any_minus.webapp.WEB_minus_INF.app.lib.background_job_queue.invokeOther45:run(archivesspace/data/tmp/jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus__minus_any_minus/webapp/WEB_minus_INF/app/lib//archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_any/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
archivesspace.data.tmp.jetty_minus_0_dot_0_dot_0_dot_0_minus_8089_minus_backend_dot_war_minus__minus_any_minus.webapp.WEB_minus_INF.app.lib.background_job_queue.run_pending_job(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_any/webapp/WEB-INF/app/lib/background_job_queue.rb:126)
RUBY.block in start_background_thread(/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_any/webapp/WEB-INF/app/lib/background_job_queue.rb:169)
org.jruby.RubyProc.call(org/jruby/RubyProc.java:289)
org.jruby.RubyProc.call(org/jruby/RubyProc.java:246)
java.lang.Thread.run(java/lang/Thread.java:748)

Environment

None

Status

Assignee

Blake Carver

Reporter

Chris Tanguay

Labels

Fix versions

Priority

Major