Closed iroCheese closed 3 years ago
The public link sharing works in our test cases. Please have a look at the unit tests
public void t03_testDoShare2() {
public void t03_testDoShare3() {
Perhaps your NC instance is not allowed to create public shares?
Thanks for your response! Apparently the null value in shareWithUserOrGroupId didn't work. I probably also changed something else while testing the empty String and thus thought it didn't work either. However it works now so this ticket can be closed. Thanks for the help
Thanks for the followup
Hello,
firstly thank you for creating this library!
I am using version
11.5.1
as a maven dependency and have the following problem: When I create a share for a folder with ShareType.EMAIL everything works as expected thus I am pretty sure that authentication is working correctly. However, when I try to create a share with ShareType.PUBLIC_LINK I get a response with status code 401.My code looks as follows:
While looking through the source code of this lib, I noticed that there is no check for empty Strings or null values for
shareWith
in the FilesharingConnector methodThis results in the request URL containing the param
...&shareWith=&...
with an empty value. I'm not sure if that's actually causing the issue but I could imagine that nextcloud recognizes this as an invalid attempt to access some resource that the user is not allowed to.It would be great if someone could look into this, or give me a hint of what I'm doing wrong.