{"id":50876,"date":"2020-08-05T11:48:29","date_gmt":"2020-08-05T11:48:29","guid":{"rendered":"https:\/\/owncloud.com\/?p=50876"},"modified":"2021-07-02T10:38:06","modified_gmt":"2021-07-02T10:38:06","slug":"whats-new-in-owncloud-server-10-5-file-locking","status":"publish","type":"post","link":"https:\/\/owncloud.com\/de\/blogs\/whats-new-in-owncloud-server-10-5-file-locking\/","title":{"rendered":"What\u2019s new in ownCloud Server 10.5: File Locking"},"content":{"rendered":"<p><strong>The Problem:\u00a0<\/strong>While you work on the file, one of your colleagues also starts working on it. She then saves her changes to the file. Later you also save, unintentionally overwriting her changes and wiping out the progress she has made.<\/p>\n<p><strong>The Solution:\u00a0<\/strong>With the new ownCloud 10.5, users can explicitly lock files while they work on them. Every user with access to a file can lock it. Locks automatically expire after a certain amount of time, by default after 30 minutes. Before the lock expires automatically, only the user that locked the file can unlock it.<\/p>\n<p><strong>Important:\u00a0<\/strong>This feature is disabled by default, because it allows users to lock other user&#8217;s files *exclusively*, so even the owner can&#8217;t unlock them. Before activating this feature, please double-check if this is the behaviour you want. Please see\u00a0<a href=\"https:\/\/doc.owncloud.com\/server\/10.5\/admin_manual\/release_notes.html#file-locking-in-the-web-interface\" target=\"_blank\" rel=\"noopener noreferrer\">the release notes<\/a> for information on how to enable it. If you\u2019re fluent in CLI, just enable it through this command:<br \/>\n<code>occ config:app:set files enable_lock_file_action --value yes<\/code><\/p>\n<p><strong>Admin docs:<\/strong> <a href=\"https:\/\/doc.owncloud.com\/server\/10.6\/admin_manual\/configuration\/files\/manual_file_locking.html\">doc<\/a><a href=\"https:\/\/doc.owncloud.com\/server\/10.6\/admin_manual\/configuration\/files\/manual_file_locking.html\">.owncloud.com<\/a><\/p>\n<div id=\"attachment_52737\" style=\"width: 1932px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-52737\" class=\"wp-image-52737 size-full\" src=\"https:\/\/owncloud.com\/wp-content\/uploads\/2020\/08\/Greenshot-2020-08-05-13.16.24-1.png\" alt=\"Screenshot of the user interface when locking a file in the Web App\" width=\"1922\" height=\"1746\" srcset=\"https:\/\/owncloud.com\/wp-content\/uploads\/2020\/08\/Greenshot-2020-08-05-13.16.24-1.png 1922w, https:\/\/owncloud.com\/wp-content\/uploads\/2020\/08\/Greenshot-2020-08-05-13.16.24-1-1280x1163.png 1280w, https:\/\/owncloud.com\/wp-content\/uploads\/2020\/08\/Greenshot-2020-08-05-13.16.24-1-980x890.png 980w, https:\/\/owncloud.com\/wp-content\/uploads\/2020\/08\/Greenshot-2020-08-05-13.16.24-1-480x436.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) and (max-width: 1280px) 1280px, (min-width: 1281px) 1922px, 100vw\" \/><p id=\"caption-attachment-52737\" class=\"wp-caption-text\">Screenshot of the user interface when locking a file in the Web App<\/p><\/div>\n<p><strong>The Admin Angle:\u00a0<\/strong>You can shorten or lengthen the lock period in their admin section. <a class=\"wpil_keyword_link \" href=\"https:\/\/owncloud.com\/features\/file-locking\/\"  title=\"File locking\" data-wpil-keyword-link=\"linked\">File locking<\/a> prevents file conflicts, keeps versioning and activity logging clean and is easy to use through the Web App. File Locking is only available in the Web App for now, but while a file is locked, the Mobile Apps and the Desktop Clients can\u2019t save changes to it.<\/p>\n<div id=\"attachment_51765\" style=\"width: 2152px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-51765\" class=\"wp-image-51765 size-full\" src=\"https:\/\/owncloud.com\/wp-content\/uploads\/2020\/09\/Screenshot-2020-08-05-at-12.28.08.png\" alt=\"ownCloud File Locking\" width=\"2142\" height=\"1732\" srcset=\"https:\/\/owncloud.com\/wp-content\/uploads\/2020\/09\/Screenshot-2020-08-05-at-12.28.08.png 2142w, https:\/\/owncloud.com\/wp-content\/uploads\/2020\/09\/Screenshot-2020-08-05-at-12.28.08-1280x1035.png 1280w, https:\/\/owncloud.com\/wp-content\/uploads\/2020\/09\/Screenshot-2020-08-05-at-12.28.08-980x792.png 980w, https:\/\/owncloud.com\/wp-content\/uploads\/2020\/09\/Screenshot-2020-08-05-at-12.28.08-480x388.png 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) and (max-width: 1280px) 1280px, (min-width: 1281px) 2142px, 100vw\" \/><p id=\"caption-attachment-51765\" class=\"wp-caption-text\">ownCloud File Locking<\/p><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>File locking allows you to exclusively work on files for a period of time, preventing users from accidentally interfering with others&#8216; work.<\/p>\n","protected":false},"author":7,"featured_media":50877,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","inline_featured_image":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-50876","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-owncloud-product"],"acf":[],"_links":{"self":[{"href":"https:\/\/owncloud.com\/de\/wp-json\/wp\/v2\/posts\/50876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/owncloud.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/owncloud.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/owncloud.com\/de\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/owncloud.com\/de\/wp-json\/wp\/v2\/comments?post=50876"}],"version-history":[{"count":5,"href":"https:\/\/owncloud.com\/de\/wp-json\/wp\/v2\/posts\/50876\/revisions"}],"predecessor-version":[{"id":62482,"href":"https:\/\/owncloud.com\/de\/wp-json\/wp\/v2\/posts\/50876\/revisions\/62482"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/owncloud.com\/de\/wp-json\/wp\/v2\/media\/50877"}],"wp:attachment":[{"href":"https:\/\/owncloud.com\/de\/wp-json\/wp\/v2\/media?parent=50876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/owncloud.com\/de\/wp-json\/wp\/v2\/categories?post=50876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/owncloud.com\/de\/wp-json\/wp\/v2\/tags?post=50876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}