Project

General

Profile

Bug #5710

Metacat replication fails for datafiles with "&" in the filename

Added by ben leinfelder about 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Category:
metacat
Target version:
Start date:
09/12/2012
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5710

Description

When troubleshooting SANParks-SAEON, we encountered errors with the documentInfo parser on the target machine:

judithk.1128.1 has the filename: "KamathPL_ZebraSampling&GenotypeData.txt"
error:
knb 20120904-22:03:59: [ERROR]: ReplicationHandler.handleSingleDataFile - 6 Failed to write data file judithk.1128.1 into xml_documents from dataknp.sanparks.org/sanparks/servlet/replication because The reference to entity "GenotypeData.txt" must end with the ';' delimiter.

judithk.1223.1: "KNPEle & Buff Census 2007 Report.pdf"
error:
knb 20120906-04:10:23: [ERROR]: ReplicationHandler.handleSingleDataFile - 9 Failed to write data file judithk.1223.1 into xml_documents from dataknp.sanparks.org/sanparks/servlet/replication because The entity name must immediately follow the '&' in the entity reference. [ReplicationLogging]

History

#1 Updated by ben leinfelder about 7 years ago

I've fixed this and wrote a simple test that exercises the docInfo parser. I just wrapped the content of the 'docname' field in CDATA tags so that any reserved characters do not cause errors.
I'd like to include it in the 2.0.4 release, but we are in the midst of some somewhat-final testing. Action TBD.

#2 Updated by ben leinfelder about 7 years ago

tested with Jing and will incorporate in Metacat 2.0.4-RC4

#3 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 5710

Also available in: Atom PDF