diff --git a/source/java/org/alfresco/filesys/smb/server/NTProtocolHandler.java b/source/java/org/alfresco/filesys/smb/server/NTProtocolHandler.java index 5bc7fc7afb..caf0ba50d3 100644 --- a/source/java/org/alfresco/filesys/smb/server/NTProtocolHandler.java +++ b/source/java/org/alfresco/filesys/smb/server/NTProtocolHandler.java @@ -5678,9 +5678,21 @@ public class NTProtocolHandler extends CoreProtocolHandler prms.reset(outPkt.getBuffer(), SMBSrvPacket.PARAMWORDS + 4); + // Fake the oplock for certain file types + + boolean fakeOpLocks = false; + String fname = params.getPath().toUpperCase(); + + if ( fname.endsWith( ".URL")){ + + // Fake the oplock + + fakeOpLocks = true; + } + // Check if oplocks should be faked - if (FakeOpLocks) + if (fakeOpLocks == true) { // If an oplock was requested indicate it was granted, for now