Modify

Opened 8 years ago

Closed 7 years ago

#13114 closed defect (worksforme)

Deleting and referencing attachments not working

Reported by: Massimo Owned by: Ryan J Ollos
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords: attachments
Cc: Trac Release: 1.2

Description (last modified by Ryan J Ollos)

An attachment of a topic is not possible to delete.

Then it is not possible to reference an attachment. Having an attachment .config.cfg and a reference [attachment:.config.cfg], the hyperlink is broken.

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by Ryan J Ollos

Description: modified (diff)
Keywords: attachments added; attachements removed

comment:2 Changed 8 years ago by Ryan J Ollos

Owner: set to Ryan J Ollos
Status: newaccepted

User with DISCUSSION_ATTACH should be able to delete attachments: discussionplugin/1.2/tracdiscussion/api.py@16503:184-185#L180.

If that's not the case, I'll have to take a closer look.

The plugin could use some testing following r16492 and r16503. Please let me know if you are able to test and provide any feedback. I'll try to look at this issue within a few weeks.

Last edited 8 years ago by Ryan J Ollos (previous) (diff)

comment:3 in reply to:  2 Changed 7 years ago by Ryan J Ollos

Replying to Ryan J Ollos:

User with DISCUSSION_ATTACH should be able to delete attachments: discussionplugin/1.2/tracdiscussion/api.py@16503:184-185#L180.

Confirmed that user with DISCUSSION_ATTACH can add and delete attachments in Trac 1.2.

comment:4 in reply to:  description Changed 7 years ago by Ryan J Ollos

Resolution: worksforme
Status: acceptedclosed

Replying to Massimo:

Then it is not possible to reference an attachment. Having an attachment .config.cfg and a reference [attachment:.config.cfg], the hyperlink is broken.

It appears the realm and topic must be specified, or use topic-attachment and just specify the id. See examples: DiscussionPlugin#Attachments.

It would be nice if attachment TracLinks works better, but the plugin has no maintainer and I can only work on critical fixes.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.