Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4576ADFA4 for ; Wed, 15 May 2013 11:51:19 +0000 (UTC) Received: (qmail 82462 invoked by uid 500); 15 May 2013 11:51:18 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 82199 invoked by uid 500); 15 May 2013 11:51:17 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 82140 invoked by uid 99); 15 May 2013 11:51:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 May 2013 11:51:16 +0000 Date: Wed, 15 May 2013 11:51:16 +0000 (UTC) From: =?utf-8?Q?Florian_M=C3=BCller_=28JIRA=29?= To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CMIS-647) Exceptions when trying to access SharePoint 2013 folders MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CMIS-647?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Florian M=C3=BCller resolved CMIS-647. --------------------------------- Resolution: Fixed Fix Version/s: DotCMIS 0.6 =20 > Exceptions when trying to access SharePoint 2013 folders > -------------------------------------------------------- > > Key: CMIS-647 > URL: https://issues.apache.org/jira/browse/CMIS-647 > Project: Chemistry > Issue Type: Bug > Components: dotcmis > Affects Versions: DotCMIS 0.5 > Environment: Windows 7 Professional > Reporter: Thomas Rogall > Assignee: Florian M=C3=BCller > Fix For: DotCMIS 0.6 > > Attachments: Fiddler_Raw_GetChildren.txt, screenshot-1.jpg, scree= nshot-2.jpg, screenshot-3.jpg > > > I am trying to retrieve objects within a SharePoint 2013 library, using "= IFolder.GetChildren(=E2=80=A6)" > In plain libraries this is working OK. But when the SharePoint library co= ntains folders, the function always raises a NULL-Pointer-Exceptions. > After removing all folders from the SharePoint library the function works= correct again. > The NULL pointer exception is caused in "binding-caches.cs", line 220, se= e stacktrace below. > Note 1: Using the CMIS Workbench (same connection parameters and same cre= dentials) documents AND folders are listed correctly (!) > Note 2: I already tried to add some code which simply avoids NULL-argumen= ts. This does NOT help, just an empty result will be returned. > Note 3: A similar behavior occurs when trying to access objects using "IS= ession.GetObjectByPath()" --> rootFolder and documents are OK, subfolders w= ill raise exceptions. > Sample output from my test program: > Path '/' --> Folder: Meine erste Bibliothek > Path '/NOTEBOOK.JPG' --> Picture: NOTEBOOK.JPG > Path '/AAA' --> EXCEPTION: Received Atom entry is not a CMIS entry! > Path '/AAA/' --> EXCEPTION: Received Atom entry is not a CMIS entry! > Path '/AAA/BBB' --> EXCEPTION: Received Atom entry is not a CMIS entry! > Path '/AAA/BBB/JUDGESCH.GIF' --> Document: JUDGESCH.GIF > Stacktrace: > bei System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument ar= gument) > bei System.Collections.Generic.Dictionary`2.FindEntry(TKey key) > bei System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TVal= ue& value) > bei DotCMIS.Util.LRUCache`2.Remove(K key) in C:\EIS\CMIS\Chemistry\src= \util.cs:Zeile 104. > bei DotCMIS.Binding.LruCacheLevel.Remove(String key) in C:\EIS\CMIS\Ch= emistry\src\binding\binding-caches.cs:Zeile 551. > bei DotCMIS.Binding.Cache.Remove(String[] keys) in C:\EIS\CMIS\Chemist= ry\src\binding\binding-caches.cs:Zeile 220. > bei DotCMIS.Binding.AtomPub.LinkCache.RemoveLinks(String repositoryId,= String id) in C:\EIS\CMIS\Chemistry\src\binding\atompub\atompub-linkcache.= cs:Zeile 126. > bei DotCMIS.Binding.AtomPub.AbstractAtomPubService.RemoveLinks(String = repositoryId, String id) in C:\EIS\CMIS\Chemistry\src\binding\atompub\atomp= ub.cs:Zeile 199. > bei DotCMIS.Binding.AtomPub.NavigationService.GetChildren(String repos= itoryId, String folderId, String filter, String orderBy, Nullable`1 include= AllowableActions, Nullable`1 includeRelationships, String renditionFilter, = Nullable`1 includePathSegment, Nullable`1 maxItems, Nullable`1 skipCount, I= ExtensionsData extension) in C:\EIS\CMIS\Chemistry\src\binding\atompub\atom= pub.cs:Zeile 1080. > bei DotCMIS.Client.Impl.Folder.<>c__DisplayClass4.b__3(In= t64 maxNumItems, Int64 skipCount) in C:\EIS\CMIS\Chemistry\src\client\clien= t-objects.cs:Zeile 1252. > bei DotCMIS.Client.Impl.PageFetcher`1.FetchNextPage(Int64 skipCount) i= n C:\EIS\CMIS\Chemistry\src\client\client-utils.cs:Zeile 563. > bei DotCMIS.Client.Impl.AbstractEnumerator`1.GetCurrentPage() in C:\EI= S\CMIS\Chemistry\src\client\client-utils.cs:Zeile 528. > bei DotCMIS.Client.Impl.CollectionEnumerator`1.MoveNext() in C:\EIS\CM= IS\Chemistry\src\client\client-utils.cs:Zeile 608. > bei TestClient.MainForm.DumpRepository(ISession session) in C:\EIS\CMI= S\Chemistry\TestClient\MainForm.cs:Zeile 139. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira