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

addAVUMetadata returning an error with irods 4.3.0 #415

Closed
flelayo opened this issue Aug 3, 2022 · 4 comments
Closed

addAVUMetadata returning an error with irods 4.3.0 #415

flelayo opened this issue Aug 3, 2022 · 4 comments
Assignees
Labels
Milestone

Comments

@flelayo
Copy link

flelayo commented Aug 3, 2022

Bug Report

iRODS Version, OS and Version

irods 4.3.0, centos 7
Jargon 4.3.2.5-RELEASE

What did you try to do?

Adding a metadata to an existing file using API with Jargon function addAVUMetadata.

Expected behavior

Metadata added

Observed behavior (including steps to reproduce, if applicable)

We updated a 4.2.7 irods server on centos7 using yum update. We have done some test with an application that worked fine before update but get us this error now :

{"log_category":"legacy","log_facility":"local0","log_level":"info",
"log_message":"rsApiHandler: unpackStruct error for apiNumber 706, status = -15000",
"request_api_name":"MOD_AVU_METADATA_AN","request_api_number":706,"request_api_version":"d",...

The XML message send by Jargon seems fine, so I don't understand why there is an error at unpack :

<ModAVUMetadataInp_PI><arg0>add</arg0>
<arg1>-d</arg1>
<arg2>/odin/kdi-valid/dataset/100005/archive/file.test</arg2>
<arg3>projectName</arg3>
<arg4>TestProject2</arg4>
<arg5></arg5>
<arg6></arg6>
<arg7></arg7>
<arg8></arg8>
<arg9></arg9>
</ModAVUMetadataInp_PI>

We used the API to create the file and do some right management before. Those calls worked.

I thought this was an Irods error but the imeta command add metadata without errors.

@JustinKyleJames JustinKyleJames self-assigned this Jan 10, 2023
@JustinKyleJames
Copy link
Contributor

This seems to be the cause of irods-contrib/metalnx-web#337

@JustinKyleJames
Copy link
Contributor

JustinKyleJames commented Jan 10, 2023

Jargon needs to be updated to add the condInput which was added in 4.3. Here is an example:

<ModAVUMetadataInp_PI>
<arg0>add</arg0>
<arg1>-d</arg1>
<arg2>/tempZone/home/rods/2901778.jpg</arg2>
<arg3>a</arg3>
<arg4>b</arg4>
<arg5></arg5>
<arg6></arg6>
<arg7></arg7>
<arg8></arg8>
<arg9></arg9>
<KeyValPair_PI>
<ssLen>0</ssLen>
</KeyValPair_PI>
</ModAVUMetadataInp_PI>```

@JustinKyleJames
Copy link
Contributor

I added a pull request #417 to fix this.

@trel
Copy link
Member

trel commented Mar 27, 2023

closing as fixed.

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