alainm23 / planify

Task manager with Todoist & Nextcloud support designed for GNOME
GNU General Public License v3.0
3.62k stars 215 forks source link

Problems using nextcloud in combination with LDAP #1152

Open Tettsch opened 8 months ago

Tettsch commented 8 months ago

Describe the bug After typing in the login credentials, planify crashes.

To Reproduce Steps to reproduce the behavior:

  1. Go to Preferences -> integrations
  2. Activate Caldav
  3. Type in login credentials and Nextcloud URL
  4. See error

Expected behavior Not crashing and showing task list.

Desktop (please complete the following information):

Additional context I am using Nextcloud with LDAP integration.

I tried tinkering with the source code but since I never used vala before, it is quite hard for me to really make progress. :/

I added a bunch of print outs in Caldav.vala to see what is going on there. Especially printing stream.get_data ()) in first_sync was quite valuable because initially I just got an 404 response. After changing my username in var url = "%s/remote.php/dav/principals/users/%s/".printf (server_url, username); to the LDAP username provided through the nextcloud share link in my calendar (basically an ID like xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) I got a response with some information (like email-address and displayname), but nonetheless planify still crashes.

And well, that is where I am at right now. Maybe anyone else is experiencing similar problems or uses nextcloud through LDAP login and it works for you?

Edit: so, I think, the problem I basically have right now is that my username is not the ID I need fo caldav.

alainm23 commented 3 months ago

Hi and sorry for replying late, I haven't got around to testing using this configuration, how are you entering the server url?

Tettsch commented 3 months ago

Hi, no worries. I understand that this bug does not have a high priority as your integration seems to work for most of the users. :)

For logging in I use https://cloud.department.universitydomain.de/ (of course changing universitydomain and department to the university I work for).

With Planify 4.10.5 logging in does not result into a planify crash any more but the task list remains empty. Though, looking at the Terminal I get 2 responses after logging in:

login status_code: 207

login status_code: 404