Modify ↓
Opened 17 years ago
Closed 13 years ago
#3482 closed defect (wontfix)
Python Error on save new CoreReview
| Reported by: | Owned by: | Marc | |
|---|---|---|---|
| Priority: | normal | Component: | PeerReviewPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Stjujsckij Nickolaj | Trac Release: | 0.10 |
Description
On Trac 0.10.4 (standalone server using PostgreSQL DB), python 2.3.3 (64 bit), running on a SuSE 9 server, I installed the current svn version of the plugin (2008-07-30).
When creating a new codereview, I get following Python error / trace when clicking on button "add review", after adding one file and the title+comment:
Traceback (most recent call last):
File "/usr/lib64/python2.3/site-packages/trac/web/main.py", line 406, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib64/python2.3/site-packages/trac/web/main.py", line 237, in dispatch
resp = chosen_handler.process_request(req)
File "build/bdist.linux-x86_64/egg/codereview/peerReviewNew.py", line 137, in process_request
File "build/bdist.linux-x86_64/egg/codereview/peerReviewNew.py", line 177, in createCodeReview
File "build/bdist.linux-x86_64/egg/codereview/CodeReviewStruct.py", line 50, in save
File "/usr/lib64/python2.3/site-packages/trac/db/util.py", line 51, in execute
return self.cursor.execute(sql)
File "/usr/lib64/python2.3/site-packages/trac/db/util.py", line 51, in execute
return self.cursor.execute(sql)
IntegrityError: NULL-Value in column »idreview« hurts Not-Null-Constraint
Any help is appreciated.
Attachments (0)
Change History (3)
comment:1 Changed 16 years ago by
| Cc: | Stjujsckij Nickolaj added; anonymous removed |
|---|
comment:2 Changed 14 years ago by
| Owner: | changed from Sebastian Marek to Marc |
|---|
comment:3 Changed 13 years ago by
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
0.10 is no longer supported. The plugin should be database agnostic now with the latest trunk code.
Note: See
TracTickets for help on using
tickets.



Here's where the problem lurks.
When inserted in PgSQL table, ID can't be set to NULL.
Can't say how this could be handled in a generic with SQLite way. Probably using named VALUES like this:
Don't forget to see into ticket 4118 regarding letter case in table / column names.