Edgewall Software

Ticket #2259 (new defect)

Opened 3 years ago

Last modified 5 weeks ago

No notification email when adding an attachment to a ticket

Reported by: webkontakt@… Owned by: cboos
Priority: high Milestone: 0.12
Component: attachment Version: devel
Severity: major Keywords: notification
Cc: webkontakt@…, kazarmy@…, trac@…, mjlucas@…, stepan@…, tracedgewall@…, fredck@…, shepting@…

Description

If you just add an attachment to a ticket and change nothing else, no notification emails are sent, even if the CC-Field is filled.

Btw., it's very hard to change anything else (e.g. adding a comment) when adding an attachment, so noone does. Therefore notification is necessary there.

Attachments

trac_ticket_r2659.patch (1.2 KB) - added by trac@… 3 years ago.
patch for notification only. against r2659
trac_ticket_r2659.2.patch (1.1 KB) - added by trac@… 3 years ago.
This patch actually has contents in the email. Sorry about that…
trac_ticket_r2659.3.patch (2.6 KB) - added by trac@… 3 years ago.
full functionality requested. adds remark on timeline
trac_ticket_r6106.patch (1.4 KB) - added by sid 13 months ago.
Update previous submissions to be in line with changes in trunk

Change History

Changed 3 years ago by anonymous

  • cc webkontakt@… added

Changed 3 years ago by Markus Tacker <m@…>

It should also appear on the timeline.

Changed 3 years ago by anonymous

  • cc webkontakt@… added; webkontakt@… removed
  • version changed from 0.8.4 to 0.9b2

Changed 3 years ago by cboos

Related to #1498.

Changed 3 years ago by anonymous

  • version changed from 0.9b2 to 0.9

Changed 3 years ago by trac@…

patch for notification only. against r2659

Changed 3 years ago by trac@…

  • cc webkontakt@…, kazarmy@…, trac@… added; webkontakt@… removed
  • version changed from 0.9 to devel

Added attachment for a patch against r2659 that takes care of only the email notification portion of this ticket. Currently does nothing for adding the attachment detail to the timeline.

Changed 3 years ago by trac@…

This patch actually has contents in the email. Sorry about that...

Changed 3 years ago by trac@…

full functionality requested. adds remark on timeline

Changed 3 years ago by trac@…

  • status changed from new to closed
  • resolution set to fixed

The new patch contains both the email notification for attachments and will add the line "attachment changed" to the timeline when the ticket_show_details configuration option is set (see TracIni).

Changed 3 years ago by mgood

  • status changed from closed to reopened
  • resolution fixed deleted

Please don't mark a ticket as fixed unless the patch has been committed.

Changed 3 years ago by cboos

  • owner changed from jonas to cboos
  • status changed from reopened to new
  • milestone set to 1.0

I have now a few days off the net and, among other things, I'll test the patch (the timeline part, Emmanuel, can you take care of the evaluating the notification part?)

Changed 3 years ago by eblot

Sure, I'll do that by the end of this week

Changed 3 years ago by eblot

  • keywords notification email added

Changed 3 years ago by eblot

#2897 has been marked as a (partial) duplicate of this ticket.

Changed 3 years ago by anonymous

  • cc mjlucas@… added

Changed 3 years ago by mjlucas@…

What is the status of the defect? I have applied the patch.3 to my version of 0.9.3 for testing. The notification section (attachment.py) works as specified and seems to send the correct information to the user (Will be doing testing over the next few days)

However the modifications to web_ui.py seem to cause all sorts of problems. I don't know if it is because of changes landed after this patch was written or what but the timeline gets screwed up with tickets appearing as done on 1/1/1970 (ie. no timestamp) and the firelds appear to be out of place. I haven't looked at what exactly is returned by the SQL statement however if there is a newer patch could someone please post it online.

Changed 2 years ago by cboos

  • milestone changed from 1.0 to 0.11

This ticket will require some general changes on the way the attachment changes interfere with the main resource changes.

See also #1278, which is about a related issue, but for wiki pages.

Changed 2 years ago by athomas

r3400 adds attachment timeline events for Wiki pages and tickets.

Changed 2 years ago by sid

#2725 is similar (Ticket changetime is not updated with an attachment) and has a patch.

Changed 2 years ago by Stefan Reinauer <stepan@…>

  • cc stepan@… added
  • keywords attachment added
  • severity changed from minor to blocker

