-
Type:
Bug
-
Resolution: Obsolete
-
Priority:
Medium
-
None
-
Affects Version/s: 2.5.7
-
Component/s: Core - Content REST APIs
Just writing some unit test for the Subconf attachment, and found that the comment field on a RemoteAttachment is not being respected through to the AttachmentManager.
I stuck a breakpoint in, and at the Axis level, the SOAP looks like:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:addAttachment soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://soap.rpc.confluence.atlassian.com"> <in0 xsi:type="xsd:string"> PI91mFTnK6</in0> <in1 href="#id0"/> <in2 xsi:type="xsd:base64Binary"> QXR0YWNobWVudCBDb250ZW50CkxpbmUgMgo=</in2> </ns1:addAttachment> <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:RemoteAttachment" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://beans.soap.rpc.confluence.atlassian.com"> <comment xsi:type="xsd:string"> Comment</comment> <contentType xsi:type="xsd:string"> txt</contentType> <created xsi:type="xsd:dateTime"> 2007-09-07T06:35:05.131Z</created> <creator xsi:type="xsd:string"> admin</creator> <fileName xsi:type="xsd:string"> Attachment 1.ext</fileName> <fileSize href="#id1"/> <id href="#id2"/> <pageId href="#id3"/> <title xsi:type="xsd:string" xsi:nil="true"/> <url xsi:type="xsd:string" xsi:nil="true"/> </multiRef> <multiRef id="id3" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> 3702786</multiRef> <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> 0</multiRef> <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> 0</multiRef> </soapenv:Body> </soapenv:Envelope>
- notice "Comment" in the comment tag
However, by the time you get to ConfluenceSoapServerDelegator.addAttachment, the RemoteAttachment has comment set as null.
- relates to
-
CONFSERVER-16242 Comment not saved when adding an attachment
-
- Closed
-