Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public folder access on 1.0.0 #93

Open
codespectator opened this issue Aug 6, 2013 · 1 comment
Open

Public folder access on 1.0.0 #93

codespectator opened this issue Aug 6, 2013 · 1 comment

Comments

@codespectator
Copy link

I have just updated to version 1.0.0.beta.1 and then 1.0.0.beta.2 to try and overcome an issue with not being able the create contacts folders.

Now in this version I can't access the public folders. Here is the error returned:

DEBUG  Viewpoint::EWS::SOAP::ExchangeWebService : Sending SOAP Request:
----------------
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
  <soap:Header>
    <t:RequestServerVersion Version="Exchange2007"/>
  </soap:Header>
  <soap:Body>
    <FindFolder xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" Traversal="Shallow">
      <FolderShape>
<t:BaseShape>Default</t:BaseShape>
      </FolderShape>
      <m:ParentFolderIds>
<t:DistinguishedFolderId Id="publicfoldersroot"/>
      </m:ParentFolderIds>
    </FindFolder>
  </soap:Body>
</soap:Envelope>

----------------

DEBUG  Viewpoint::EWS::Connection : Internal SOAP error. Message: The request failed schema validation: The 'Id' attribute is invalid - The value 'publicfoldersroot' is invalid according to its datatype 'http://schemas.microsoft.com/exchange/services/2006/types:DistinguishedFolderIdNameType' - The Enumeration constraint failed., Code: soap11:Client
RuntimeError: SOAP Error: Message: The request failed schema validation: The 'Id' attribute is invalid - The value 'publicfoldersroot' is invalid according to its datatype 'http://schemas.microsoft.com/exchange/services/2006/types:DistinguishedFolderIdNameType' - The Enumeration constraint failed.  Code: soap11:Client

Looking at the documentation here: http://msdn.microsoft.com/en-us/library/exchange/aa580808(v=exchg.80).aspx it is clear that publicfoldersroot is not a valid id. I have also check the same docs for 2007, 2010 and 2013 and none list publicfoldersroot and a valid id.

I have checked out the source and follow as described in the comment:

@client = Viewpoint::EWSClient.new @@endpoint, @@user, @@pass, server_version: SOAP::ExchangeWebService::VERSION_2007
@client.folders root: :publicfoldersroot

Above is the error that is returned.

Any ideas??

@RmMsr
Copy link
Contributor

RmMsr commented Aug 6, 2013

Can you retrieve the public root folder itself?

@client.get_folder :publicfoldersroot

You might traverse from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants