lookfirst / sardine

an easy to use webdav client for java
Other
579 stars 185 forks source link

Wrong parameter in DavQuota of SardineImpl #342

Closed jithutintu closed 1 year ago

jithutintu commented 2 years ago

Hello , Here in below piece of code in SardineImpl the constructor of DavQuota expect response .but the parameter passed is DavResource resource in below code.

if (resource.getStatusCode() == 200) return new DavQuota(resource);

Could you please rectify it?

Thanks

LotharSpiegel commented 2 years ago

See pull request: https://github.com/lookfirst/sardine/pull/344

dkocher commented 2 years ago

The existing code passes the required type Response and I cannot spot any error.

LotharSpiegel commented 2 years ago

The existing code passes in the following line:

if (resource.getStatusCode() == 200) return new DavQuota(resource);

an object of type DavResource to the constructor of DavQuota instead of sth. of type Response as needed.