Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[full-ci] fix space unlock #7726

Merged
merged 1 commit into from
Nov 17, 2023
Merged

[full-ci] fix space unlock #7726

merged 1 commit into from
Nov 17, 2023

Conversation

2403905
Copy link
Contributor

@2403905 2403905 commented Nov 14, 2023

Description

Related Issue

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1: Try to lock and unlock the file
curl --location --request LOCK 'https://:9200/dav/spaces/fileID' \
--header 'timeout: Second-3600' \
--header 'Content-Type: application/xml' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--data '<?xml version='\''1.0'\'' encoding='\''UTF-8'\''?>
<d:lockinfo xmlns:d='\''DAV:'\''>
    <d:lockscope>
        <d:shared/>
    </d:lockscope>
</d:lockinfo>'
curl --location --request UNLOCK 'https://:9200/dav/spaces/fileID' \
--header 'Lock-Token: <file-lock-token>' \
--header 'Content-Type: application/xml' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--data '<?xml version='\''1.0'\'' encoding='\''UTF-8'\''?>
<d:lockinfo xmlns:d='\''DAV:'\''>
    <d:lockscope>
        <d:shared/>
    </d:lockscope>
</d:lockinfo>'

Expected: API response code 204

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

go.mod Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Nov 17, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@2403905 2403905 merged commit 1134e9d into owncloud:master Nov 17, 2023
2 checks passed
ownclouders pushed a commit that referenced this pull request Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error 500 when user try to unlock file using fileid
2 participants