You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default Webdav in the latest version of Nextcloud is remote.php/webdav and not remote.php/dav.
It worked only after changing the line 4, in lib/nextcloud/webdav_api.rb
DAV_URL = "remote.php/dav".freeze to DAV_URL = "remote.php/webdav".freeze
Say if the URL contains the port, for example - docker installations (localhost:8080) - The gem does not work.
It worked only after changing the line 11, in lib/nextcloud/webdav_api.rb
from @url = URI(@url.scheme + "://" + @url.host + "/" + DAV_URL) to @url = URI(@url.scheme + "://" + @url.host + ":" + @url.port.to_s + "/" + DAV_URL)
The same gem works for own cloud too, but in case if we have a path,
Say - https:///abc.com/nextcloud/remote.php/webdav - it does not work due to the below reason.
LIne 4, in lib/nextcloud/webdav_api.rb - DAV_URL = "remote.php/webdav".freeze
which has to be DAV_URL = "nextcloud/remote.php/webdav".freeze for the above case.
Will it be possible to add it as option while initializing.
Currently we have,
nextcloud = Nextcloud.new(
url: "https://cloud.yourdomain.com",
username: "your_username",
password: "your_password"
)
could be made as
nextcloud = Nextcloud.new(
url: "https://cloud.yourdomain.com",
webdav: "nextcloud/remote.php/webdav",
username: "your_username",
password: "your_password"
)
This would fix the issue #1 which was reported earlier.
The text was updated successfully, but these errors were encountered:
Hi,
Default Webdav in the latest version of Nextcloud is remote.php/webdav and not remote.php/dav.
It worked only after changing the line 4, in lib/nextcloud/webdav_api.rb
DAV_URL = "remote.php/dav".freeze to DAV_URL = "remote.php/webdav".freeze
Say if the URL contains the port, for example - docker installations (localhost:8080) - The gem does not work.
It worked only after changing the line 11, in lib/nextcloud/webdav_api.rb
from @url = URI(@url.scheme + "://" + @url.host + "/" + DAV_URL) to
@url = URI(@url.scheme + "://" + @url.host + ":" + @url.port.to_s + "/" + DAV_URL)
The same gem works for own cloud too, but in case if we have a path,
Say - https:///abc.com/nextcloud/remote.php/webdav - it does not work due to the below reason.
LIne 4, in lib/nextcloud/webdav_api.rb - DAV_URL = "remote.php/webdav".freeze
which has to be DAV_URL = "nextcloud/remote.php/webdav".freeze for the above case.
Will it be possible to add it as option while initializing.
Currently we have,
nextcloud = Nextcloud.new(
url: "https://cloud.yourdomain.com",
username: "your_username",
password: "your_password"
)
could be made as
nextcloud = Nextcloud.new(
url: "https://cloud.yourdomain.com",
webdav: "nextcloud/remote.php/webdav",
username: "your_username",
password: "your_password"
)
This would fix the issue #1 which was reported earlier.
The text was updated successfully, but these errors were encountered: