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

Figure out why writing to a resource makes the testCommonOperations fail in ResourceOperationsTest #61

Open
sam-i-am012 opened this issue Aug 2, 2024 · 0 comments
Labels
bug Something isn't working testing

Comments

@sam-i-am012
Copy link
Collaborator

sam-i-am012 commented Aug 2, 2024

Message in logs:

[P:1] [error] [T:10] op_write: Could not open data object for write.

Relevant code:

// TODO(#61): figure out why writing to a resource makes test fail
//  Message from logs: could not open data object for write

// Create a data object targeting the replication resource.
byte[] contents = "hello, iRODS HTTP API!".getBytes();
DataObjectWriteParams writeParams = new DataObjectWriteParams();
writeParams.setResource(rescRepl);
writeParams.setOffset(0);
res = rods.dataObject().write(rodsToken, dataObject, contents, writeParams);

Running the request without this line:

writeParams.setResource(rescRepl);

works without any problems, so I'm thinking the problem is with writing to the resource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working testing
Projects
None yet
Development

No branches or pull requests

2 participants