Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 216557

Summary: [api] add option to "Replace existing attachment of the same name" when attaching files
Product: z_Archived Reporter: Geraint Howell <g.s.j.howell>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P2 CC: david.shepherd
Version: unspecifiedKeywords: helpwanted, noteworthy
Target Milestone: 3.4   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
patch
none
mylyn/context/zip none

Description Geraint Howell CLA 2008-01-25 05:16:31 EST
Build ID: M20071023-1652

Steps To Reproduce:
1. Open a task that has an attachment
2. Save that attachment on your local disk
2. Under "Attachments" click "Attach..."
3. See "File", and then "Browse"
4. Select a file you save in step 2.
5. Select "Next"

Here, there should be check box, as you see on Trac's web interface.

More information:
Comment 1 Steffen Pingel CLA 2008-01-26 17:44:43 EST
Thanks for the report. It would be good to add this option to the attachment wizard. Unfortunately the wizard is currently not extensible. Once the required  refactorings in the framework are complete this should be fairly straight forward to resolve.
Comment 2 Steffen Pingel CLA 2009-12-09 18:02:24 EST
Created attachment 154170 [details]
patch
Comment 3 Steffen Pingel CLA 2009-12-09 18:02:32 EST
Created attachment 154171 [details]
mylyn/context/zip
Comment 4 Steffen Pingel CLA 2009-12-09 18:03:19 EST
I'll merge the patch once the Mylyn version is bumped to 3.4 to allow for API changes.
Comment 5 Steffen Pingel CLA 2010-02-03 14:46:19 EST
Committed patch to head.