Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getResource() is an empty string #416

Open
jjkoehorst opened this issue Dec 2, 2022 · 2 comments
Open

getResource() is an empty string #416

jjkoehorst opened this issue Dec 2, 2022 · 2 comments
Labels
Milestone

Comments

@jjkoehorst
Copy link

I was trying to find out if a file was stored on disk or on tape but within java I only get an empty string when asking for the resource of an irodsfile object.

image

while via the CLI I do get the resource

image

Do I need to use another file object type to enable the getResource function?

@jjkoehorst
Copy link
Author

Not sure why resource is an empty string or maybe it means something else but the resource can be obtained via

dataObjectAO.getResourcesForDataObject...

@trel
Copy link
Member

trel commented Dec 2, 2022

This is probably related to iRODS moving from a string in the catalog in iRODS 4.1.x to a resource id (integer) in 4.2+. Jargon may need to learn how to dereference the integer when talking to a 4.2+ server. Reopening for investigation. Thanks!

@trel trel reopened this Dec 2, 2022
@korydraughn korydraughn added this to the 4.3.5.0 milestone Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants