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. |
|
@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. |
|
Deleted my first response as I was quick to judge and didn't read the full log. My apologies. |
|
It looks like you're getting 404, file not found back from the server after authentication.
|
|
@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: |
|
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). |
|
I had an idea... try setting the depth:
You can set it to some high number like 10 or something. |
|
OK I increased depth to 10 in |
|
Ok, maybe too far, try depth: 1 =) |
|
OK:
|
|
FYI I tried both on synology NAS and some other webdav server like koofr.net and same behavior. |
|
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). |
|
Any hope on addressing the issue? |
That was my next suggestion. Have you done that? |
|
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. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions