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

Błąd serwera #320

Open
marcingrudzien opened this issue Nov 27, 2017 · 2 comments
Open

Błąd serwera #320

marcingrudzien opened this issue Nov 27, 2017 · 2 comments

Comments

@marcingrudzien
Copy link

Aktualna strona: https://danepubliczne.gov.pl/dataset/siatki-podzialu-na-arkusze/resource_edit/734b7aa6-9d5c-42a9-9191-571fb4ce8bdd
Znacznik czasu: Nov 27 08:12:48.583566 2017

Z jakiej strony tu dotarłeś/aś:

Czego oczekiwałeś/aś:

@KrzysztofMadejski
Copy link
Member

Sprawdzam, co się stało:

[Mon Nov 27 08:06:55.660887 2017] [:error] [pid 22081] [remote x:p] File '/home/ckan/.virtualenvs/ckan/src/ckanext-danepubliczne/ckanext/danepubliczne/controllers/package.py', line 826 in new_resource
[Mon Nov 27 08:06:55.660892 2017] [:error] [pid 22081] [remote x:p]   return super(PackageController, self).new_resource(id, data, errors, error_summary)
[Mon Nov 27 08:06:55.660896 2017] [:error] [pid 22081] [remote x:p] File '/home/ckan/.virtualenvs/ckan/src/ckan/ckan/controllers/package.py', line 712 in new_resource
[Mon Nov 27 08:06:55.660899 2017] [:error] [pid 22081] [remote x:p]   get_action('resource_create')(context, data)
[Mon Nov 27 08:06:55.660903 2017] [:error] [pid 22081] [remote x:p] File '/home/ckan/.virtualenvs/ckan/src/ckan/ckan/logic/__init__.py', line 424 in wrapped
[Mon Nov 27 08:06:55.660907 2017] [:error] [pid 22081] [remote x:p]   result = _action(context, data_dict, **kw)
[Mon Nov 27 08:06:55.660911 2017] [:error] [pid 22081] [remote x:p] File '/home/ckan/.virtualenvs/ckan/src/ckan/ckan/logic/action/create.py', line 304 in resource_create
[Mon Nov 27 08:06:55.660915 2017] [:error] [pid 22081] [remote x:p]   _get_action('package_update')(context, pkg_dict)
[Mon Nov 27 08:06:55.660919 2017] [:error] [pid 22081] [remote x:p] File '/home/ckan/.virtualenvs/ckan/src/ckan/ckan/logic/__init__.py', line 424 in wrapped
[Mon Nov 27 08:06:55.660926 2017] [:error] [pid 22081] [remote x:p]   result = _action(context, data_dict, **kw)
[Mon Nov 27 08:06:55.660930 2017] [:error] [pid 22081] [remote x:p] File '/home/ckan/.virtualenvs/ckan/src/ckan/ckan/logic/action/update.py', line 378 in package_update
[Mon Nov 27 08:06:55.660934 2017] [:error] [pid 22081] [remote x:p]   item.after_update(context, data)
[Mon Nov 27 08:06:55.660938 2017] [:error] [pid 22081] [remote x:p] File '/home/ckan/.virtualenvs/ckan/src/ckanext-danepubliczne/ckanext/danepubliczne/schema/dataset.py', line 228 in after_update
[Mon Nov 27 08:06:55.660942 2017] [:error] [pid 22081] [remote x:p]   self._create_missing_resource_type_tags(pkg_dict)
[Mon Nov 27 08:06:55.660947 2017] [:error] [pid 22081] [remote x:p] File '/home/ckan/.virtualenvs/ckan/src/ckanext-danepubliczne/ckanext/danepubliczne/schema/dataset.py', line 280 in _create_missing_resource_type_tags
[Mon Nov 27 08:06:55.660951 2017] [:error] [pid 22081] [remote x:p]   raise Exception("Internal error while creating tags")
[Mon Nov 27 08:06:55.660955 2017] [:error] [pid 22081] [remote x:p] Exception: Internal error while creating tags

@KrzysztofMadejski
Copy link
Member

Dzień dobry,

Błąd wynika z tego, że niedozwolone są w nazwach tagów dwukropki, a także inne znaki specjalne oprócz znaków "-_." (myślnik, podkreślenie, kropka). Proponuję używać notacji "1-3000", zamiast "1:3000".

Błąd ten powinien się wyświetlać jako błąd walidacji, a nie błąd serwera. Odpowiednia poprawka (f914c79) zostanie wprowadzona w najbliższych dniach.

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

No branches or pull requests

2 participants