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

via REST API uploaded documents to not get proper permissions #12616

Open
gannebamm opened this issue Sep 25, 2024 · 1 comment
Open

via REST API uploaded documents to not get proper permissions #12616

gannebamm opened this issue Sep 25, 2024 · 1 comment
Labels
bug regression Issues related to regressions.

Comments

@gannebamm
Copy link
Contributor

Expected Behavior

If I upload a document via the REST API it belongs to my user and I can delete it. It should show this:

firefox_RrCcekaJKe

Actual Behavior

I am unable to delete it. It does not show delete:
grafik

Steps to Reproduce the Problem

import requests
url = "https://stable.demo.geonode.org/api/v2/documents"
payload = { 'title' : 'test upload of document via rest api' }
files = [ ('doc_file', ('test.txt', open('./test.txt', 'rb'), 'text/plain')) ]
headers = { 'Authorization' : 'Basic ...' } # replaced "..." with the output of $(echo -n user:password | base64) with my credentials
response = requests.request ("POST", url, data=payload, headers=headers, files=files)

Open https://stable.demo.geonode.org/catalogue/#/documents

See the delete option is missing on the new document:

Specifications

  • GeoNode version: stable.demo (4.4.0.dev0)
  • Additional details:
@gannebamm gannebamm added regression Issues related to regressions. bug labels Sep 25, 2024
@gannebamm
Copy link
Contributor Author

gannebamm commented Sep 25, 2024

@ahmdthr please take a look at this. Since I tested both development and stable demo it should not be linked to your latest PR #11872

edit: or better send this to @kilichenko-pixida since he has more free capacity.

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

No branches or pull requests

1 participant