Modify

Opened 17 years ago

Closed 17 years ago

#1855 closed defect (duplicate)

Cannot add a comment to a line

Reported by: c.posluschni@… Owned by: Team5
Priority: highest Component: PeerReviewPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.10

Description

If I try to add a comment on a line (open dialog, type in a few words and click Add comment) Loading... appears (see pic 1). A refresh leads to No Comments on line (see pic 2). After a click on Add Comment(pic 2) the following error occurs:

Traceback (most recent call last):
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.4/site-packages/TracCodeReview-2.0dev-py2.4.egg/codereview/peerReviewCommentCallback.py", line 44, in process_request
    self.createComment(req)
  File "/usr/local/lib/python2.4/site-packages/TracCodeReview-2.0dev-py2.4.egg/codereview/peerReviewCommentCallback.py", line 114, in createComment
    if hasattr(upload, 'filename') and upload.filename:
AttributeError: 'unicode' object has no attribute 'filename'

The file is already patched:
line 114, in createComment
if hasattr(upload, 'filename') and upload.filename:

Operating System: SLES 10
Trac 0.10.3.1

Attachments (2)

peer_loading.jpg (7.8 KB) - added by c.posluschni@… 17 years ago.
pic 1: Loading…
peer_nocomment.jpg (9.0 KB) - added by c.posluschni@… 17 years ago.
pic 2 : No comment

Download all attachments as: .zip

Change History (9)

Changed 17 years ago by c.posluschni@…

Attachment: peer_loading.jpg added

pic 1: Loading...

Changed 17 years ago by c.posluschni@…

Attachment: peer_nocomment.jpg added

pic 2 : No comment

comment:1 Changed 17 years ago by anonymous

Priority: normalhigh

comment:2 Changed 17 years ago by c.posluschni@…

Priority: highhighest

Tested with Firefox 2.0.0.1 and IE 6.0

comment:3 Changed 17 years ago by anonymous

Severity: normalblocker

Additional informations:

  • Apache: 2.2.3
  • mod_python: 3.1.3
  • python: 2.4.2

comment:4 Changed 17 years ago by c.posluschni@…

Resolution: duplicate
Status: newclosed

fixed with #1727

comment:5 Changed 17 years ago by sassyn@…

Resolution: duplicate
Status: closedreopened

can someone attach the patch. i still unable to fix this. i can't compile the file due to 'inconsistent use of tabs and spaces in

indentation'

i changed the tabs, spaces etc... but no luck

comment:6 Changed 17 years ago by c.posluschni@…

#1727 did not fix the problem for me too.

Because #1727 did not work, I commented out the lines where the Attach-File-Checkbox is implemented in peerReviewCommentCallback.cs

Attention: You are not able to add attached files with this workaround.

comment:7 Changed 17 years ago by Joseph Lombrozo

Resolution: duplicate
Status: reopenedclosed

Sorry, should have mentioned, grab the latest source, that version should work just fine. Myself and sontek have taken over maintenance of this plugin. Things should be changing rapidly here, so keep an eye on the wiki page!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Team5.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.