Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Bug in DavClient?

Help
Daniel
2012-07-06
2013-06-05
  • Daniel
    Daniel
    2012-07-06

    Hello,

    i've got a DAViCAL server running at home. My problem is, that the server url has an additional folder.
    Example: http://192.168.1.1/cal/caldav.php/user/

    I had to add url.path() to the principal and user path.

    public DavClient(URL url, String principalPath, String userPath) {
    this.principalPath = url.getPath() + principalPath;
    this.userPath = url.getPath() + userPath;

    final Protocol protocol = Protocol.getProtocol(url.getProtocol());
    hostConfiguration = new HostConfiguration();
    hostConfiguration.setHost(url.getHost(), url.getPort(), protocol);
    }

    Is this a bug? Or did i something wrong?

    Regards,
    Daniel