Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Unlock WebDav files left locked
(1 viewing) (1) Guest
Document management system (DMS) component for Joomla!

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Unlock WebDav files left locked

Unlock WebDav files left locked 10 years, 5 months ago #44832

I have an issue using WebDav with JoomDOC enterprise v.4.
One user, who I know to be on leave, left one shared file locked. Is there any way to unlock locked files?

Thank you
DL
Last Edit: 10 years, 5 months ago by davlon.
The topic has been locked.

Re: Unlock WebDav files left locked 10 years, 5 months ago #44833

I think I've found the clue myself. Only tell me whether it is correct or not.

Each time a file is edited, a ".lock" file is generated with a unique id as name, into sitename/logs/com_joomdoc-webdav-locks.
The .locks file is generated and contains all the data for the lock (username, filename etc.). During the editing of the file (lock active) the size of the file is around 250 bytes. As file editing ends, the lock file is not removed: it is left into the sitename/logs/com_joomdoc-webdav-locks directory but it only should contain "a:0:{}" and should be exactly 6 bytes size.

In order to remove locks on files left locked by users, the correct .lock file must be edited and its content replaced with "a:0:{}". The system will release the file as soon as the .lock file is adjusted.

It worked for me.
Thanks
DL
Last Edit: 10 years, 5 months ago by davlon.
The topic has been locked.

Re: Unlock WebDav files left locked 10 years, 5 months ago #44859

  • jitr
  • OFFLINE
  • ARTIO Support
  • Posts: 1432
Hello, used framework SabreDAV generates locks himself out of JoomDOC control. If users left files unlocked then you can delete whole folder /logs/com_joomdoc-webdav-locks. You can setup some cron job to cleanup locks e.q. every midnight.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný