Project

General

Profile

Actions

Bug #5710

closed

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

Added by ben leinfelder about 12 years ago. Updated about 12 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]

Actions #1

Updated by ben leinfelder about 12 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.

Actions #2

Updated by ben leinfelder about 12 years ago

tested with Jing and will incorporate in Metacat 2.0.4-RC4

Actions #3

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 5710

Actions

Also available in: Atom PDF