-
Notifications
You must be signed in to change notification settings - Fork 10
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
CAT_NO_ACCESS_PERMISSION and USER_PACKSTRUCT_INPUT_ERR on open/read/close activity #203
Comments
N.B. (sorry for the pedantry)
Is only expected because of #200 - we would normally expect |
While this error was reproducible multiple times on the day, this is no longer the case. These all now succeed:
Trying to manually remove Maybe the error occurs only on the initial absence of |
First, that seems like great news. Second, |
My error. It had just got a new access time, so my Now things are a little different: As rodsadmin on the federated zone:
As a regular user on my home zone (federated to the above):
which I guess might be because it's looking at the wrong zone. I'm calling it so:
I've tried both with and without the |
I can now reproduce this 100% of the time, including with the Pyton API. Both a plain
Note that in this case (connecting to the same zone as before, but from a different host) we no longer see the packStruct error. With the Python API:
So the core issue looking more like it relates to permissions and the packStruct is separate. The iRODS user these clients are running as, is a read-only account because of a policy of least privilege. |
Excellent. Thanks for the detective work. If this is due to simply matching the wrong username (b/c federation), then this is a symptom/duplicate of #187. If this is more subtle and due to the read-only nature of the connected user, then we will need to think slightly differently about how to address it. |
iRODS: 4.2.7, Linux
Plugin: 2.7.0
A local user on a (federated) zone, with read-only access to data on that zone used
baton-get
to read a file.baton-get
uses the iRODSopen/read/close
API, which triggersirods::access_time
updates in this version of the plugin. The same user also usesiget
(which does not triggerirods::access_time
updates in this version of the plugin)Expected:
The file to be downloaded successfully with both clients, with only
baton-get
triggering an access time update.Observed:
iget
successfully downloads the file andirods::access_time
is not set.baton-get
fails when the update ofirods::acces_time
is attempted. Setting access time fails withCAT_NO_ACCESS_PERMISSION
, but an underlyingUSER_PACKSTRUCT_INPUT_ERR
.In this case is
CAT_NO_ACCESS_PERMISSION
genuine, or an artefact of failure due toUSER_PACKSTRUCT_INPUT_ERR
?The text was updated successfully, but these errors were encountered: