Custom Query (2152 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (1015 - 1017 of 2152)

Ticket Resolution Summary Owner Reporter
#1056 fixed User links for OpenID users are broken dread pudo

Reported by pudo, 3 years ago.

Description

Use case:

  • Login using OpenID
  • Click on 'My account' - results in 404

Solutions:

  • User user.id instead of their name
  • Escape the URL properly.
#1057 fixed JSONP parameter isn't escaped dread

Reported by dread, 3 years ago.

Description
$ curl "http://127.0.0.1:5000/api/rest/package/annakarenina?callback=<script>jsoncallback"

gives:

<script>jsoncallback({"id": "c10ebd31-5b45-4f6f-885d-dca9b18caec4", "name": "annakarenina", "title": "A Novel By Tolstoy",

which could run script code in the client who made the call.

One idea for filtering: http://tav.espians.com/sanitising-jsonp-callback-identifiers-for-security.html Maybe just better to have a restricted whitelist of characters to be even more sure.

Same as: https://trac.dataco.coi.gov.uk/projects/datagov/ticket/906

#1058 fixed Give 400 error (not 500) for invalid locale or package_form dread dread

Reported by dread, 3 years ago.

Description

Examples which prompt annoying exception emails:

http://ckan.net/locale?locale=ja
Module ckan.i18n:21 in set_session_locale
           assert locale in _KNOWN_LOCALES

A bot has caused these:

http://ca.ckan.net/package/new?package_form=gov
Module ckan.forms.registry:32 in get_fieldset
               raise ValueError('Could not find package_form name %r in those found: \n%r' % (package_form, [en.name for en in entrypoints]))
ValueError: Could not find package_form name u'gov)' in those found: ['gov', 'standard', 'ca']
Note: See TracQuery for help on using queries.