fromthepage
fromthepage copied to clipboard
500 error on TEI export
The following TEI export results in a 500 error:
https://fromthepage.com/cwrgm/in-omeka/letter-to-mississippi-governor-john-j-pettus-april-30-1861 IIIF (looks great): https://fromthepage.com/iiif/42262/manifest TEI: https://fromthepage.com/iiif/42262/export/tei
It looks like the "&" in "Organizations & Businesses" (I'm guessing a subject category?) is causing the problem. I'll open an issue for it, but the fastest fix is for the team to change it to "Organizations and Businesses":
F, [2021-05-14T20:28:41.604052 #30577] FATAL -- :
ActionView::Template::Error (#<RuntimeError: Illegal character "&" in raw string "Organizations & Businesses">
/usr/local/rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/rexml/text.rb:157:in `block in check'
/usr/local/rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/rexml/text.rb:155:in `scan'
/usr/local/rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/rexml/text.rb:155:in `check'
/usr/local/rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/rexml/text.rb:122:in `initialize'
/usr/local/rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/rexml/parsers/treeparser.rb:47:in `new'
/usr/local/rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/rexml/parsers/treeparser.rb:47:in `parse'
/usr/local/rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/rexml/document.rb:288:in `build'
/usr/local/rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/rexml/document.rb:45:in `initialize'
/home/fromthepage/deployment/releases/20210513182231/app/helpers/export_helper.rb:172:in `new'
/home/fromthepage/deployment/releases/20210513182231/app/helpers/export_helper.rb:172:in `tei_taxonomy'