You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Rajath Shashidhara <ra...@gmail.com> on 2013/07/31 06:12:05 UTC
CMIS Workbench problem
Hello,
I have created a new folder Inside the My_Folder-0-0 in the local immemory
repository named "moved1" programmatically.
Code:
Map<String,String> newFolderProps = new HashMap<String, String>();
newFolderProps.put(PropertyIds.NAME, name);
newFolderProps.put(PropertyIds.OBJECT_TYPE_ID,
ObjectType.FOLDER_BASETYPE_ID);
try
{
getFolder().createFolder(newFolderProps);
return true;
}
catch(CmisBaseException e)
{
return false;
}
Here, name variable is "moved1"[image: Inline image 1]
This is the screenshot after creation of folder.
Now, when I try to getObjectbyPath from the session:
using: session.getObjectbyPath("/My_Folder-0-0/moved1") I'm getting a
CMisObjectNotFOundException.
the exception caught has a message containing
"/My_FOlder-0-0/My_FOlder-0-1" not found.
When I open the moved1 folder from the workbench, [image: Inline image 2]
U can clearly see that there is a conflict in the paths in the two places.
In the address bar, it shows a different path and in the properties bar it
shows the right path.
WHy is it so?
When I try to open "/My_Folder-0-0/moved1" why is it trying to open
"/My_FOlder-0-0/My_Dolder-0-1" ?
Is this a bug in opencmis?
--
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani
Re: CMIS Workbench problem
Posted by Florian Müller <fm...@apache.org>.
Hi Rajath,
Is it possible that you performed several other actions before that? Can
you reproduce it?
You are probably seeing stale cache entries. That wouldn't be a bug in
OpenCMIS. The Workbench provides the refresh button to reload objects
and update the cache.
Florian
> Hello Florian,
>
> Links for the images:
> https://docs.google.com/file/d/0B7bi_Hmur_i0THF1X08ya0RobzA/edit?usp=sharing
> https://docs.google.com/file/d/0B7bi_Hmur_i0a1hSRHhWeGdfclU/edit?usp=sharing
>
>
> On Wed, Jul 31, 2013 at 4:17 PM, Florian Müller <fmui@apache.org
> <ma...@apache.org>> wrote:
>
> Hi Rajath,
>
> Screenshots are not forwarded to the mailing list.
> We can't see what you are talking about.
>
>
> - Florian
>
>
> Hello,
>
> I have created a new folder Inside the My_Folder-0-0 in the local
> immemory repository named "moved1" programmatically.
> Code:
>
> Map newFolderProps = new HashMap();
>
> newFolderProps.put(__PropertyIds.NAME, name);
> newFolderProps.put(__PropertyIds.OBJECT_TYPE_ID,
> ObjectType.FOLDER_BASETYPE_ID)__;
> try
> {
> getFolder().createFolder(__newFolderProps);
> return true;
> }
> catch(CmisBaseException e)
> {
> return false;
> }
>
> Here, name variable is "moved1"
>
> This is the screenshot after creation of folder.
> Now, when I try to getObjectbyPath from the session:
> using: session.getObjectbyPath("/My___Folder-0-0/moved1") I'm
> getting a
> CMisObjectNotFOundException.
> the exception caught has a message containing
> "/My_FOlder-0-0/My_FOlder-0-1" not found.
>
> When I open the moved1 folder from the workbench,
> U can clearly see that there is a conflict in the paths in the two
> places. In the address bar, it shows a different path and in the
> properties bar it shows the right path.
>
> WHy is it so?
> When I try to open "/My_Folder-0-0/moved1" why is it trying to open
> "/My_FOlder-0-0/My_Dolder-0-1" ?
>
> Is this a bug in opencmis? --
>
> Rajath S,
> M.Sc(Hons.) Physics,
> Birla Institute of Technology and Science - Pilani,
> Pilani
>
>
>
>
> --
> Rajath S,
> M.Sc(Hons.) Physics,
> Birla Institute of Technology and Science - Pilani,
> Pilani
Re: CMIS Workbench problem
Posted by Rajath Shashidhara <ra...@gmail.com>.
Hello Florian,
Links for the images:
https://docs.google.com/file/d/0B7bi_Hmur_i0THF1X08ya0RobzA/edit?usp=sharing
https://docs.google.com/file/d/0B7bi_Hmur_i0a1hSRHhWeGdfclU/edit?usp=sharing
On Wed, Jul 31, 2013 at 4:17 PM, Florian Müller <fm...@apache.org> wrote:
> Hi Rajath,
>
> Screenshots are not forwarded to the mailing list.
> We can't see what you are talking about.
>
>
> - Florian
>
>
> Hello,
>>
>> I have created a new folder Inside the My_Folder-0-0 in the local
>> immemory repository named "moved1" programmatically.
>> Code:
>>
>> Map newFolderProps = new HashMap();
>>
>> newFolderProps.put(**PropertyIds.NAME, name);
>> newFolderProps.put(**PropertyIds.OBJECT_TYPE_ID,
>> ObjectType.FOLDER_BASETYPE_ID)**;
>> try
>> {
>> getFolder().createFolder(**newFolderProps);
>> return true;
>> }
>> catch(CmisBaseException e)
>> {
>> return false;
>> }
>>
>> Here, name variable is "moved1"
>>
>> This is the screenshot after creation of folder.
>> Now, when I try to getObjectbyPath from the session:
>> using: session.getObjectbyPath("/My_**Folder-0-0/moved1") I'm getting a
>> CMisObjectNotFOundException.
>> the exception caught has a message containing
>> "/My_FOlder-0-0/My_FOlder-0-1" not found.
>>
>> When I open the moved1 folder from the workbench,
>> U can clearly see that there is a conflict in the paths in the two
>> places. In the address bar, it shows a different path and in the
>> properties bar it shows the right path.
>>
>> WHy is it so?
>> When I try to open "/My_Folder-0-0/moved1" why is it trying to open
>> "/My_FOlder-0-0/My_Dolder-0-1" ?
>>
>> Is this a bug in opencmis? --
>>
>> Rajath S,
>> M.Sc(Hons.) Physics,
>> Birla Institute of Technology and Science - Pilani,
>> Pilani
>>
>
--
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani
Re: CMIS Workbench problem
Posted by Florian Müller <fm...@apache.org>.
Hi Rajath,
Screenshots are not forwarded to the mailing list.
We can't see what you are talking about.
- Florian
> Hello,
>
> I have created a new folder Inside the My_Folder-0-0 in the local
> immemory repository named "moved1" programmatically.
> Code:
>
> Map newFolderProps = new HashMap();
> newFolderProps.put(PropertyIds.NAME, name);
> newFolderProps.put(PropertyIds.OBJECT_TYPE_ID,
> ObjectType.FOLDER_BASETYPE_ID);
> try
> {
> getFolder().createFolder(newFolderProps);
> return true;
> }
> catch(CmisBaseException e)
> {
> return false;
> }
>
> Here, name variable is "moved1"
>
> This is the screenshot after creation of folder.
> Now, when I try to getObjectbyPath from the session:
> using: session.getObjectbyPath("/My_Folder-0-0/moved1") I'm getting a
> CMisObjectNotFOundException.
> the exception caught has a message containing
> "/My_FOlder-0-0/My_FOlder-0-1" not found.
>
> When I open the moved1 folder from the workbench,
> U can clearly see that there is a conflict in the paths in the two
> places. In the address bar, it shows a different path and in the
> properties bar it shows the right path.
>
> WHy is it so?
> When I try to open "/My_Folder-0-0/moved1" why is it trying to open
> "/My_FOlder-0-0/My_Dolder-0-1" ?
>
> Is this a bug in opencmis? --
>
> Rajath S,
> M.Sc(Hons.) Physics,
> Birla Institute of Technology and Science - Pilani,
> Pilani