NCIP:Ampersand is not replaced in XML communications
- Article Type: General
- Product: Voyager
- Product Version: 2
Description:
Issue number: 16384-18753
Module: NCIP
Server platform affected: Solaris
Releases replicated in: 8.1.1
Last version without bug: N/A
Expected results:
An ampersand should be replaced with & in XML communications.
Actual results:
Ampersands are sent by voyager NCIP.
Workflow implications: Users receive errors in the requesting interface (ie RELAIS).
Replication steps:
1. Example message and response from Voyager NCIP (The <StructuredAddress> line contains the ampersand):
::::::::::::::
2012-05-01_15-00-25_693.req
::::::::::::::
<?xml version="1.0" encoding="UTF-8" ?><NCIPMessage version="http://www.niso.org/ncip/v1_0/imp1/dtd/ncip_v1_0.dtd"><LookupUser><Init
iationHeader><FromAgencyId><UniqueAgencyId><Scheme datatype="string">http://www.relais-intl.com/ncip/schemes/agency.scm</Scheme><Val
ue datatype="string">Relais</Value></UniqueAgencyId></FromAgencyId><ToAgencyId><UniqueAgencyId><Scheme datatype="string">http://www.
relais-intl.com/ncip/schemes/agency.scm</Scheme><Value datatype="string" /></UniqueAgencyId></ToAgencyId></InitiationHeader><UniqueU
serId><UniqueAgencyId><Scheme datatype="string">http://www.relais-intl.com/ncip/schemes/agency.scm</Scheme><Value datatype="string"
/></UniqueAgencyId><UserIdentifierValue>6014760029235801</UserIdentifierValue></UniqueUserId><UserElementType><Scheme>http://www.nis
o.org/ncip/v1_0/schemes/userelementtype/userelementtype.scm</Scheme><Value>Name Information</Value></UserElementType><UserElementTyp
e><Scheme>http://www.niso.org/ncip/v1_0/schemes/userelementtype/userelementtype.scm</Scheme><Value>User Address Information</Value><
/UserElementType><UserElementType><Scheme>http://www.niso.org/ncip/v1_0/schemes/userelementtype/userelementtype.scm</Scheme><Value>U
ser Privilege</Value></UserElementType><UserElementType><Scheme>http://www.niso.org/ncip/v1_0/schemes/userelementtype/userelementtyp
e.scm</Scheme><Value>Visible User Id</Value></UserElementType></LookupUser></NCIPMessage>
::::::::::::::
2012-05-01_15-00-25_693.rsp
::::::::::::::
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE NCIPMessage PUBLIC "-//NISO/NCIP DTD Version 1//EN" "http://www.niso.org/ncip/v1_0/imp1/dtd/ncip_v1_0.dtd">
<NCIPMessage version="http://www.niso.org/ncip/v1_0/imp1/dtd/ncip_v1_0.dtd">
<LookupUserResponse>
<ResponseHeader>
<FromAgencyId>
<UniqueAgencyId>
<Scheme>http://www.dynix.com/ncip/schemes/agency.scm</Scheme>
<Value>VOYAGER</Value>
</UniqueAgencyId>
</FromAgencyId>
<ToAgencyId>
<UniqueAgencyId>
<Scheme>http://www.relais-intl.com/ncip/schemes/agency.scm</Scheme>
<Value>Relais</Value>
</UniqueAgencyId>
</ToAgencyId>
</ResponseHeader>
<UniqueUserId>
<UniqueAgencyId>
<Scheme>http://www.dynix.com/ncip/schemes/agency.scm</Scheme>
<Value>VOYAGER</Value>
</UniqueAgencyId>
<UserIdentifierValue>50847UR</UserIdentifierValue>
</UniqueUserId>
<UserOptionalFields>
<VisibleUserId>
<VisibleUserIdentifierType>
<Scheme>http://www.niso.org/ncip/v1_0/imp1/schemes/visibleuseridentifiertype/visibleuseridentifiertype.scm</Sche
me>
<Value>Barcode</Value>
</VisibleUserIdentifierType>
<VisibleUserIdentifier>6014760029235801</VisibleUserIdentifier>
</VisibleUserId>
<NameInformation>
<PersonalNameInformation>
<StructuredPersonalUserName>
<Prefix>Mr</Prefix>
<GivenName>Valerian</GivenName>
<Surname>De Sousa</Surname>
</StructuredPersonalUserName>
</PersonalNameInformation>
</NameInformation>
<UserAddressInformation>
<UserAddressRoleType>
<Scheme>http://www.niso.org/ncip/v1_0/imp1/schemes/useraddressroletype/useraddressroletype.scm</Scheme>
<Value>Multi-Purpose</Value>
</UserAddressRoleType>
<PhysicalAddress>
<StructuredAddress>
<Line1>Anthropology & Sociology</Line1>
<Line2>Old Library 06B</Line2>
</StructuredAddress>
<PhysicalAddressType>
<Scheme>http://www.niso.org/ncip/v1_0/imp1/schemes/physicaladdresstype/physicaladdresstype.scm</Scheme>
<Value>Postal Address</Value>
</PhysicalAddressType>
</PhysicalAddress>
</UserAddressInformation>
<UserAddressInformation>
<UserAddressRoleType>
<Scheme>http://www.niso.org/ncip/v1_0/imp1/schemes/useraddressroletype/useraddressrolet
Resolution:
Fixed in NCIP for 8.2.0.
- Article last edited: 10/8/2013