UNSOLVED

amarcionek

updated

17 years ago

A

amarcionek

1 Rookie

•

56 Posts

0

3776

October 9th, 2009 14:00

Namespace Interface Qs

Do I have to URL encode the namespace endpoint in the signature?

For example,

/rest/namespace/Test%20Directory/

for a space between test and directory?

How about using other "reserved characters" like $, %, & and +.  E.g. add a folder called $Vol.

Update:

One more question related to this note in the REST API guide:

NOTE: Directly under the / directory, you can create only directories, not files.

I have been able to create a file here: /rest/namespace/FILE.DIF    Isn't that the / directory?

  • rbala1

    1 Rookie

    •

    222 Posts

    958

    1

    Posted October 14th, 2009 11:00

    There's an issue with special characters and spaces at the moment.

    In regards to spaces, it's fixed in trunk but not deployed yet to Atmos Online.

    I need to find more information on the issue with special characters like $, etc.

  • JasonCwik

    1 Rookie

    •

    281 Posts

    958

    1

    Posted October 14th, 2009 20:00

    Adam,

    Yes, you can actually create files under the root (/), but it's discouraged since you can't list the contents of the root folder.

  • aashishpatil

    2 Intern

    •

    212 Posts

    958

    0

    Posted October 31st, 2009 15:00

    Since the root (/) is not listable, how does one get the list of namespaces under '/'?

    Thanks,

    Aashish

  • Navneeth1

    29 Posts

    958

    0

    Posted November 4th, 2009 11:00

    You cannot; you have to _know_ the name of the file/folder you wish to open under '/'
  • aashishpatil

    2 Intern

    •

    212 Posts

    958

    0

    Posted November 6th, 2009 14:00

    I was able to list namespaces under '/' by using EsuApi.listDirectories(new ObjectPath("/")).

    The issue turned out to be something else - /;

    Thanks,

    Aashish