Skip to content
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

Changing resource from restricted to public is not picked up by xloader #1

Open
brooks-eco opened this issue Oct 6, 2024 · 0 comments

Comments

@brooks-eco
Copy link

ckan 2.11

Steps to reproduce

  1. Create dataset - public access
  2. Create resource with a "restricted access" token (via this extension)
  3. Note that XLoader will not load to DataStore because of the restricted permission.
  4. Edit the resource restricted_api auth field back to "public"
  5. SAVE resource
  6. edit resource - load to Data Store
  7. ERROR: XLoader will not load to DataStore because of the restricted permission. (despite having changed to public). This seems like a bug - we just set the auth back to public yet xloader is still stuck.

The workaround is.

  1. delete the resource
  2. recreate and this time ensure restricted_api field is set to "public" on creation
  3. load data to the data store
  4. now can edit the resource and switch to "restricted setting" and all is good - data views and API available to logged in users only.

It would be more elegant if xloader inherited the change in auth from restricted when created with subsequent change to public .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant