[ckan-changes] [okfn/ckan] f6da51: Change default authorization settings
GitHub
noreply at github.com
Thu Jul 12 11:01:02 UTC 2012
Branch: refs/heads/master
Home: https://github.com/okfn/ckan
Commit: f6da5124e79d5aad6c14b5e4451e5eae07fdac9e
https://github.com/okfn/ckan/commit/f6da5124e79d5aad6c14b5e4451e5eae07fdac9e
Author: amercader <amercadero at gmail.com>
Date: 2012-07-09 (Mon, 09 Jul 2012)
Changed paths:
M ckan/config/deployment.ini_tmpl
M ckan/model/authz.py
Log Message:
-----------
Change default authorization settings
These are the new default authotization behaviours:
* Only logged in users are able to create datasets and upload files
* Only the user that created the dataset can edit it by default
NB: this will break a large number of test. They will be fixed on
following commits.
Commit: b55c85e4fbc975c4e46dad1c15151ede3f0a6b06
https://github.com/okfn/ckan/commit/b55c85e4fbc975c4e46dad1c15151ede3f0a6b06
Author: amercader <amercadero at gmail.com>
Date: 2012-07-09 (Mon, 09 Jul 2012)
Changed paths:
M ckan/tests/forms/test_authz.py
M ckan/tests/functional/api/test_activity.py
M ckan/tests/functional/test_admin.py
M ckan/tests/functional/test_authz.py
M ckan/tests/functional/test_home.py
M ckan/tests/functional/test_package.py
M ckan/tests/functional/test_package_edit_authz.py
M ckan/tests/functional/test_search.py
M ckan/tests/functional/test_storage.py
M ckan/tests/functional/test_upload.py
M ckan/tests/logic/test_action.py
M ckan/tests/models/test_authz.py
M ckan/tests/models/test_repo.py
Log Message:
-----------
Fix broken tests after default auth settings change
All tests involving non logged-in editing were failing, as this is no
longer allowed. The changes on auth settings basically mean than
everytime some editing is tested, a valid user with permissions on the
dataset must be provided, e.g.:
offset = url_for(controller='package', action='edit', id=myid)
self.app.get(offset,extra_environ={'REMOTE_USER': 'russianfan'})
or:
res = self.app.post('/api/action/resource_create', params=postparams,
extra_environ={'Authorization': api_key })
Commit: b7d224dec412bc4bba7a2c300051a3e7293ae9ce
https://github.com/okfn/ckan/commit/b7d224dec412bc4bba7a2c300051a3e7293ae9ce
Author: Ross Jones <rossdjones at gmail.com>
Date: 2012-07-12 (Thu, 12 Jul 2012)
Changed paths:
M CHANGELOG.txt
M ckan/config/deployment.ini_tmpl
M ckan/config/environment.py
M ckan/controllers/package.py
M ckan/lib/dictization/model_dictize.py
M ckan/lib/helpers.py
M ckan/lib/plugins.py
M ckan/lib/search/query.py
M ckan/logic/action/get.py
M ckan/logic/schema.py
M ckan/public/scripts/application.js
M ckan/templates/group/read.html
M ckan/templates/package/read.html
M ckan/templates/package/resource_read.html
M ckan/templates/package/search.html
M ckan/tests/lib/test_dictization.py
M ckan/tests/lib/test_tag_search.py
M ckan/tests/logic/test_action.py
M ckan/tests/logic/test_tag.py
M ckan/tests/schema/test_schema.py
M ckanext/organizations/controllers.py
M ckanext/organizations/forms.py
M ckanext/publisher_form/forms.py
M ckanext/test_tag_vocab_plugin.py
M doc/apiv3.rst
M doc/coding-standards.rst
M doc/configuration.rst
M doc/index.rst
A doc/release-cycle.rst
A doc/toolkit.rst
M doc/writing-extensions.rst
M pip-requirements.txt
M setup.py
Log Message:
-----------
Merge
Commit: ddda213155cb01d97a85758e467302f4c11a4593
https://github.com/okfn/ckan/commit/ddda213155cb01d97a85758e467302f4c11a4593
Author: Ross Jones <rossdjones at gmail.com>
Date: 2012-07-12 (Thu, 12 Jul 2012)
Changed paths:
M ckan/config/deployment.ini_tmpl
M ckan/model/authz.py
M ckan/tests/forms/test_authz.py
M ckan/tests/functional/api/test_activity.py
M ckan/tests/functional/test_admin.py
M ckan/tests/functional/test_authz.py
M ckan/tests/functional/test_home.py
M ckan/tests/functional/test_package.py
M ckan/tests/functional/test_package_edit_authz.py
M ckan/tests/functional/test_search.py
M ckan/tests/functional/test_storage.py
M ckan/tests/functional/test_upload.py
M ckan/tests/logic/test_action.py
M ckan/tests/models/test_authz.py
M ckan/tests/models/test_repo.py
Log Message:
-----------
Merge branch '2388-out-of-the-box-auth-settings'
Compare: https://github.com/okfn/ckan/compare/60a3194574cf...ddda213155cb
More information about the ckan-changes
mailing list