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

Content not found when fetching a CardDav resource #247

Open
WhyNotHugo opened this issue Mar 21, 2023 · 2 comments
Open

Content not found when fetching a CardDav resource #247

WhyNotHugo opened this issue Mar 21, 2023 · 2 comments

Comments

@WhyNotHugo
Copy link
Contributor

When executing a REPORT request querying the data of an address book:

            
<C:addressbook-multiget
	xmlns="DAV:"
	xmlns:C="urn:ietf:params:xml:ns:carddav">
	<prop>
		<getetag/>
		<C:address-data/>
	</prop>
	<href>/user/contacts/BYWFyAHuEcfxk1uA/PhstoGGSIYNL.ics</href>
</C:addressbook-multiget>

I'm getting a confusing response which indicates that the item exists but doesn't exist. I'm not quite sure how to interpret this:

<ns0:multistatus
	xmlns:ns0="DAV:"
	xmlns:ns1="urn:ietf:params:xml:ns:carddav">
	<ns0:response>
		<ns0:href>/user/contacts/BYWFyAHuEcfxk1uA/PhstoGGSIYNL.ics</ns0:href>
		<ns0:propstat>
			<ns0:status>HTTP/1.1 200 OK</ns0:status>
			<ns0:prop>
				<ns0:getetag>"bf7ed972a0252c2c09b854eeffcf7d9359372ec7"</ns0:getetag>
			</ns0:prop>
		</ns0:propstat>
		<ns0:propstat>
			<ns0:status>HTTP/1.1 404 Not Found</ns0:status>
			<ns0:prop>
				<ns1:address-data />
			</ns0:prop>
		</ns0:propstat>
	</ns0:response>
</ns0:multistatus>

This is an integration test of mine, and I'm creating the resource immediately before querying it, and it's listed as existing when I enumerate items via PROPFIND. Am I doing something wrong here, or what exactly does this means?

An equivalent query for CalDav works fine.

@jelmer
Copy link
Owner

jelmer commented Mar 22, 2023

What are the contents of that file? It seems like you're trying to retrieve address-data from something that is a calendar file (.ics?)?

@WhyNotHugo
Copy link
Contributor Author

WhyNotHugo commented Mar 22, 2023

Oh, it's vcard data, but I got the extension wrong when uploading it. I'll try again tomorrow with the right extension.

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

No branches or pull requests

2 participants