-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Unauthorized Error when Loading Large Datasets in Metadata Editor #2547
Comments
I'm seeing this error on another private dataset with over 100 files: https://data.ess-dive.lbl.gov/view/ess-dive-161d0c0f88a0849-20240815T185407332338 Error messages I'm getting: More Context
|
@vchendrix @mburrus Can you describe the access policies on all of the objects in this package?
@robyngit @rushirajnenuji the |
curl -H "Authorization: Bearer $ESS_DIVE_AUTH_TOKEN" "https://data.ess-dive.lbl.gov/catalog/d1/mn/v2/query/solr?q=id:ess-dive-3a48ab5f69ecf8d-20240108T174327967&fl=id,writePermission&wt=json"
{
"responseHeader":{
"status":0,
"QTime":0,
"params":{
"q":"id:ess-dive-3a48ab5f69ecf8d-20240108T174327967",
"fl":"id,writePermission",
"wt":"javabin",
"version":"2"}},
"response":{"numFound":1,"start":0,"numFoundExact":true,"docs":[
{
"id":"ess-dive-3a48ab5f69ecf8d-20240108T174327967",
"writePermission":["CN=ess-dive-admins,DC=dataone,DC=org",
"CN=watershed-function-sfa-admin,DC=dataone,DC=org",
"CN=urn:node:ESS_DIVE,DC=dataone,DC=org"]}]
}}
Our services support HTTP/2 and HTTP/1.1
|
Hi @mbjones I have a follow up on the dataset that Val provided details for. Considering that the unauthorized error is intermittently appearing and sometimes the user can edit the dataset, I told the user that they should go ahead and reload the edit session until it works. They were able to load the edit session eventually, but then they encountered an unexpected error message when they attempted to submit changes and their dataset was corrupted. Here are the steps they took:
Here's the quote from the user:
|
@mbjones Looking a little more into this issue when loading the data table in the editor. Looked at the /meta calls that were returning 401 errors and they don't seem to be authenticating the token correctly. The token is there and it is valid but the following Metacat error is logged. Error for https://data.ess-dive.lbl.gov/catalog/d1/mn/v2/meta/ess-dive-5c5a631453d321e-20231130T213147717572
|
@mburrus was this also for a data package with 100+ files? We are investigating whether MetacatUI is creating faulty resource maps. If that's the case, it would be uploaded successfully but not added to the solr index as a resource map. So the object would exist in Metacat, but would appear like a lone data object. I'm wondering if you would be able to check whether any objects like this exist for the users that lost their resource maps in the process of updating their datasets? |
@robyngit After some investigation with @taojing2002 on Friday, we discovered that there may be some issues with with the CN resolving the user's permissions if they have edit permissions by way of a group as evidenced by my previous comment. We did a quick little test where I gave myself permissions directly and the 401 errors went away. However, another issue still remains. I am still getting many errors in the network tab of Chrome: "(failed) net::ERR_FAILED" for many of the 100 simultaneous HTTP GET calls that are sent. The Another thought, I have noticed that the metadata from these calls is being used to populate the data table columns. Is it possible to retrieve this information from solr in less calls instead? |
When loading a dataset with over 100 data files in the Metadata Editor, users may encounter an error message "You are not authorized to edit this data set." However, this error message is not always displayed, and the page may appear to load normally. Upon inspecting the JavaScript console, a 401 Unauthorized error is visible.
Steps to Reproduce:
Expected Behavior:
The Metadata Editor should load the dataset without errors, regardless of the number of data files.
Actual Behavior:
The Metadata Editor displays an error message or fails to load the dataset, with a 401 Unauthorized error visible in the JavaScript console.
Additional Context:
Screen shot of error
Screencast of Issue
https://drive.google.com/file/d/1gMWnKKXP0esWlOtjtaNQHS67xHUJ3YQ4/view?usp=sharing
Example Error Information:
The text was updated successfully, but these errors were encountered: