TitleNo way to delete an attachment
Date01-Sep-2005 07:39:37 EEST
VersionJSPWiki v2.2.28
Submitter202.73.206.161
Bug criticalityEnhancementRequest
Browser versionMozilla
Bug statusClosedBug
PageProvider used
Servlet ContainerWhatever jspwiki.org is running
Operating SystemWhatever jspwiki.org is running
URLAny page
Java versionWhatever jspwiki.org is running

I like the attachments feature, but can't see how to delete an attachment once I grow weary of it (eg: I have a new 'version' of the attachment)

Is there something I'm missing, or is this a feature request?

Thanks very much

Kerry Sainsbury kerry@fidelma.com


You can see "Delete this page" on the Attachment Info page (click More Info...). Only an admin can delete attachments on this site. You can also upload new versions of the attachment there.

-- JanneJalkanen


This is not the required functionality - I would like to delete individual attachments, not the entire page - and I can see no UI for this, even on my own JSPWiki installation. Is there any way to do this?

-- AntranigBasman


Click on the picture of the paperclip; that will take you to the attachment info page. Click on "Delete this page".

-- JanneJalkanen


Thanks for the quick response - I see this control now. This works fine - you got yourself a new user :P But just by the by, any chance of getting this button relabelled? Calling the deletion target a "page" isn't entirely clear. Cheers,

-- AntranigBasman


You're quite right; it's just one of those things that escape poor developers ;-)

-- JanneJalkanen


However, I am experiencing some bug with attachements that causes a 404 error when I try to access my supposed attachment... so I can't get it, I can't delete it....

HTTP Status 404 - /JSPWiki/attach/TRUSTWSQuestions/TRUSTWebserviceArch1.png

type Status report

message /JSPWiki/attach/RUSTWSQuestions/RUSTWebserviceArch1.png

description The requested resource (/JSPWiki/attach/RUSTWSQuestions/RUSTWebserviceArch1.png) is not available. Apache Tomcat/5.0.25

--RobCranfill, 22-Dec-2005


This sounds very strange. Are you sure that your web.xml is in order? Can you download these attachments?

--JanneJalkanen, 22-Dec-2005


I am facing difficulty deleting attachments.
What is the username for admin? I have the admin password, but when I try to delete an attachment, I can't figure out the username for admin. I tried 'Administrator', 'administrator'. 'admin' etc. But the panel refreshes and asks for name again. BTW, I verified the password I am using with jspwiki.properties file and it is current.

--NithyaVijayakumar, 25-Jan-2006


The button is now called "Delete attachment", which closes this bug.

Nithya: you must be using the new authentication system: please see Security2.3 for more information. The admin password is slightly different thing - it only allows you to set up the Install.jsp.

-- JanneJalkanen


I can go to the attachment info page OK using the paperclip. But once there, I don't see a way to delete the attachment. What would be the reason for that? The fact that I am not logged in as an administrator?

--Nikunj, 05-May-2006

That's exactly the reason. Because deleting is a destructive operation, it's currently enabled only for admins.


I want to REMOVE an attachment, not delete the attachment.

I don't want to delete the attachment file from the database; if I did that then I couldn't roll-back to a previous version. However, I do want to allow the removal of the attachment from a page. (maybe later the admin. can remove unused attachments from the DB)

--Steve Gall, 23-Aug-2006


Ah. That is not possible - the attachment always belongs to a page, and there can be no orphan attachments. We hope to change this in 3.0.

Could you file an Idea for it so that we don't forget? Describe in as much detail as you can :)

-- JanneJalkanen


What setting controls the visibility of the 'Delete Attachement' button. For example the test attachment I just uploaded here can't be delete, nor can attachments on my Wiki. On my Wiki (which has been upgraded through a few versions) I just ran the Install.jsp and created the Administrator account, but even for admin, the button simply doesn't appear. I noticed in the jspwiki sandbox that the delete attachment button appears, so what's the setting?

Solved: WikiAttachments had a reference to the jspwiki.policy file which got me going in the right direction. I checked it, and the permission 'AllPermission' granted to "Admin" didn't have the updated Wiki name. Fixing the Wikiname and bouncing lets Admin delete attachments.

-- BrianBuchanan


Actually, it would be nice to allow by default to delete attachments uploaded by the same user that wants to delete it. (Perhaps, I just do not know how to turn such a feature on.)

--Alex Varin, 25-Jan-2007


Is there a way to revert to a previous version of the attachement without re-loading over the top of the last one. Similiar to restore previous version on pages?

--Genhob, 08-Feb-2007


It's a feature I've sorely missed as well... So we'll certainly do it at some point.

--JanneJalkanen, 10-Feb-2007


I find the lack of a "delete attachment" function for regular users to be quite confusing and annoying.

Currently in JSPWiki, the list of attachments for the page not really associated with the page's history. I would find it more intuitive if the list of attachments was associated with every version of the page. Then anyone who could edit the page could "remove" an attachment; this would count as a page edit, but would show up in history, and you could still retrieve the old attachment from history if you really wanted. A permanent delete would remain an admin-only function since it destroys information.

--JesseGlick, 21-May-2007

cannot see a delete attachment 'button' on my wiki "Attachment Info Page" Maybe it is a version issue???

Cindi


My Admin group is working, and i can delete attachments. Here's my stuffs :

  • WEB-INF/jspwiki.policy,at the very bottom of my file, i use these lines
grant signedBy "jspwiki",
  principal com.ecyrd.jspwiki.auth.GroupPrincipal "Admin" {
    permission com.ecyrd.jspwiki.auth.permissions.AllPermission "Our JSPWiki";
};
grant signedBy "jspwiki",
  principal com.ecyrd.jspwiki.auth.authorize.Role "Admin" {
    permission com.ecyrd.jspwiki.auth.permissions.AllPermission "Our JSPWiki";
};
  • And then i accessed the group Admin using this url : http://myserver/Group.jsp?group=Admin
  • One can then add user logins in the list to be acknowledged as members of Admin group
  • If the group's not available, then you'd have to create it using "Create Group" tab
  • If you add someone using the app like the approach above, you dont need to restart your webapp server (mine is Apache Tomcat)
  • If you edit directly the files of WEB-INF/userdatabase.xml and WEB-INF/groupdatabase.xml directly, you'd have to restart your webapp
  • If there's anything missing, please add .. =)

Albert Kam

--Albert Kam, 10-Nov-2008 16:09


Users,

the JSPWiki development team has switched to the Apache JIRA bug tracker some time ago. Please report new bugs there or use the JSPWiki Mailing List to get support.

--Florian Holeczek

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-26) was last changed on 10-Nov-2008 17:30 by Florian Holeczek