Closed nesnera closed 6 years ago
Judging from the stacktrace, that seems to be a problem in the ckanext-pages extension. Please check if the problem persists if you disable that extension. If it doesn't, please create a bug for ckanext-pages instead and make to sure to mention which version of the plugin you are using. Thanks!
@torfsen this is the ckanext-pages repository 😂
@metaodi Argh. That's what happens when your head is already in week-end mode. Sorry @nesnera for the confusion!
@nesnera I cannot reproduce the problem on CKAN 2.7.0 running the latest ckanext-pages release 0.1.0. What version of ckanext-pages are you running? Does the error still occur if you disable all other plugins?
@torfsen CLI setup output:
$ pip install -e 'git+https://github.com/ckan/ckanext-pages.git#egg=ckanext-pages'
Obtaining ckanext-pages from git+https://github.com/ckan/ckanext-pages.git#egg=ckanext-pages
Cloning https://github.com/ckan/ckanext-pages.git to ./ckanext-pages
Running setup.py egg_info for package ckanext-pages
Installing collected packages: ckanext-pages
Running setup.py develop for ckanext-pages
Installing /usr/lib/ckan/default/lib/python2.7/site-packages/ckanext-pages-nspkg.pth
Creating /usr/lib/ckan/default/lib/python2.7/site-packages/ckanext-pages.egg-link (link to .)
Removing ckanext-pages 0.1.0 from easy-install.pth file
Adding ckanext-pages 0.1.0 to easy-install.pth file
Installed /usr/lib/ckan/default/src/ckanext-pages
Successfully installed ckanext-pages
Cleaning up...
Yes, I tried it with "vanilla" CKAN 2.7.0 and disabled all other plugins. And what is worst - if the plugin is activated the web application doesn't work at all (with error above). API is intact. (e.g. http://ckandevel.otevrenamesta.cz/api/util/status) Please, try create page named "Otevřená města" as item in the menu.
Finally found time to take another look at this. I can now reproduce the issue with CKAN 2.7 and ckanext-pages 0.1.0. Simply creating a page with a Unicode name still works. However, adding the page to the menu does trigger the error (assuming the page's visibility is "Public"). The problems occurs both for normal pages and for blog posts.
How to reproduce: Crate new page with unicode characters in a title e.g. "Otevřená města" CKAN "2.7.0"