Synology: 404 when using URL with space and @



  • There is an %20 between the first and lastname 😃



  • Good Morning,
    i try the app on an other Device. There is the same problem.

    in the CardDAV-Sync App i use the following credentials:

    https://192.168.0.90:8443/addressbooks/users/PETER%20ALEXANDER%40DOMAINNAME
    User: PETER ALEXANDER@DOMAINNAME
    PW: 123456789abcd
    

    Thx for some help 🙂


  • developer

    Can you please provide the logs? (Enable DAVx⁵ / Settings / Verbose logs, then add an account which only adds the calendar, then send the logs)



  • Here are my log
    i used the URL for CardDAV
    i have change the names 😉

    --- BEGIN DEBUG INFO ---
    
    SOFTWARE INFORMATION
    * at.bitfire.davdroid 2.2.1-ose (262) from com.google.android.packageinstaller
    * com.android.providers.contacts 7.1.1 (25)
    * com.android.providers.calendar 7.1.1 (25)
    * com.android.contacts 1.4.22 (10422)
    * com.google.android.calendar 6.0.12-224984167-release (2016050925) from com.android.vending
    * com.appgenix.bizcal 2.32.2 (232200) from com.android.vending
    
    CONNECTIVITY (at the moment)
    Active connection: mobile, CONNECTED
    
    CONFIGURATION
    Power saving disabled: yes
    android.permission.READ_CONTACTS permission: granted
    android.permission.WRITE_CONTACTS permission: granted
    android.permission.READ_CALENDAR permission: granted
    android.permission.WRITE_CALENDAR permission: granted
    org.dmfs.permission.READ_TASKS permission: granted
    org.dmfs.permission.WRITE_TASKS permission: granted
    System-wide synchronization: automatically
    Account: Peter Alexander@alex
      Address book sync. interval: —
      Calendar     sync. interval: 240 min
      OpenTasks    sync. interval: —
      WiFi only: false
      [CardDAV] Contact group method: GROUP_VCARDS
      [CalDAV] Time range (past days): 90
               Manage calendar colors: true
    
    SQLITE DUMP
    android_metadata
    	|  locale |
    	|  de_DE |
    ----------
    services
    	|  _id | accountName | service | principal |
    	|  6 | Peter Alexander@alex | caldav | https://192.168.0.90/caldav.php/Peter%20Alexander%40alex/ |
    ----------
    sqlite_sequence
    	|  name | seq |
    	|  services | 6 |
    	|  homesets | 36 |
    	|  collections | 42 |
    ----------
    homesets
    	|  _id | serviceID | url |
    	|  31 | 6 | https://192.168.0.90/caldav.php/Peter%20Alexander%40alex/ |
    	|  32 | 6 | https://192.168.0.90/caldav.php/group%3D%3DFamilie%40alex/ |
    	|  33 | 6 | https://192.168.0.90/caldav.php/group%3D%3DGitLab%20Users%40alex/ |
    	|  34 | 6 | https://192.168.0.90/caldav.php/group%3D%3DNextcloud%40alex/ |
    	|  35 | 6 | https://192.168.0.90/caldav.php/group%3D%3DWork%40alex/ |
    	|  36 | 6 | https://192.168.0.90/caldav.php/group%3D%3Dusers%40alex/ |
    ----------
    collections
    	|  _id | serviceID | type | url | privWriteContent | privUnbind | forceReadOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | source | sync |
    	|  36 | 6 | CALENDAR | https://192.168.0.90/caldav.php/Peter%20Alexander%40alex/Steffi%20Alexander%40alex--fvnrxqv/ | 0 | 0 | 0 | steffi-termine | <null> | -6543440 | <null> | 1 | 0 | <null> | 0 |
    	|  37 | 6 | CALENDAR | https://192.168.0.90/caldav.php/Peter%20Alexander%40alex/home/ | 1 | 1 | 0 | My Calendar | <null> | -1852160 | <null> | 1 | 0 | <null> | 0 |
    	|  38 | 6 | CALENDAR | https://192.168.0.90/caldav.php/Peter%20Alexander%40alex/home_todo/ | 1 | 1 | 0 | Inbox | <null> | <null> | <null> | 0 | 1 | <null> | 0 |
    	|  39 | 6 | CALENDAR | https://192.168.0.90/caldav.php/Peter%20Alexander%40alex/tjpnbqf/ | 1 | 1 | 0 | abfall-kalender | <null> | -16736299 | <null> | 1 | 0 | <null> | 0 |
    	|  40 | 6 | CALENDAR | https://192.168.0.90/caldav.php/Peter%20Alexander%40alex/hpmlninh/ | 1 | 1 | 0 | Feiertage | <null> | -8861910 | <null> | 1 | 0 | <null> | 0 |
    	|  41 | 6 | CALENDAR | https://192.168.0.90/caldav.php/Peter%20Alexander%40alex/gsvqe/ | 1 | 1 | 0 | Ferien | <null> | -1852160 | <null> | 1 | 0 | <null> | 0 |
    	|  42 | 6 | CALENDAR | https://192.168.0.90/caldav.php/Peter%20Alexander%40alex/jpslbo/ | 1 | 1 | 0 | Peters-termine | <null> | -32768 | <null> | 1 | 0 | <null> | 0 |
    ----------
    
    SYSTEM INFORMATION
    Android version: 7.1.1 (2.9.0_20180924-2129)
    Device: bq Aquaris U Plus (tenshi)
    
    --- END DEBUG INFO ---
    

  • developer

    @budda85 Thanks for the debug info! I’d need the logs: Enable DAVx⁵ / Settings / Verbose logs, then add an account which only detects the calendar, then send the logs (notification bar).



  • Oh Sorry i think it is the same…😌
    My problem is that i can’t send it. When i try to send it with e-mail, it can not add the log as attachment to the mail.
    When i copy it to the clipboard, i have only a path to the log, but in the explorer i can’t find it.
    when i try it to save it local on my phone it does not create any file.

    what am i doing wrong?



  • We can’t reproduce any problems with the logging feature… Can you try to install the “Share via HTTP”

    https://play.google.com/store/apps/details?id=com.MarcosDiez.shareviahttp

    Share it and open the link on a desktop pc. You should be able to see the log and you can then post it here.



  • I’m sorry. I have restart my phone and now everything is working.
    Here is my log.
    davx5-log.txt
    credentials are the same like in this post:

    Good Morning,
    i try the app on an other Device. There is the same problem.

    in the CardDAV-Sync App i use the following credentials:

    https://192.168.0.90:8443/addressbooks/users/PETER%20ALEXANDER%40DOMAINNAME
    User: PETER ALEXANDER@DOMAINNAME
    PW: 123456789abcd
    

    Thx for some help 🙂


  • developer

    @budda85 Thanks. Strange that you had to reboot…

    2019-01-10 22:59:46 299 [BasicDigestAuthHandler] Adding Basic authorization header for https://192.168.0.90:8443/addressbooks/users/Jan%20Mueller%40billi
    2019-01-10 22:59:46 299 [HttpClient] <-- 404 Not Found https://192.168.0.90:8443/addressbooks/users/Jan%20Mueller%40billi (110ms)

    Seems the URL is not accepted, probably because of escaping either the space or the @. What happens when you use @ instead of %40: https://192.168.0.90:8443/addressbooks/users/Jan%20Mueller@billi?



  • Hehe, now its working.
    I added the URL without the URL-Encoding. Like a string. Now DAVx5 found the contacts and the calendar in one account.

    https://192.168.0.90:8443/addressbooks/users/Jan Mueller@billi
    

    THX for your help.


  • developer

    @budda85 Good to hear that it’s working now and thanks for the update 🙂


Log in to reply