Issue 27 in feedjack: feedjack_update.py fails when feed contains long tag names

1 view
Skip to first unread message

codesite...@google.com

unread,
May 16, 2008, 11:28:45 AM5/16/08
to feedjack...@googlegroups.com
Issue 27: feedjack_update.py fails when feed contains long tag names
http://code.google.com/p/feedjack/issues/detail?id=27

New issue report by i...@excess.org:
Steps to reproduce:
1. add a feed that contains articles with tags longer than 50
characters (eg.
http://www.digital-copyright.ca/node/feed )
2. run feedjack_update.py

Script fails with multiple python tracebacks, the important part being:

Traceback (most recent call last):
File
"/usr/local/lib/python2.3/site-packages/Feedjack-0.9.12-py2.3.egg/EGG-INFO/scripts/feedjack_update.py",
line 247, in process_feed
process_entry(entry, fpf, feed, postdict, options)
File
"/usr/local/lib/python2.3/site-packages/Feedjack-0.9.12-py2.3.egg/EGG-INFO/scripts/feedjack_update.py",
line 116, in process_entry
(link, title, guid, author, author_email, content, date_modified,
fcat, \
File
"/usr/local/lib/python2.3/site-packages/Feedjack-0.9.12-py2.3.egg/EGG-INFO/scripts/feedjack_update.py",
line 105, in get_entry_data
fcat = get_tags(entry)
File
"/usr/local/lib/python2.3/site-packages/Feedjack-0.9.12-py2.3.egg/EGG-INFO/scripts/feedjack_update.py",
line 67, in get_tags
cobj.save()
File
"/usr/local/lib/python2.3/site-packages/Feedjack-0.9.12-py2.3.egg/feedjack/models.py",
line 147, in save
super(Tag, self).save()
File "/usr/local/lib/python2.3/site-packages/django/db/models/base.py",
line 261, in save
','.join(placeholders)), db_values)
File
"/usr/local/lib/python2.3/site-packages/django/db/backends/postgresql/base.py",
line 47, in execute
return self.cursor.execute(smart_str(sql, self.charset),
self.format_params(params))
ProgrammingError: ERROR: value too long for type character varying(50)

INSERT INTO "feedjack_tag" ("name") VALUES ('getting open source logic into
government (gosling)')

Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply all
Reply to author
Forward
0 new messages