cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with folder path

alessandrolazar
Champ in-the-making
Champ in-the-making
My content will be send by Webservice, and I'm with some problems to indicate as a folder path any user space different of "app:company_home"

For example:

"/app:company_home/app:user_homes/sys:Alessandro Home/cm:Alessandro Home"

Does anyone know what would be wrong?

Thanks
28 REPLIES 28

alessandrolazar
Champ in-the-making
Champ in-the-making
This is a wrong way to access a space (for example to input a file in Space "Alessandro Home")?

vsuarez
Champ in-the-making
Champ in-the-making
I think your path is "/app:company_home/app:user_homes/cm:alessandro" or similar (replace your name with your username).

morpheus
Champ in-the-making
Champ in-the-making
I think your path is "/app:company_home/app:user_homes/cm:alessandro" or similar (replace your name with your username).

i would also look in the properties of that content, there you will find the correct name (via an Repository Service query, or just through the web client)

nys
Champ in-the-making
Champ in-the-making
Hi All,

Even I'm trying to create space in different user homes and stream files into it.

I m trying to reach the node by following options
/app:company_home/app:user_homes/sys:cynthia/cm:sample_folder
/app:company_home/app:user_homes/cm:cynthia

cynthia—-is the user name and space name of that user in USER HOMES

I looked into the properties of the content to make sure the name is correct.

But its throwing me the exception

Failed to resolve to a single NodeRef with parameters (store=workspaceSmiley FrustratedpacesStore uuid=null path=/app:company_home/app:user_homes/cm:cynthia), found 0 nodes.

Could someone please help me.

Thanks
nys

morpheus
Champ in-the-making
Champ in-the-making
Failed to resolve to a single NodeRef with parameters (store=workspaceSmiley FrustratedpacesStore uuid=null path=/app:company_home/app:user_homes/cm:cynthia), found 0 nodes.

is this a space?  app:user_homes, then test with the content model prefix ("cmSmiley Happy

chapeaurouge
Champ in-the-making
Champ in-the-making
I got the same issue.. Creating a "root" parent reference as the user's space is fine, I can put docs into it:

   ParentReference rootHomeParent = new ParentReference(                     
                                    storeRef,
                              null,
                              "/app:company_home/app:user_homes/sys:"+username,
                               Constants.ASSOC_CONTAINS,
                                  Constants.ASSOC_CONTAINS
);

Then, my code creates a subfolder (1 folder per year) to that space, fine too. But the actual file I want to upload never gets there, and I know the error is in that path to the subfolder:

ParentReference yearHomeParent = new ParentReference(   
               storeRef,
               null,
               rootHomeParent.getPath() + "/cm:" + theYear,
               Constants.ASSOC_CONTAINS,
               Constants.createQNameString(biModel.NAMESPACE_BI_CONTENT_MODEL, docName)
            );

I also tried to no luck:
"/app:company_home/app:user_homes/cm:" + theYear

If I simply put the user home space instead, as my firs snippet shows, the file gets uploaded.

How do we need to reference the path to the subfolder?

Thank you.

fred

alessandrolazar
Champ in-the-making
Champ in-the-making
i would also look in the properties of that content, there you will find the correct name (via an Repository Service query, or just through the web client)

How I see the the correct path by  web client? I open the detail of file, but not see the path (only "Location", but it's not the path to query find).

morpheus
Champ in-the-making
Champ in-the-making
How I see the the correct path by  web client? I open the detail of file, but not see the path (only "Location", but it's not the path to query find).

the sequence of spaces you clicked through,
that´s the path to that space you wish (don´t forget the prefixe when addressing an space in the code)

chapeaurouge
Champ in-the-making
Champ in-the-making
the sequence of spaces you clicked through,
that´s the path to that space you wish (don´t forget the prefixe when addressing an space in the code)
Doesn't work for me I guess.. unless I am really doing something wrong in my code.