cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to delete files

ddelapasse
Champ in-the-making
Champ in-the-making
I have a 4.2.f installation and am sometimes unable to delete files. No spaces or strange characters in the names.  I am using the admin account and the files were created by me.  When I use share it just says "Can not delete document 'x'".  I also tried using this html (I'm following the Alfresco CMIS book as a guide) it fails with a 403.  I switched to try http instead of https and it got a 301 (POST) which redirected itself to a GET which returned 200 (this makes no sense to me).  Example html is below.


Any ideas?  I see nothing in any of the logs.

The forum seems to intercept my html, but here's the form section with – instead of the <>.


      – form name="deleteDocumentForm" action="https://mydomain.com/alfresco/cmisbrowser/673c175a-5396-4632-9803-8f578ee3dfd8/root?alf_ticket=TICKE..." method="post" enctype="multipart/form-data" –
         –input name="cmisaction" type="hidden" value="delete" /–
         –input type="submit" value="Delete Document" /–
      /– end of form section

2 REPLIES 2

ddelapasse
Champ in-the-making
Champ in-the-making
I was able to delete most of the documents by using Explorer.  However, there's a folder that was created by replication from another server that I can't remove!  It has several "P:trx:*" aspects, but trying to remove them programmatically I get an exception that the node is locked.  How can I unlock the folder?  My app is Java and I have the CmisSession and also the AlfrescoFolder objects, but all I can find is:

cmisSession.getBinding().getVersioningService().cancelCheckOut(repoId, objectId, null);

which throws an exception.  I think I need the lockService, but I don't know how to get a reference to that.

ddelapasse
Champ in-the-making
Champ in-the-making
I have narrowed down the problem further.  The source folder has been removed, so the node reference in the destination project is now invalid/orphaned.  Any way to clear this out?  Can I just attach directly to the postgresql db and remove the reference myself?  I can see the invalid reference when using explorer so I have the id of the bad reference.

This seems like a poor design or maybe I'm doing something wrong?