When sending a REST PUT request to /api/cms/{organization}/{collection}/{uuid}/ with a "tags" entry containing non-ASCII letters, the request is rejected.
Part of the stack trace (/var/www/pilvivayla-basaari/sites/basaar/apps/api/views.py in updateExistingItem):
if "tags" in DATA:
tagList = DATA["tags"]
if len(tagList) > 10:
raise TooMuchTags()
for tag in tagList:
print tag # <== THIS HERE LINE CRASHED
#check if the tag is already in db, if not create it
if Tag.objects.filter(name=tag).exists():
t = Tag.objects.get(name=tag)
t.hasTags.add(obj)
else:
tagEntry = Tag.create()
When sending a REST PUT request to
/api/cms/{organization}/{collection}/{uuid}/
with a"tags"
entry containing non-ASCII letters, the request is rejected.Part of the stack trace (
/var/www/pilvivayla-basaari/sites/basaar/apps/api/views.py
inupdateExistingItem
):