From 21c4d78743c0e56b449bfd9254dda448e8afc50d Mon Sep 17 00:00:00 2001 From: Kory Draughn Date: Fri, 5 Jun 2026 13:39:36 -0400 Subject: [PATCH 1/2] [#474] Use consistent input placeholders for modify_replica operation --- API.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/API.md b/API.md index d5f195db..34086ae6 100644 --- a/API.md +++ b/API.md @@ -1260,8 +1260,8 @@ curl http://localhost:/irods-http-api//data-objects \ --data-urlencode 'replica-number=' \ --data-urlencode 'new-data-checksum=' \ --data-urlencode 'new-data-comments=' \ - --data-urlencode 'new-data-create-time=' \ - --data-urlencode 'new-data-expiry=' \ + --data-urlencode 'new-data-create-time=' \ + --data-urlencode 'new-data-expiry=' \ --data-urlencode 'new-data-mode=' \ --data-urlencode 'new-data-modify-time=' \ --data-urlencode 'new-data-path=' \ @@ -1272,11 +1272,17 @@ curl http://localhost:/irods-http-api//data-objects \ --data-urlencode 'new-data-status=' \ --data-urlencode 'new-data-type-name=' \ --data-urlencode 'new-data-version=' \ - --data-urlencode 'new-data-access-time=' # Must be 11 bytes in length and padded with leading zeros. + --data-urlencode 'new-data-access-time=' ``` `resource-hierarchy` and `replica-number` are mutually exclusive parameters. +The following parameters must be 11 bytes in length and padded with leading zeros. +- `new-data-access-time` +- `new-data-create-time` +- `new-data-expiry` +- `new-data-modify-time` + `new-data-access-time` is supported by iRODS 5 only. Attempting to modify this property while connected to an iRODS server earlier than 5.0.0 will result in an HTTP status code of 400. All parameters having a prefix of `new-` represent modifiable properties of the target replica. At least one modifiable property is required for the operation to succeed. This operation allows multiple properties to be modified in a single call. From 5abd496178c51bfe53b84f0731856c9472f4298d Mon Sep 17 00:00:00 2001 From: Kory Draughn Date: Fri, 5 Jun 2026 13:41:18 -0400 Subject: [PATCH 2/2] [#494] Rename expiry parameter for modify_replica operation --- API.md | 4 ++-- endpoints/data_objects/src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/API.md b/API.md index 34086ae6..889e5001 100644 --- a/API.md +++ b/API.md @@ -1261,7 +1261,7 @@ curl http://localhost:/irods-http-api//data-objects \ --data-urlencode 'new-data-checksum=' \ --data-urlencode 'new-data-comments=' \ --data-urlencode 'new-data-create-time=' \ - --data-urlencode 'new-data-expiry=' \ + --data-urlencode 'new-data-expiry-time=' \ --data-urlencode 'new-data-mode=' \ --data-urlencode 'new-data-modify-time=' \ --data-urlencode 'new-data-path=' \ @@ -1280,7 +1280,7 @@ curl http://localhost:/irods-http-api//data-objects \ The following parameters must be 11 bytes in length and padded with leading zeros. - `new-data-access-time` - `new-data-create-time` -- `new-data-expiry` +- `new-data-expiry-time` - `new-data-modify-time` `new-data-access-time` is supported by iRODS 5 only. Attempting to modify this property while connected to an iRODS server earlier than 5.0.0 will result in an HTTP status code of 400. diff --git a/endpoints/data_objects/src/main.cpp b/endpoints/data_objects/src/main.cpp index 0c0cb447..7eccc821 100644 --- a/endpoints/data_objects/src/main.cpp +++ b/endpoints/data_objects/src/main.cpp @@ -2784,7 +2784,7 @@ namespace {"new-data-checksum", CHKSUM_KW}, {"new-data-comments", DATA_COMMENTS_KW}, {"new-data-create-time", DATA_CREATE_KW}, - {"new-data-expiry", DATA_EXPIRY_KW}, + {"new-data-expiry-time", DATA_EXPIRY_KW}, {"new-data-mode", DATA_MODE_KW}, {"new-data-modify-time", DATA_MODIFY_KW}, //{"new-data-owner-name", DATA_OWNER_KW},