You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering a 404 error when attempting to create a new dataset using an editor user account. The dataset is created successfully, but the response code indicates the resource cannot be found. This issue does not occur when using a sysadmin account (API token).
Steps to reproduce
In Postman, create a POST request to: {{host}}/api/3/action/package_create
Set the "Authorization" header to: {{token}}
Include the following JSON body in the request:
{
"tag_string": [
"test"
],
"name": "doi-test",
"author": "Flavio Francisco (Royal Netherlands Institute for Sea Research)",
"subject": "Earth and Environmental Sciences",
"author_email": "user@nioz.nl",
"owner_org": "nioz",
"private": true,
"doi": "10.33591/nioz/7b.b.9g",
"license_id": "CC0-1.0",
"maintainer": "Flavio",
"maintainer_email": "user@nioz.nl",
"notes": "This is a test",
"title": "DOI TEST",
"url": "https://doi.org/10.33591/nioz/7b.b.9g",
"extras": [],
"creators": "[{\"firstname\":\"Flavio\",\"lastname\":\"Francisco\",\"orcid\":null,\"affiliation\":\"Royal Netherlands Institute for Sea Research\",\"iscorrespondingauthor\":true,\"contactemailaddress\":\"user@nioz.nl\",\"formatted\":\"Flavio Francisco - Royal Netherlands Institute for Sea Research - ORCID: - Corresponding Author - user@nioz.nl\"}]",
"dataset_persistent_id": "DOI:10.33591/nioz/7b.b.9g",
"distribution_date": "2024-03-19",
"deposit_date": "2024-03-19",
"depositor": "Flavio Francisco (user@nioz.nl)",
"others_id": "DOI:10.33591/nioz/7b.b.9g; DAS:84989278-89a6-4e50-8b9d-e3a76f4b265c",
"contributor": "NIOZ Royal Netherlands Institute for Sea Research in cooperation with Utrecht University",
"distributor": "Research Data Management(NIOZ Royal Netherlands Institute for Sea Research)"
}
Expected behavior
The request should successfully create a new dataset and return a response code of 200 (OK) or 201 (Created).
Additional details
N/A
The text was updated successfully, but these errors were encountered:
flaviofrancisco
changed the title
404 Error when creating a package/dataset from the API with an editor user
Editor User Permissions Issue: Dataset Created but 404 Response (API)
Mar 20, 2024
CKAN version
2.10.4
Describe the bug
I am encountering a 404 error when attempting to create a new dataset using an editor user account. The dataset is created successfully, but the response code indicates the resource cannot be found. This issue does not occur when using a sysadmin account (API token).
Steps to reproduce
Expected behavior
The request should successfully create a new dataset and return a response code of 200 (OK) or 201 (Created).
Additional details
N/A
The text was updated successfully, but these errors were encountered: