Skip Menu |

This queue is for tickets about the EWS-Client CPAN distribution.

Report information
The Basics
Id: 61914
Status: resolved
Priority: 0/
Queue: EWS-Client

People
Owner: OLIVER [...] cpan.org
Requestors: c.michl [...] cmichl.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: FolderID
Date: Wed, 06 Oct 2010 00:05:17 +0200
To: bug-EWS-Client [...] rt.cpan.org
From: Christopher Michl <c.michl [...] cmichl.de>
Hi, I don't no if this is a bug but I got a "ErrorInvalidIdMalformed" if I do something like that: sub _get_contacts { my ($self, @account_id) = @_; return scalar $self->client->FindItem->( ItemShape => { BaseShape => 'AllProperties' }, ParentFolderIds => { cho_FolderId => [ { FolderId => { Id => 'AAEuAAAAAAAaRHOQqmYRzZvIAKoAL8RaAwDGhlYvXdkPS6ML55Rn1Rq8AACAZ94lAAA=' } } ] }, Traversal => 'Shallow', ); } The Id (it was a public Folder in the IPM_Subtree) was gotten from the MS EWSEditor and the equivalent with curl results in a list of contacts: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"> <soap:Header> <t:RequestServerVersion Version="Exchange2007_SP1"/> </soap:Header> <soap:Body> <FindFolder Traversal="Shallow" xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"> <FolderShape> <t:BaseShape>Default</t:BaseShape> </FolderShape> <ParentFolderIds> <t:FolderId Id="AQEuAAADGkRzkKpmEc2byACqAC/EWgMAxoZWL13ZD0ujC+eUZ9UavAAAAwEAAAA="/> </ParentFolderIds> </FindFolder> </soap:Body> </soap:Envelope> I am grateful for any help. Best regards Christopher Michl PS: I use perl revision 5 version 10 subversion 1 and EWS-Client 0.6
Subject: Re: [rt.cpan.org #61914] FolderID
Date: Thu, 07 Oct 2010 08:57:31 +0100
To: bug-EWS-Client [...] rt.cpan.org
From: Oliver Gorwits <oliver.gorwits [...] oucs.ox.ac.uk>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/10/2010 23:05, Christopher Michl via RT wrote: Show quoted text
> I don't no if this is a bug but I got a "ErrorInvalidIdMalformed" if I > do something like that: > > The Id (it was a public Folder in the IPM_Subtree) was gotten from the > MS EWSEditor and the equivalent with curl results in a list of contacts:
Thanks for the report. Unfortunately I don't have a lot of time to look into this right now, as I'm about to change job. I will try to look as soon as possible though. Please let me know if you make any progress troubleshooting. - -- Oliver Gorwits, Network and Telecommunications Group, Oxford University Computing Services -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkytfWsACgkQ2NPq7pwWBt5BAgCguKzyBKoHy1ar46GVJPYjHFGd EtwAnRbS0ECaSTxgYb69y7UHFuGv86GB =TRDm -----END PGP SIGNATURE-----
Subject: Re: [rt.cpan.org #61914] FolderID
Date: Tue, 12 Oct 2010 23:50:54 +0200
To: bug-EWS-Client [...] rt.cpan.org
From: Christopher Michl <c.michl [...] cmichl.de>
Hi, I made a dump of the output request and got this <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><tns:FindItem xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:tns="http://schemas.microsoft.com/exchange/services/2006/messages" Traversal="Shallow"><tns:ItemShape><t:BaseShape>AllProperties</t:BaseShape></tns:ItemShape><tns:ParentFolderIds><t:FolderId Id="AAEuAAAAAAAaRHOQqmYRzZvIAKoAL8RaAwDGhlYvXdkPS6ML55Rn1Rq8AACAZ94lAAA="/></tns:ParentFolderIds></tns:FindItem></SOAP-ENV:Body></SOAP-ENV:Envelope> it seems OK but it has to be like this: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><SOAP-ENV:Header><t:RequestServerVersion Version="Exchange2007_SP1"/></SOAP-ENV:Header><SOAP-ENV:Body><tns:FindItem xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:tns="http://schemas.microsoft.com/exchange/services/2006/messages" Traversal="Shallow"><tns:ItemShape><t:BaseShape>AllProperties</t:BaseShape></tns:ItemShape><tns:ParentFolderIds><t:FolderId Id="AAEuAAAAAAAaRHOQqmYRzZvIAKoAL8RaAwDGhlYvXdkPS6ML55Rn1Rq8AACAZ94lAAA="/></tns:ParentFolderIds></tns:FindItem></SOAP-ENV:Body></SOAP-ENV:Envelope> The "RequestServerVersion" is missing. This is never sent (it is also missed by the "normal" requests). Unfortunately I don't know how to add this header so I had to do some parsing in XML/Compile/Transport/SOAPHTTP.pm :-( Perhaps somebody could give me a hint? Best regards Chris
Hi Christopher, Sorry for the long delay. I've released a new version of EWS::Client which I believe should now send the correct ServerVersion attribute in the SOAP message. regards, oliver.