vendredi 13 mars 2015

Why do some documents get checked out when uploaded via WebDAV (Windows Explorer)?



In our productive SP2013 environment, we have a document library that is accessible via "Open in Explorer" feature. The doc lib and none of the content types do not have any mandatory fields and all doc lib settings regarding versioning are set to "no versioning"/"don't check out for edit".


Still, some (but by far not all, about 1 in 50) documents uploaded via Explorer are checked out and are from then on invisible to any server or client code. For example, we have a "move file" feature that can move documents across site collections. This fails for checked out documents because those SPFiles are invisible to server side code. We use the following code to fetch the items to be moved:



SPFolder folder = [...];
folder.Files.Cast<SPFile>().Where(f => f.Item.ID.In(sourceItemIDs)).ToList();


(The In method is an extension method implementing the SQL IN keyword logic.)


We were unable to reproduce this behavior in any other staging environment. All users have the necessary rights to upload and check in documents. All document uploads are part of a scanning process, i.e. the scanner driver uses the WebDAV folder as its output directory (we assume the scanner driver to be innocent because WebDAV itself does not have a check-in/check-out feature).


We are baffled and desperate, so any idea is welcome... ;)








0 commentaires:

Enregistrer un commentaire