We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CKAN 2.10.X
The misplaced CSRF token leads to the 400 Bad Request The CSRF token is missing. error in the Bootstrap 3 'Add Collaborator' page.
400 Bad Request The CSRF token is missing.
Navigate to /dataset/collaborators/<dataset_name>/new and add a user as a collaborator.
/dataset/collaborators/<dataset_name>/new
The user should be added as a collaborator.
The fix should be a simple one:
--- a/ckan/templates-bs3/package/collaborators/collaborator_new.html +++ b/ckan/templates-bs3/package/collaborators/collaborator_new.html @@ -10,8 +10,8 @@ {% block page_heading %}{{ _('Edit Collaborator') if user else _('Add Collaborator') }}{% endblock %} </h1> {% block form %} - {{ h.csrf_input() }} <form class="dataset-form add-member-form" method='post'> + {{ h.csrf_input() }} <div class="row"> <div class="col-md-5"> <div class="form-group control-medium">
However, since the BS3 template has been removed from the master branch, where should I submit the PR?
master
The text was updated successfully, but these errors were encountered:
Hi @u10313335 a PR against dev-v2.10 would be great, thanks!
dev-v2.10
Sorry, something went wrong.
Thanks @amercader! I have created a pull request to resolve the issue.
Merge pull request #8204 from depositar/8201-bs3-collaborator-new-csrf
673ca62
[#8201] Fix misplaced CSRF token in the BS3 collaborator_new.html
amercader
No branches or pull requests
CKAN version
CKAN 2.10.X
Describe the bug
The misplaced CSRF token leads to the
400 Bad Request The CSRF token is missing.
error in the Bootstrap 3 'Add Collaborator' page.Steps to reproduce
Navigate to
/dataset/collaborators/<dataset_name>/new
and add a user as a collaborator.Expected behavior
The user should be added as a collaborator.
Additional details
The fix should be a simple one:
However, since the BS3 template has been removed from the
master
branch, where should I submit the PR?The text was updated successfully, but these errors were encountered: