-
Notifications
You must be signed in to change notification settings - Fork 494
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
NAS-132001 / 25.04 / Fix __job_by_credential_and_id
crashing for non-full-admins and internally ran jobs
#14790
Conversation
…ernally ran jobs
__job_by_credential_and_id
crashing for non-full-admins and internally ran jobs__job_by_credential_and_id
crashing for non-full-admins and internally ran jobs
time 1:30 |
@themylogin we missed the 24.10.0 boat. It's too late now. Not sure if you want to keep this ticket opened up or close it and push a new PR with what you described in the other PR? |
@yocalebo we should merge it, this should still be fixed. The PR I opened is a separate issue. |
retest this please |
@@ -101,6 +101,11 @@ def __job_by_credential_and_id(self, credential, job_id): | |||
|
|||
job = self.middleware.jobs[job_id] | |||
|
|||
if job.credentials is None: | |||
raise CallError( | |||
'Only users with full administrative privileges can download internal job logs', errno.EPERM, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't someone hit this by running core.job_wait
for any job that's owned by root?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are correct. Fixed the error message.
This PR has been merged and conversations have been locked. |
@yocalebo please note that this only fixes half of the real issue. I created a new ticket for you to review and determine fix version https://ixsystems.atlassian.net/browse/NAS-132031