Anonymous_User Absent Member.
Absent Member.
2415 views

Error retrieving a contact (Base64 encoding problem?)

GW8 schema 1.02:

The following itemResponse was returned when I tried to retrieve a contact from the "Contacts" container of a task item. The contact has a single "ContactNote".

I get an error when trying to retrieve it (the .NET XML parser basically says that an XML element is supposed to be Base64-encoded, and that the "sequence length" of the supposedly-encoded block is not a multiple of 4.

The itemResponse came back all on one line, and the error said that the problem was on "line 1, character 1870). This corresponds to the end of the closing tag for the "gwt:data" element in the ContactNote (it's the gwt:data element in the gwt:attachment section of the ContactNote object):

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<gwTrace xmlns="http://schemas.novell.com/2005/01/GroupWise/types" xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types">false</gwTrace>
</s:Header>
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<getItemResponse xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types" xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
<item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="gwt:Contact">
<gwt:id>49C2855A.PriDom.po1.104.1353763.1.10.1@56:49414766.PriDom.po1.104.1353763.1.3.1@53</gwt:id>
<gwt:name>Sean Kirkby (gw7)</gwt:name>
<gwt:version>2</gwt:version>
<gwt:modified>2009-03-25T22:02:19Z</gwt:modified>
<gwt:container>49414766.PriDom.po1.104.1353763.1.3.1@53</gwt:container>
<gwt:created>2009-03-19T23:48:09Z</gwt:created>
<gwt:PABGuid>/2@If "f 7\Fd! 0 !</gwt:PABGuid>
<gwt:fullName>
<gwt:displayName>Sean Kirkby (gw7)</gwt:displayName>
<gwt:firstName>Sean</gwt:firstName>
<gwt:middleName>Kirkby</gwt:middleName>
<gwt:lastName>(gw7)</gwt:lastName>
</gwt:fullName>
<gwt:emailList primary="skirkby@armordatasystems.com">
<gwt:email>skirkby@armordatasystems.com</gwt:email>
</gwt:emailList>
<gwt:phoneList>
<gwt:phone type="Office">(801) 921-6504</gwt:phone>
</gwt:phoneList>
<gwt:officeInfo>
<gwt:organization>Armor Data Systems</gwt:organization>
<gwt:title>pres</gwt:title>
</gwt:officeInfo>
<gwt:contactNotes>
<gwt:contactNote>
<gwt:id>49D0CEB2.PriDom.po1.100.1353763.1.34B.1@2:A.PriDom.po1.100.0.1.0.1@19</gwt:id>
<gwt:created>2009-03-30T19:52:50Z</gwt:created>
<gwt:attachment>
<gwt:id>49D0CEB2.PriDom.po1.100.1353763.1.34A.1@65</gwt:id>
<gwt:contentType>text/plain</gwt:contentType>
<gwt:size>9</gwt:size>
<gwt:date>2009-03-30T19:52:50Z</gwt:date>
<gwt:data>adfasdf</gwt:data>
</gwt:attachment>
</gwt:contactNote>
</gwt:contactNotes>
</item>
<status>
<gwt:code>0</gwt:code>
</status>
</getItemResponse>
</s:Body>
</s:Envelope>

When I created the note, I just typed in some random characters ("adfasdf" - drummed my left hand fingers on the "a" row of the keyboard).

Should this data be Base64-encoded?

Thanks.

--sk.
Labels (1)
0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Error retrieving a contact (Base64 encoding problem?)

Update:

If I remove the ContactNote in the address book, this contact returns w/o a problem.

The problem appears to be that the contents of a Contact Note are returned as an object of type AttachmentItemInfo, which is supposed to be base64-encoded, but it's not encoded.

If I add a ContactNote in the address book that is of a length where noteText.Length % 4 = 0, the contact returns w/o a problem.

If noteText.Length % 4 != 0, I get an XML parsing error, where I think the parser expects the <gwt:data> element contents to be Base64-encoded.

--sk.


>>> On 3/30/2009 at 4:23 PM, Sean Kirkby<skirkby@armordatasystems.com> wrote:


GW8 schema 1.02:

The following itemResponse was returned when I tried to retrieve a contact from the "Contacts" container of a task item. The contact has a single "ContactNote".

I get an error when trying to retrieve it (the .NET XML parser basically says that an XML element is supposed to be Base64-encoded, and that the "sequence length" of the supposedly-encoded block is not a multiple of 4.

The itemResponse came back all on one line, and the error said that the problem was on "line 1, character 1870). This corresponds to the end of the closing tag for the "gwt:data" element in the ContactNote (it's the gwt:data element in the gwt:attachment section of the ContactNote object):

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<gwTrace xmlns="http://schemas.novell.com/2005/01/GroupWise/types" xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types">false</gwTrace>
</s:Header>
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<getItemResponse xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types" xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
<item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="gwt:Contact">
<gwt:id>49C2855A.PriDom.po1.104.1353763.1.10.1@56:49414766.PriDom.po1.104.1353763.1.3.1@53</gwt:id>
<gwt:name>Sean Kirkby (gw7)</gwt:name>
<gwt:version>2</gwt:version>
<gwt:modified>2009-03-25T22:02:19Z</gwt:modified>
<gwt:container>49414766.PriDom.po1.104.1353763.1.3.1@53</gwt:container>
<gwt:created>2009-03-19T23:48:09Z</gwt:created>
<gwt:PABGuid>/2@If "f 7\Fd! 0 !</gwt:PABGuid>
<gwt:fullName>
<gwt:displayName>Sean Kirkby (gw7)</gwt:displayName>
<gwt:firstName>Sean</gwt:firstName>
<gwt:middleName>Kirkby</gwt:middleName>
<gwt:lastName>(gw7)</gwt:lastName>
</gwt:fullName>
<gwt:emailList primary="skirkby@armordatasystems.com">
<gwt:email>skirkby@armordatasystems.com</gwt:email>
</gwt:emailList>
<gwt:phoneList>
<gwt:phone type="Office">(801) 921-6504</gwt:phone>
</gwt:phoneList>
<gwt:officeInfo>
<gwt:organization>Armor Data Systems</gwt:organization>
<gwt:title>pres</gwt:title>
</gwt:officeInfo>
<gwt:contactNotes>
<gwt:contactNote>
<gwt:id>49D0CEB2.PriDom.po1.100.1353763.1.34B.1@2:A.PriDom.po1.100.0.1.0.1@19</gwt:id>
<gwt:created>2009-03-30T19:52:50Z</gwt:created>
<gwt:attachment>
<gwt:id>49D0CEB2.PriDom.po1.100.1353763.1.34A.1@65</gwt:id>
<gwt:contentType>text/plain</gwt:contentType>
<gwt:size>9</gwt:size>
<gwt:date>2009-03-30T19:52:50Z</gwt:date>
<gwt:data>adfasdf</gwt:data>
</gwt:attachment>
</gwt:contactNote>
</gwt:contactNotes>
</item>
<status>
<gwt:code>0</gwt:code>
</status>
</getItemResponse>
</s:Body>
</s:Envelope>

When I created the note, I just typed in some random characters ("adfasdf" - drummed my left hand fingers on the "a" row of the keyboard).

Should this data be Base64-encoded?

Thanks.

--sk.
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Error retrieving a contact (Base64 encoding problem?)

I created a bug to track the problem.

Thanks.
Preston

>>> On Monday, March 30, 2009 at 4:43 PM, Sean

Kirkby<skirkby@armordatasystems.com>
wrote:
> Update:
>
> If I remove the ContactNote in the address book, this contact returns w/o

a
> problem.
>
> The problem appears to be that the contents of a Contact Note are returned


> as an object of type AttachmentItemInfo, which is supposed to be
> base64-encoded, but it's not encoded.
>
> If I add a ContactNote in the address book that is of a length where
> noteText.Length % 4 = 0, the contact returns w/o a problem.
>
> If noteText.Length % 4 != 0, I get an XML parsing error, where I think the


> parser expects the <gwt:data> element contents to be Base64-encoded.
>
> --sk.
>
>>>> On 3/30/2009 at 4:23 PM, Sean Kirkby<skirkby@armordatasystems.com>

wrote:
>
> GW8 schema 1.02:
>
> The following itemResponse was returned when I tried to retrieve a contact


> from the "Contacts" container of a task item. The contact has a single
> "ContactNote".
>
> I get an error when trying to retrieve it (the .NET XML parser basically
> says that an XML element is supposed to be Base64-encoded, and that the
> "sequence length" of the supposedly-encoded block is not a multiple of 4.
>
> The itemResponse came back all on one line, and the error said that the
> problem was on "line 1, character 1870). This corresponds to the end of

the
> closing tag for the "gwt:data" element in the ContactNote (it's the

gwt:data
> element in the gwt:attachment section of the ContactNote object):
>
> <?xml version="1.0" encoding="UTF-8"?>
> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
> <s:Header>
> <gwTrace xmlns="http://schemas.novell.com/2005/01/GroupWise/types"
>

xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types">false</gwTrace>
> </s:Header>
> <s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <getItemResponse
> xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types"
> xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
> <item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:type="gwt:Contact">
>
>

<gwt:id>49C2855A.PriDom.po1.104.1353763.1.10.1@56:49414766.PriDom.po1.104.13
5
> 3763.1.3.1@53</gwt:id>
> <gwt:name>Sean Kirkby (gw7)</gwt:name>
> <gwt:version>2</gwt:version>
> <gwt:modified>2009-03-25T22:02:19Z</gwt:modified>
>

<gwt:container>49414766.PriDom.po1.104.1353763.1.3.1@53</gwt:container>
> <gwt:created>2009-03-19T23:48:09Z</gwt:created>
> <gwt:PABGuid>/2@If "f 7\Fd! 0 !</gwt:PABGuid>
> <gwt:fullName>
> <gwt:displayName>Sean Kirkby (gw7)</gwt:displayName>
> <gwt:firstName>Sean</gwt:firstName>
> <gwt:middleName>Kirkby</gwt:middleName>
> <gwt:lastName>(gw7)</gwt:lastName>
> </gwt:fullName>
> <gwt:emailList primary="skirkby@armordatasystems.com">
> <gwt:email>skirkby@armordatasystems.com</gwt:email>
> </gwt:emailList>
> <gwt:phoneList>
> <gwt:phone type="Office">(801) 921-6504</gwt:phone>
> </gwt:phoneList>
> <gwt:officeInfo>
> <gwt:organization>Armor Data Systems</gwt:organization>
> <gwt:title>pres</gwt:title>
> </gwt:officeInfo>
> <gwt:contactNotes>
> <gwt:contactNote>
>
>

<gwt:id>49D0CEB2.PriDom.po1.100.1353763.1.34B.1@2:A.PriDom.po1.100.0.1.0.1@1
9<
> /gwt:id>
> <gwt:created>2009-03-30T19:52:50Z</gwt:created>
> <gwt:attachment>
> <gwt:id>49D0CEB2.PriDom.po1.100.1353763.1.34A.1@65</gwt:id>
> <gwt:contentType>text/plain</gwt:contentType>
> <gwt:size>9</gwt:size>
> <gwt:date>2009-03-30T19:52:50Z</gwt:date>
> <gwt:data>adfasdf</gwt:data>
> </gwt:attachment>
> </gwt:contactNote>
> </gwt:contactNotes>
> </item>
> <status>
> <gwt:code>0</gwt:code>
> </status>
> </getItemResponse>
> </s:Body>
> </s:Envelope>
>
> When I created the note, I just typed in some random characters ("adfasdf"

-
> drummed my left hand fingers on the "a" row of the keyboard).
>
> Should this data be Base64-encoded?
>
> Thanks.
>
> --sk.

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Error retrieving a contact (Base64 encoding problem?)

This issue is fixed for GW 8.0.1.

Tim


>>> On 3/31/2009 at 4:26 AM, in message <49D19B67.07F1.0037.1@gw.novell.com>, Preston Stephenson<PStephenson@gw.novell.com> wrote:


I created a bug to track the problem.

Thanks.
Preston


>>> On Monday, March 30, 2009 at 4:43 PM, Sean

Kirkby<skirkby@armordatasystems.com>
wrote:

> Update:
>
> If I remove the ContactNote in the address book, this contact returns w/o

a

> problem.
>
> The problem appears to be that the contents of a Contact Note are returned



> as an object of type AttachmentItemInfo, which is supposed to be
> base64-encoded, but it's not encoded.
>
> If I add a ContactNote in the address book that is of a length where
> noteText.Length % 4 = 0, the contact returns w/o a problem.
>
> If noteText.Length % 4 != 0, I get an XML parsing error, where I think the



> parser expects the <gwt:data> element contents to be Base64-encoded.
>
> --sk.
>

>>>> On 3/30/2009 at 4:23 PM, Sean Kirkby<skirkby@armordatasystems.com>

wrote:

>
> GW8 schema 1.02:
>
> The following itemResponse was returned when I tried to retrieve a contact



> from the "Contacts" container of a task item. The contact has a single
> "ContactNote".
>
> I get an error when trying to retrieve it (the .NET XML parser basically
> says that an XML element is supposed to be Base64-encoded, and that the
> "sequence length" of the supposedly-encoded block is not a multiple of 4.
>
> The itemResponse came back all on one line, and the error said that the
> problem was on "line 1, character 1870). This corresponds to the end of

the

> closing tag for the "gwt:data" element in the ContactNote (it's the

gwt:data

> element in the gwt:attachment section of the ContactNote object):
>
> <?xml version="1.0" encoding="UTF-8"?>
> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
> <s:Header>
> <gwTrace xmlns="http://schemas.novell.com/2005/01/GroupWise/types"
>

xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types">false</gwTrace>

> </s:Header>
> <s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <getItemResponse
> xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types"
> xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
> <item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:type="gwt:Contact">
>
>

<gwt:id>49C2855A.PriDom.po1.104.1353763.1.10.1@56:49414766.PriDom.po1.104.13
5

> 3763.1.3.1@53</gwt:id>
> <gwt:name>Sean Kirkby (gw7)</gwt:name>
> <gwt:version>2</gwt:version>
> <gwt:modified>2009-03-25T22:02:19Z</gwt:modified>
>

<gwt:container>49414766.PriDom.po1.104.1353763.1.3.1@53</gwt:container>

> <gwt:created>2009-03-19T23:48:09Z</gwt:created>
> <gwt:PABGuid>/2@If "f 7\Fd! 0 !</gwt:PABGuid>
> <gwt:fullName>
> <gwt:displayName>Sean Kirkby (gw7)</gwt:displayName>
> <gwt:firstName>Sean</gwt:firstName>
> <gwt:middleName>Kirkby</gwt:middleName>
> <gwt:lastName>(gw7)</gwt:lastName>
> </gwt:fullName>
> <gwt:emailList primary="skirkby@armordatasystems.com">
> <gwt:email>skirkby@armordatasystems.com</gwt:email>
> </gwt:emailList>
> <gwt:phoneList>
> <gwt:phone type="Office">(801) 921-6504</gwt:phone>
> </gwt:phoneList>
> <gwt:officeInfo>
> <gwt:organization>Armor Data Systems</gwt:organization>
> <gwt:title>pres</gwt:title>
> </gwt:officeInfo>
> <gwt:contactNotes>
> <gwt:contactNote>
>
>

<gwt:id>49D0CEB2.PriDom.po1.100.1353763.1.34B.1@2:A.PriDom.po1.100.0.1.0.1@1
9<

> /gwt:id>
> <gwt:created>2009-03-30T19:52:50Z</gwt:created>
> <gwt:attachment>
> <gwt:id>49D0CEB2.PriDom.po1.100.1353763.1.34A.1@65</gwt:id>
> <gwt:contentType>text/plain</gwt:contentType>
> <gwt:size>9</gwt:size>
> <gwt:date>2009-03-30T19:52:50Z</gwt:date>
> <gwt:data>adfasdf</gwt:data>
> </gwt:attachment>
> </gwt:contactNote>
> </gwt:contactNotes>
> </item>
> <status>
> <gwt:code>0</gwt:code>
> </status>
> </getItemResponse>
> </s:Body>
> </s:Envelope>
>
> When I created the note, I just typed in some random characters ("adfasdf"

-

> drummed my left hand fingers on the "a" row of the keyboard).
>
> Should this data be Base64-encoded?
>
> Thanks.
>
> --sk.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.