Opened 10 years ago
Last modified 9 years ago
#11741 closed defect
Renaming a wiki page with attachments does not delete the old name attachment folder — at Version 1
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | 0.12.7 |
Component: | attachment | Version: | 0.12.5 |
Severity: | minor | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
I'm on Debian stable with Python 2.7.3 and installed from Debian package.
When I rename a Wiki page that contains attachments, the (empty) folder in which the attachments were stored before the page renaiming is still in the file system.
Steps to reproduce:
1) Create a new wiki page (say MyOldPage
), add an attachment (say MyAttach.tgz
). The attached file is stored in <trac-env>/attachments/wiki/MyOldPage/MyAttach.tgz
.
2) Rename MyOldPage to MyNewPage
.
The attachments are now (correctly) stored in <trac-env>/attachments/wiki/MyNewPage/
.
I still have the <trac-env>/attachments/wiki/MyOldPage
folder.
I think that the folder should be removed, since it is empty.
Change History (1)
comment:1 by , 10 years ago
Component: | wiki system → attachment |
---|---|
Description: | modified (diff) |
Keywords: | attachment removed |