Skip to content

[#479] Return iRODS error codes for write operations (main) - #502

Merged
alanking merged 3 commits into
irods:mainfrom
korydraughn:479.m
Jun 17, 2026
Merged

alanking merged 3 commits into
irods:mainfrom
korydraughn:479.m

Conversation

@korydraughn

Copy link
Copy Markdown
Contributor

All non-OIDC tests pass.

I've verified the following operations report error codes from the Logical Quotas rule engine plugin too. The error codes come from the plugin and iRODS server.

  • write - returns SYS_NOT_ALLOWED on violations
  • parallel_write_init - returns SYS_NOT_ALLOWED on violations
  • touch - returns RE_RUNTIME_ERROR

Testing covered limits on the number of data objects and bytes.

I think this puts the HTTP API in a good spot. Improvements to error codes have to be addressed in the plugin and/or the iRODS server.

@korydraughn

Copy link
Copy Markdown
Contributor Author

Forgot to add the compile-time logic for when the application is compiled against iRODS 5.0.2 and earlier.

Will do that next.

@korydraughn

Copy link
Copy Markdown
Contributor Author

Compiled against 4.3 and irods/irods tip-of-main.

Tested each build against irods/irods tip-of-main.

This is ready for review now.

Comment thread endpoints/data_objects/src/main.cpp Outdated
Comment thread test/test_irods_http_api.py Outdated
Comment thread API.md
@korydraughn

Copy link
Copy Markdown
Contributor Author

Confirmed that tests pass when compiled against iRODS 5.

Working on a build which compiles against a dev package that doesn't have the dstream enhancement.

@korydraughn

Copy link
Copy Markdown
Contributor Author

Confirmed that a build against the 4.3 dev package passes the tests.

Awaiting feedback.

@alanking alanking left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last question

Comment thread endpoints/data_objects/src/main.cpp

@alanking alanking left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Squash

@korydraughn

Copy link
Copy Markdown
Contributor Author

Squashed.

@alanking alanking left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# it

@korydraughn

Copy link
Copy Markdown
Contributor Author

Added pounds.

@alanking
alanking merged commit 3d4616d into irods:main Jun 17, 2026
13 checks passed
@korydraughn
korydraughn deleted the 479.m branch June 17, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants