Replies: 15 comments
-
The best thing would be to turn on logging for the http client stuff and take a look at the request/response stuff at the http level. |
Beta Was this translation helpful? Give feedback.
-
@lookfirst, sorry, I should have provided wire/header logs in the first place and not a sample code to reproduce, here you go:
It seems that server response is indeed empty. |
Beta Was this translation helpful? Give feedback.
-
Deleted my first response as I was quick to judge and didn't read the full log. My apologies. |
Beta Was this translation helpful? Give feedback.
-
It looks like you're getting 404, file not found back from the server after authentication.
|
Beta Was this translation helpful? Give feedback.
-
@lookfirst, thanks for the feedback. I checked the url and credentials and I can confirm that I can download the file from a browser. To be clear following code:
Yields:
|
Beta Was this translation helpful? Give feedback.
-
BTW I failed to say thanks for sardine! It has just been integrated in the open source Android nova video player https://github.com/nova-video-player/aos-AVP for webdav network share support: it is working great (just trying to get the canRead/canWrite wired in). |
Beta Was this translation helpful? Give feedback.
-
I had an idea... try setting the depth:
You can set it to some high number like 10 or something. |
Beta Was this translation helpful? Give feedback.
-
OK I increased depth to 10 in
|
Beta Was this translation helpful? Give feedback.
-
Ok, maybe too far, try depth: 1 =) |
Beta Was this translation helpful? Give feedback.
-
OK:
|
Beta Was this translation helpful? Give feedback.
-
FYI I tried both on synology NAS and some other webdav server like koofr.net and same behavior. |
Beta Was this translation helpful? Give feedback.
-
So the 400 bad request could be related to the Now, what I'm thinking is that some sort of other parameter is missing from the request that the server is expecting here. What I'd do is spend some time reading the mod_webdav source code to see what happens when a PROPFIND comes in and what it expects. Looking to see where it returns 404 vs. 400 is another one. Maybe also @gstein can help too (sorry to ping you buddy). |
Beta Was this translation helpful? Give feedback.
-
Any hope on addressing the issue? |
Beta Was this translation helpful? Give feedback.
-
That was my next suggestion. Have you done that? |
Beta Was this translation helpful? Give feedback.
-
I am puzzled to see this issue converted into a discussion since for me it is really an issue that prevents my app to work correctly. |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks a lot for sardine that I am trying to integrate into my application (nova video player).
I need to check if I can read or write on a specific url and I am trying to use:
Unfortunately
sardine.getAcl(url).getAces()
is always empty andacl.getOwner()
,acl.getGroup()
are alwaysnull
.I used this following simple code (that works with
sardine.list(url)
):which outputs:
Is this normal or am I doing something wrong?
Thank you in advance for any hints that would help me progress.
P.S.: some related comments can be found here #109
Beta Was this translation helpful? Give feedback.
All reactions