Opened 18 years ago
Last modified 8 years ago
#1278 new defect
attaching file to wiki page does not register as changed page
|Reported by:||Owned by:|
|Severity:||normal||Keywords:||wiki attach history changes|
When a file is attached to a wiki page, the page does not show a change in its page history and the page does not show up on the list of RecentChanges or timeline.
For example, I attached a file to SandBox/SubPage on 2005-03-10, but that page's history indicates that it was last modified on 2004-11-16.
Change History (11)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
|Milestone:||0.10 → 0.11|
This ticket will require some general changes on the way the attachment changes interfere with the main resource changes, and I think it's too late to do that in 0.10 now.
comment:3 by , 17 years ago
#2725 is similar (Ticket changetime is not updated with an attachment) and has a patch.
comment:4 by , 16 years ago
|Milestone:||0.11 → 0.12|
I closed #2725 as a duplicate of this one, as the data model changes will affect the attachments for any resources (wiki pages, tickets, and by then, the milestone and probably a few others…).
comment:5 by , 15 years ago
Should the attachment module really have such consequences for its 'parent' on the model level? With the current (0.11b1+) status of disconnected resources and loosly-coupled code, I suppose it is up the parent resource to decide if it wants to register the change in any way.
So, if the Wiki wants to save a new version of itself to mark the event, can't it just implement the
IAttachmentChangeListener and log a new version with a comment that attachment 'somefile.txt' is added or deleted?
That should then of course trigger a call to
IWikiChangeListener, show the new version in timeline and so on…
comment:6 by , 15 years ago
|Component:||wiki system → attachment|
comment:7 by , 13 years ago
I'm using Trac 0.11.7. Any idea to fix the issue "ticket changetime is not updated with an attachment" on this version?
I have tried the patch attached on ticket #2725. But it have following error, AttributeError: 'Attachment' object has no attribute 'parent_type'
comment:8 by , 13 years ago
|Milestone:||next-major-0.1X → unscheduled|
comment:9 by , 13 years ago
|Milestone:||unscheduled → next-major-0.1X|
|Priority:||normal → lowest|
Keeping on the long term plan (comment:4).
comment:10 by , 13 years ago
comment:11 by , 8 years ago
#1498 was marked as duplicate of this one. See also #2259 which is about nearly the same issue, but for tickets.