Hi Frank,

Akubra-fs's file URIs use relative paths, which are relative to the
"base" directory it is configured to use:

http://fedora-commons.org/documentation/akubra/0.3/site/apidocs/org/akubraproject/fs/FSBlobStore.html

Here's some history on why:

https://groups.google.com/group/akubra-dev/browse_thread/thread/0c4127b3f69073ac

In the case of such URIs, try URI.getRawSchemeSpecificPart() instead
of getPath(). That will always return everything after the first : in
the URI.

- Chris

On Fri, May 27, 2011 at 5:41 AM, Asseg, Frank
<[email protected]> wrote:
> Hola Guys!
>
> while implementing an akubra layer for HDFS,  it came to my attention that
> URIs created by fedora seem to be of the format "file:6f/path/to/file". When
> i use these URIs in Java i ran into the problem that
> new URI("file:6f/path/to/file").getPath() == null.
> when replacing "file:" with "file://" everything works fine, and the uri
> scheme and path have valid values.
> am i missing something or is there another way to handle the URIs which
> fedora requests from akubra?
>
> regards,
> frank
>
>
>
> Frank Asseg
> Elektronisches Publizieren und eScience
> Entwicklung und Angewandte Forschung
> Tel. +49 7247 808-235
> Fax +49 7247 808-133
> [email protected]
>
>
> FIZ Karlsruhe – Leibniz-Institut für Informationsinfrastruktur
> Hermann-von-Helmholtz-Platz 1
> 76344 Eggenstein-Leopoldshafen
>
> http://www.fiz-karlsruhe.de/

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Fedora-commons-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers

Reply via email to