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

Return status from first propstat element when found. #530

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

dkocher
Copy link
Collaborator

@dkocher dkocher commented Jan 10, 2025

Properly map the status code in a PROPFIND response element like

  <d:response>
    <d:href>/remote.php/dav/files/test/temp1gb.bin</d:href>
    <d:propstat>
      <d:prop>
        <d:getcontentlength>1073741824</d:getcontentlength>
        <d:getcontenttype>application/octet-stream</d:getcontenttype>
        <d:getetag>"57939359671f9a2ff67213b437d26bb8"</d:getetag>
        <d:getlastmodified>Thu, 09 Jan 2025 10:10:54 GMT</d:getlastmodified>
        <d:resourcetype/>
        <oc:fileid>83a8ea67-9b48-41a1-97c0-729e8b47ddba$868b2de7-a01d-42c3-8df1-184669d5dc29!07dc62ba-6df5-4c85-880f-d905f6f6a8cb</oc:fileid>
        <oc:size>1073741824</oc:size>
        <oc:checksums>
          <oc:checksum>SHA1:2a492f15396a6768bcbca016993f4b4c8b0b5307 MD5:cd573cfaace07e7949bc0c46028904ff ADLER32:c02d0001</oc:checksum>
        </oc:checksums>
      </d:prop>
      <d:status>HTTP/1.1 425 TOO EARLY</d:status>
    </d:propstat>
  </d:response>

@dkocher dkocher force-pushed the feature/response-propstat-status branch from 2a8c7b4 to 7ee726b Compare January 10, 2025 09:18
@dkocher dkocher merged commit 0aca217 into lookfirst:master Jan 10, 2025
1 check passed
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.

1 participant