Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Problem with file Delete in workarea
jeffldavis2
Delete is not working as expected.
We observed that when we delete some old files (timestamp of 2005) on teamsite, they weren't deleted for the first time. But when we try delete the same files for second time, they have got deleted without any problem.
It seems for new files it is working properly. To test it, let say I upload a file to workarea and submit to the staging. Later I checked on webserver to make sure the file is being deployed. Then I delete the file (on teamsite) which gets deleted immediately.
Can somebody tell, how the delete works in teamsite? Does it compare the versions, timestamps?
-Jeff
Find more posts tagged with
Comments
nipper
Are you talking about deleted from the workarea (and the delete being pushed to staging) ? Or are you talking about the file being deleted and that delete propagating to the production server via OpenDeploy ? The latter requires that you have Do_deletes=yes in the OpenDeploy XML config.
FWIW, I always run a special delete WF when I want to delete from prod. I do not, as a rule, have deletes=yes turned on in my OD config.
jeffldavis2
I am talking about delete on teamsite and propagating that delete through OpenDeploy to delete on webserver (prod).
But the issue not related to OpenDeploy Config as you mentioned. It's working fine for newly uploaded files. we have 'Do_deletes=yes' turned on.
As I said, it's not deleting the files (only old files) for the first click. We need to retry for second time then it deletes. Any timestamp or version issues?
nipper
No, if you select the file and click delete, it should delete the file (after asking if you are sure).
Have you made any custom menu items and possibly could you be remapping the delete command ?
jeffldavis2
You are right. I select a file and click delete and then choose continue in the popup. It should delete the file.
We don't have any custom menu items in the "File" menu. But we have modified the perl script to make the delete work for our needs.
nipper
OK, you lost me with your second comment. What perl script did you modify to make delete work for your needs ?
jeffldavis2
OK sorry for the confusion. I am attaching the part of perl script. this is called when we hit delete. It stays in "$TeamSite home\httpd\iw-bin".
I deleted few methods from the code.
nipper
You trimmed it down to 161 lines. How very nice of you.
So does regular delete work ?
Also it appears you did not include the DoDelete routine