1 diff -ru libcmis-0.2.3/src/libcmis/atom-document.cxx misc/build/libcmis-0.2.3/src/libcmis/atom-document.cxx
2 --- libcmis-0.2.3/src/libcmis/atom-document.cxx 2012-07-02 14:39:04.815222889 +0200
3 +++ misc/build/libcmis-0.2.3/src/libcmis/atom-document.cxx 2012-07-02 14:41:09.088229625 +0200
5 vector< string > AtomDocument::getPaths( )
7 vector< string > paths;
8 - vector< libcmis::FolderPtr > parents = getParents( );
9 - for ( vector< libcmis::FolderPtr >::iterator it = parents.begin( );
10 - it != parents.end(); ++it )
13 - string path = ( *it )->getPath( );
14 - if ( path[path.size() - 1] != '/' )
17 - paths.push_back( path );
18 + vector< libcmis::FolderPtr > parents = getParents( );
19 + for ( vector< libcmis::FolderPtr >::iterator it = parents.begin( );
20 + it != parents.end(); ++it )
22 + string path = ( *it )->getPath( );
23 + if ( path[path.size() - 1] != '/' )
26 + paths.push_back( path );
29 + catch ( const libcmis::Exception& )
31 + // We may not have the permission to get the parents