Skip to content

Commit

Permalink
Now skip the tag 'owner' in the PROPFIND response when the lock has n…
Browse files Browse the repository at this point in the history
…o owner content
  • Loading branch information
AdrienCastex committed Jun 6, 2017
1 parent c81190d commit e3d81c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/server/commands/Propfind.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ function default_1(arg, callback) {
activelock.ele('D:lockscope').ele('D:' + lock.lockKind.scope.value.toLowerCase());
activelock.ele('D:locktype').ele('D:' + lock.lockKind.type.value.toLowerCase());
activelock.ele('D:depth').add('Infinity');
activelock.ele('D:owner').add(lock.owner);
if (lock.owner)
activelock.ele('D:owner').add(lock.owner);
activelock.ele('D:timeout').add('Second-' + (lock.expirationDate - Date.now()));
activelock.ele('D:locktoken').ele('D:href').add(lock.uuid);
activelock.ele('D:lockroot').ele('D:href').add(arg.fullUri(path_1).replace(' ', '%20'));
Expand Down
3 changes: 2 additions & 1 deletion src/server/commands/Propfind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ export default function(arg : MethodCallArgs, callback)
activelock.ele('D:lockscope').ele('D:' + lock.lockKind.scope.value.toLowerCase())
activelock.ele('D:locktype').ele('D:' + lock.lockKind.type.value.toLowerCase())
activelock.ele('D:depth').add('Infinity')
activelock.ele('D:owner').add(lock.owner)
if(lock.owner)
activelock.ele('D:owner').add(lock.owner)
activelock.ele('D:timeout').add('Second-' + (lock.expirationDate - Date.now()))
activelock.ele('D:locktoken').ele('D:href').add(lock.uuid)
activelock.ele('D:lockroot').ele('D:href').add(arg.fullUri(path).replace(' ', '%20'))
Expand Down

0 comments on commit e3d81c8

Please sign in to comment.