-
Notifications
You must be signed in to change notification settings - Fork 493
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
Bug or feature? - Invalid api token results in access denied to public objects #10070
Comments
I propose we start an API changelog for these: Here's the related issue on the Data Explorer v2 side: |
2023/10/31: as per exchange with @scolapasta I have added the issue to the Global Backlog for sizing. I labeled it "Feature: API" although it's somewhat more of a bug than feature. |
2023/11/6: Group discussion following the standup suggests that we need to decide on a strategy before sizing. Either 1) simply document the behavior so that applications that assume they can send inauthentic tokens for public datasets are alerted, or 2) modify the behavior itself, which requires development. I'm not certain who should decide: @landreev, @pdurbin, or @scolapasta can someone weigh in and decide next steps? |
+1 to document and fail when bad tokens are sent |
I too vote +1 for sticking with the current behavior, while documenting it in the guide and in the next release note. |
+1 to the above. Let's also add a test asserting the current behavior. |
... an extra +1 for adding a test. Could still be a 3 (?). |
+1 let's go with this approach |
Are there any other changes to the API that would be good to include on this? I made this quickly just so we can have some input, I was thinking of adding this at the top of the guide and with a format similar to this: Didn't want to ping everyone but feel free to let me know if I should ping someone else. |
@scolapasta mentioned yesterday it was only documentation but, @pdurbin, @landreev mentioned a test. Should I also work on that? |
My main feedback is that instead of a date, it should be a version. Note that Leonid said above, "We noticed that sometime between 5.9 and 6.0." Also, I'd put the changelog lower down, maybe even the last page (after the FAQ). |
Hi, @landreev just wanted to check with you since you created this thread. In your initial comment, you mention that is a 403 but with the testing I have done I am getting a 401, just wanted to check I am looking at the right thing. Also, there is already a test in place so probably will just have to modify AccessIT to add this condition. |
We are currently preparing the migration to Here are some additional information for the changelog.rst of PR #10127 : This issue is related to the commit : e8163b If you understand Java, here is the explanation :
This code is completely okay, I join you all on the idea of keep it that way and fix it in Data Explorer v2 scholarsportal/dataverse-data-explorer-v2#29 We decided to implement
Regards |
For information, we have adapted the rule to handle a case generating an error:Downloading "Tab-delimited file" from DataExplorer. Generated URL is
|
I can see how one can argue that this is the correct behavior. But at the very least, this appears to have been an undocumented change in behavior. We noticed that sometime between 5.9 and 6.0
/api/access/datafile/...?key=null
started to result in a 403 on a public file, so many features in Data Explorer v2 are not working in 6.0 because that's what it sends underneath.The text was updated successfully, but these errors were encountered: