-
Notifications
You must be signed in to change notification settings - Fork 6
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
listRemotePaths #71
Comments
Hi @wandell . Let me see -- the error is HTTP status 403, which means "forbidden". So somehow there is an authorization problem when listing remote paths. It is odd that you can list artifacts, but not list remote paths. I maybe these two operations require different permissions in Archiva's view of the world. I see your configuration is called "isetbio". Is this the standard isetbio configuration with the "guest" account? |
OK, using the standard "isetbio" configuration I am able to reproduce the behavior you pasted above. So there's a good chance I can fix today. #famouslastwords |
I did some testing and looked into the Archiva source code. Indeed, the operation where we list remote paths has a restriction flag set (source). But the operation where we list artifacts does not (source). I don't know why these operations are treated differently. But this explains why the guest user can't list remote paths. Logged-in users can list remote paths. So that is a partial, quick workaround. It also explains why our automated tests did not catch this bug. I will implement a better fix where we list remote paths using alternative REST calls to Archiva, which are not restricted (source). The new implementation will have to make multiple REST calls instead of one. But this detail should be hidden by the toolbox so that our user-level Matlab scripts can stay the same. |
OK, I think I've fixed this;
|
I went ahead and merged the PR unilaterally. @wandell would you please pull from master and try your script again? |
The listRemotePaths function now works! Great! However, I was going to try logging in and try the function while logged in, too. But ... the username and password that worked for me this weekend is now being rejected. Any chance you understand that? From: Ben Heasly notifications@github.com I went ahead and merged the PR unilaterally. @wandellhttps://github.com/wandell would you please pull from master and try your script again? You are receiving this because you were mentioned. |
I should have added that this is the error
From: Brian A Wandell The listRemotePaths function now works! Great! However, I was going to try logging in and try the function while logged in, too. But ... the username and password that worked for me this weekend is now being rejected. Any chance you understand that? From: Ben Heasly notifications@github.com I went ahead and merged the PR unilaterally. @wandellhttps://github.com/wandell would you please pull from master and try your script again? You are receiving this because you were mentioned. |
Oh, that's annoying about your password. I think Archiva wants you to go to the web interface and reset your password. ... which Archiva is not supposed to be doing. We encountered a password reset issue earlier this year, and it was irritating. I thought I understood the problem and fixed it at the time. Apparently I didn't succeed. If you do reset your password I think you'll be able to keep working. I will take another look at preventing this from happening every 3 months. |
So, just coincidental timing. Anyway, you were right. I changed the password and I am back in business. Thanks again for your help! Brian From: Ben Heasly notifications@github.com Oh, that's annoying about your password. I think Archiva wants you to go to the web interface and reset your password. ... which Archiva is not supposed to be doing. We encountered a password reset issue earlier this year, and it was irritating. I thought I understood the problem and fixed it at the time. Apparently I didn't succeed. If you do reset your password I think you'll be able to keep working. I will take another look at preventing this from happening every 3 months. You are receiving this because you were mentioned. |
@benjamin-heasly
Many things are working, but unfortunately this listRemotePaths command is failing
An example of a command that works is
rd.openBrowser
or even the more complex call
Sorry to bother you, but this is beyond my debugging knowledge.
The text was updated successfully, but these errors were encountered: