Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#3665 closed defect (fixed)

Can't delete only remaining version of a Wiki page

Reported by: Christian Boos Owned by: Matthew Good
Priority: normal Milestone: 0.10
Component: wiki system Version: devel
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Delete page would have worked, but this time I wanted to see what would happen with Delete version 1 when there's only version 1, and …

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 335, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 220, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/wiki/web_ui.py", line 122, in process_request
    self._render_confirm(req, db, page)
  File "/usr/lib/python2.3/site-packages/trac/wiki/web_ui.py", line 252, in _render_confirm
    old_version = int(req.args.get('old_version', 0)) or version
ValueError: invalid literal for int(): 

Curiosity satisfied ;)

Attachments (0)

Change History (2)

comment:1 by Matthew Good, 18 years ago

Owner: changed from Christian Boos to Matthew Good
Status: newassigned

Actually the normal "Delete Version" works fine. This occurs only when you go into the "Page History" and select version "1" in both columns to diff, then click "Delete Version 1".

I've got a simple patch, so I'll go ahead and grab this.

comment:2 by Matthew Good, 18 years ago

Resolution: fixed
Status: assignedclosed

Actually you'd get the same problem clicking "Delete" going through the "Last Change" link. Fixed in r3701.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Matthew Good to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.