-
Notifications
You must be signed in to change notification settings - Fork 184
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
always getting empty ACES #359
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? |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
The text was updated successfully, but these errors were encountered: