cancel
Showing results for 
Search instead for 
Did you mean: 

Desktop Actions not shown when mapping sub-folder

kim
Champ in-the-making
Champ in-the-making
Hi,

I was playing with desktop actions recently and encountered the following awkward behavior:

    • If I add my custom desktop action to the default "Alfresco" filesystem, which has the rootPath set to /app:company_home, everything works fine

    • However, if I want to restrict what users can see by setting either
    <rootPath>/app:company_home/cm:someFolder/cm:someOtherFolder</rootPath>
    or
    <rootPath>/app:company_home</rootPath>
    <relativePath>/someFolder/someOtherFolder</relativePath>
    in file-servers-custom.xml, the action ".exe" files don't show up (although the debug log reports them as successfully registered)

    • Oddly enough, if I set the root to be only one level below Company Home like:
    <rootPath>/app:compay_home/cm:someFolder</rootPath>
    or
    <rootPath>/app:company_home</rootPath>
    <relativePath>/someFolder</relativePath>
    the ".exe" files show up, but I get the "Not a valid Alfresco CIFS folder" error reported here before when dropping a file on one of them.
Should this be reported to JIRA or am I missing something?

Regards,
Kim
3 REPLIES 3

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

What happens if you add a trailing '/' to the relative path ?.

If you can submit a Jira and assign it to me I'll take a look when I get a chance. I can't think of anything that is obviously wrong.

Cheers

Gary

kim
Champ in-the-making
Champ in-the-making
Errrmm … the trailing slash does the job. Why didn't I think of that?  Smiley Surprisedops:

Thanks a lot,
Kim

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

It looks like there is a problem in the config parsing, I'll check it out and add some code to make sure the path always has the trailing slash.

Thanks

Gary