Hm, bug juggling. I came from #4075 because trac is not attaching ticket attachments to email notifications. This is a critical issue and people are urging me to drop trac for LinuxBIOS again (www.linuxbios.org) because of this.

Unfortunately above patches are a year old and don't apply to our version of trac (0.10) nor do they work if applied manually (server error).

This bug has been there since 0.8.4. Will it ever be fixed?

Changed 2 years ago by eblot

  • severity changed from blocker to major

Come on, be serious, this bug does not prevent from using Trac.

If you want it to be fixed quicker, patches are welcome. As you can see, it is scheduled for 0.11.

Changed 2 years ago by stepan@…

I am pretty serious about this one. The common sense seems to be "we dont use browsers because email clients are more concise". While shaking your head might be an appropriate reaction, I still want to keep using trac for this project.

If I manage to come up with a viable solution, I will of course drop a patch to this ticket.

Anyways, thanks for the quick life sign ;-)

Changed 2 years ago by eblot

  • keywords email removed

See also #4281.

Changed 21 months ago by cboos

  • milestone changed from 0.11 to 0.12

Changed 19 months ago by anonymous

Is the internal structure of Trac so inflexible that this can not be implemented easily? Someone complained in 0.10 and got put off until 0.11. Now it's 0.12. Why not set it to 2.0 now.

Changed 19 months ago by cboos

Ever wondered how Trac manages to go forward? Look at the timeline.

If it's 0.12, it's for a good reason, or rather 3:

  • nobody provided a patch that could accelerate the process to get this feature in
  • there is a bunch of other notification related changes that will hopefully happen in 0.12, so it's natural to group it there
  • there's already too many things scheduled for 0.11 and most likely 2/3 of the still opened 181 tickets (as of this writing) for 0.11 will go to 0.12, if not later.

Changed 17 months ago by cboos

  • cc tracedgewall@… added

#5721 was closed as duplicate. I've added its reporter to the CC: list.

Changed 13 months ago by sid

Update previous submissions to be in line with changes in trunk

Changed 13 months ago by sid

I attached an untested patch that does the same thing as the previous patch (minus the timeline work). It should conform to the changes that have happened in trunk since. Any feedback from people willing to test this would be appreciated (and greatly help its chances of getting merged to trunk sooner).

Changed 13 months ago by anton

It would be nice if this would work in the 0.11 version.

I set up a trac to communicate with some developers of another company for a project.

I set up mail notification too.

Actually this issue is a problem, because this trac is only for one project between our companies.

Since in both companies the peoples are working on more than one project, its better to be notified by mail than to log in every day (perhaps in other issue / bug systems for different projects) to look in the timeline what did change (even if nothing changed).

Changed 13 months ago by cboos

  • milestone changed from 0.12 to 0.11

sid, thanks for the patch, I did notice it but apparently forgot to test it.

I'll take care of adding that in time for 0.11, after the context-refact merge.

Changed 12 months ago by cboos

  • keywords attachment removed
  • priority changed from normal to high
  • component changed from ticket system to attachment
  • milestone changed from 0.11 to 0.12

Sorry, changed my mind. This has to be redone in a more generic way in 0.12, as it's somewhat a bit unclean to hard-code ticket notifications that way, now that the attachment module is really fully generic.

For those desperately in the need for the feature in the meantime, there's the patch...

Changed 9 months ago by niels.reedijk@…

Is this supposed to work? The patch does not apply cleanly to the current trunk, and if I manually merge it, all modules importing Attachment fail. Could I be doing something wrong, or is it the patch?

Changed 4 months ago by fredck@…

  • cc fredck@… added

Changed 4 months ago by anonymous

  • milestone changed from 0.13 to 0.12

Changed 5 weeks ago by shepting@…

  • cc shepting@… added

Has anyone been able to provide a working patch for 0.11 yet? My company would be interested in using this in a production setting, but just as niels.reedijk noted there are unrecoverable errors when applying this patch.

Changed 5 weeks ago by cboos

There's some discussion on trac-dev about a possible re-implementation of notifications (googlegroups:trac-dev:251bb1e6129dd095). In the meantime you might try the TracHacks:AnnouncerPlugin.

OTOH, adapting the patch to work with 0.11 or trunk shouldn't be hard, I'll give it a try later today.

Add/Change #2259 (No notification email when adding an attachment to a ticket)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from cboos. Next status will be 'new'
The owner will change from cboos to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.