Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] mapping client-side file locations to server file system locations

Thanks, Anthony,

I guess I managed to skip the new storage in 4.

Thanks for the pointer to the API. I haven't bit that bullet yet. I am still accessing the user contents in the shared file system, instead of using the REST API. Are there examples of plug-ins that rely on a separate server and then access the Orion server or some guidance to that effect? Thinking of some interesting aspects around authentication (custom service -> Orion API) and having two separate servers.

Cheers,

Rafael 


On Fri, Mar 14, 2014 at 11:19 AM, Anthony Hunter <anthonyh@xxxxxxxxxx> wrote:
Hi Rafael,

Best place would be to look at the design document for the feature delivered in Orion 4.0, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=412995#c20 . In this document there is a mapping from the old to new.

However, you should be using the workspace API to get these locations, this has not changed, the documentation is at http://wiki.eclipse.org/Orion/Server_API/Workspace_API

You get the workspace for the user, from that you can get the projects and their locations.

Cheers...
Anthony




From:        Rafael Chaves <rafael@xxxxxxxxxxxx>
To:        Orion developer discussions <orion-dev@xxxxxxxxxxx>
Date:        2014/03/13 11:05 PM
Subject:        [orion-dev] mapping client-side file locations to server file        system locations
Sent by:        orion-dev-bounces@xxxxxxxxxxx




I have some code that maps the location as seen by the Orion client to the path of the file under the Orion server workspace.

It seems for Orion 5.0 file locations changed again, to something such as:

/file/myuser-OrionContent/top-folder/subfolder/file.txt

whereas in 4.0 I believe it used to be:

/file/myuser/top-folder/subfolder/file.txt 

And of course that broke my mapping hack.

I can change my hack to strip the -OrionContent substring, but it would be good to have an idea of where things are going and if it is worth doing that (or will it break again in 6.0). Is there a (supported) direction on how tools can map client-side locations to server-side content locations?

Cheers,

Rafael _______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev


_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev



Back to the top