Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X-NC-GROUP-ID not removed properly #342

Closed
pulcov opened this issue Feb 13, 2017 · 9 comments · Fixed by #926
Closed

X-NC-GROUP-ID not removed properly #342

pulcov opened this issue Feb 13, 2017 · 9 comments · Fixed by #926
Labels
3. to review Waiting for reviews bug
Milestone

Comments

@pulcov
Copy link

pulcov commented Feb 13, 2017

Steps to reproduce

  1. Create event with nextcloud web interface and set popup alarm
  2. Sync with android phone
  3. Wait popup on phone

Expected behaviour

Popup is shown

Actual behaviour

Nothing is happening

Server configuration

Calendar version:
1.5.0

Android version:
5.1 and 6.0


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@georgehrke
Copy link
Member

How do you connect your Android to Nextcloud?

@georgehrke georgehrke added 1. to develop Accepted and waiting to be taken care of bug needs info labels Feb 13, 2017
@pulcov
Copy link
Author

pulcov commented Feb 13, 2017

Sync is make with Davdroid.

Android have a bug with X-NC-GROUP-ID in ACTION property. If i remove this property by disabling this lines, problem is solved :
simpleEventModel.js#L135
simpleEventModel.js#L344-L345

Is this property is essential ?

@georgehrke
Copy link
Member

georgehrke commented Feb 14, 2017

Is this property is essential ?

It's essential when opening events in the editor, but there has been issues with removing them after editing events in the past. (And I have to check if they are removed when cancelling editing).

Android have a bug with X-NC-GROUP-ID in ACTION property.

But that's indeed a bug thats not on our side. We can add any X- parameter to the action property we want and it would still be valid calendar data.

Do you know if this is a bug with DavDroid or Android?

@pulcov
Copy link
Author

pulcov commented Feb 14, 2017

Thank's for your answer.

For me, isn't a DavDroid bug, it's a Android bug.
Below, logs extract from Davdroid :

2017-02-14 12:28:46 2 [HttpClient$1] Content-Type: text/calendar; charset=utf-8; component=vevent
2017-02-14 12:28:46 2 [HttpClient$1]
2017-02-14 12:28:46 2 [HttpClient$1] BEGIN:VCALENDAR
PRODID:-//Nextcloud calendar v1.5.0
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
CREATED:20170214T113154
DTSTAMP:20170214T113154
LAST-MODIFIED:20170214T113154
UID:05RKYZIUO0OUM7H0A0SPL
SUMMARY:TEST
CLASS:PUBLIC
STATUS:CONFIRMED
DTSTART;TZID=Europe/Berlin:20170214T130000
DTEND;TZID=Europe/Berlin:20170214T140000
BEGIN:VALARM
ACTION;X-NC-GROUP-ID=0:DISPLAY
TRIGGER:-PT15M
END:VALARM
END:VEVENT
BEGIN:VTIMEZONE
...
END:VTIMEZONE
END:VCALENDAR
2017-02-14 12:28:46 2 [HttpClient$1] <-- END HTTP (2554-byte body)
2017-02-14 12:28:46 2 [ical4android.Event] Parsing iCalendar stream
2017-02-14 12:28:48 2 [ical4android.Event] Assigning exceptions to master events
2017-02-14 12:28:48 2 [syncadapter.CalendarSyncManager] Updating Nextcloud-3756H28VQFH45MVX6ZZN45.ics in local calendar
2017-02-14 12:28:48 2 [ical4android.AndroidEvent] Built event object
PARAMETER #1 = mType: 1, mUri: content://com.android.calendar/events?account_name=Vince&account_type=bitfire.at.davdroid&caller_is_syncadapter=true&account_name=Vince&account_type=bitfire.at.davdroid&caller_is_syncadapter=true, mSelection: null, mExpectedCount: null, mYieldAllowed: false, mValues: eventTimezone=Europe/Berlin title=TEST availability=0 eventStatus=1 dtend=1487077200000 hasAttendeeData=1 allDay=0 dtstart=1487073600000 calendar_id=18 eventEndTimezone=Europe/Berlin accessLevel=3, mValuesBackReferences: null, mSelectionArgsBackReferences: null
2017-02-14 12:28:48 2 [ical4android.AndroidEvent] Adding alarm 15 minutes before event, method: 0

@pulcov
Copy link
Author

pulcov commented Feb 14, 2017

I make another test. I sending event without X-NC-GROUP-ID.
Below, DavDroid logs :

2017-02-14 14:54:34 2 [HttpClient$1] Content-Type: text/calendar; charset=utf-8; component=vevent
2017-02-14 14:54:34 2 [HttpClient$1]
2017-02-14 14:54:34 2 [HttpClient$1] BEGIN:VCALENDAR
PRODID:-//Nextcloud calendar v1.5.0
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
CREATED:20170214T145338
DTSTAMP:20170214T145338
LAST-MODIFIED:20170214T145338
UID:YZK8RNMZ58ESAKNP9G818
SUMMARY:TEST
CLASS:PUBLIC
STATUS:CONFIRMED
DTSTART;TZID=Europe/Berlin:20170214T150000
DTEND;TZID=Europe/Berlin:20170214T160000
BEGIN:VALARM
ACTION:DISPLAY
TRIGGER:-PT15M
END:VALARM
END:VEVENT
BEGIN:VTIMEZONE
...
END:VTIMEZONE
END:VCALENDAR
2017-02-14 14:54:34 2 [HttpClient$1] <-- END HTTP (2538-byte body)
2017-02-14 14:54:34 2 [ical4android.Event] Parsing iCalendar stream
2017-02-14 14:54:36 2 [ical4android.Event] Assigning exceptions to master events
2017-02-14 14:54:36 2 [syncadapter.CalendarSyncManager] Adding Nextcloud-1F7N38EKLQ2FC0321902SA.ics to local calendar
2017-02-14 14:54:36 2 [ical4android.AndroidEvent] Built event object
PARAMETER #1 = mType: 1, mUri: content://com.android.calendar/events?account_name=Vince&account_type=bitfire.at.davdroid&caller_is_syncadapter=true&account_name=Vince&account_type=bitfire.at.davdroid&caller_is_syncadapter=true, mSelection: null, mExpectedCount: null, mYieldAllowed: false, mValues: eventTimezone=Europe/Berlin title=TITI availability=0 eventStatus=1 dtend=1487084400000 hasAttendeeData=1 allDay=0 dtstart=1487080800000 calendar_id=18 eventEndTimezone=Europe/Berlin accessLevel=3, mValuesBackReferences: null, mSelectionArgsBackReferences: null
2017-02-14 14:54:36 2 [ical4android.AndroidEvent] Adding alarm 15 minutes before event, method: 1

I notice a difference :
With X-NC-GROUP-ID

2017-02-14 12:28:48 2 [ical4android.AndroidEvent] Adding alarm 15 minutes before event, method: 0

Without X-NC-GROUP-ID

2017-02-14 14:54:36 2 [ical4android.AndroidEvent] Adding alarm 15 minutes before event, method: 1

I corrected my last words, it's maybe a davdroid bug. I will open a ticket to the davdroid team.

Thanks

@pulcov
Copy link
Author

pulcov commented Feb 14, 2017

DavDroid topic

@rfc2822
Copy link

rfc2822 commented Feb 16, 2017

Has been fixed in DAVdroid.

@georgehrke
Copy link
Member

cool, thx! :)

Lets keep this issue open, because I consider not removing X-NC-GROUP-ID an unwanted behavior.

@georgehrke georgehrke changed the title Popup alarm don't work on Android phone X-NC-GROUP-ID not removed properly Feb 16, 2017
@pulcov
Copy link
Author

pulcov commented Feb 17, 2017

thx all!

@georgehrke georgehrke added this to the 1.8.0 milestone Apr 5, 2017
@georgehrke georgehrke modified the milestones: 1.8.0, 1.6.2 Feb 11, 2018
@georgehrke georgehrke modified the milestones: 1.6.2, 2.0.0 beta2 Sep 8, 2018
@georgehrke georgehrke modified the milestones: 2.0.0 beta2, 2.0.0 beta1 Nov 2, 2018
@georgehrke georgehrke added 3. to review Waiting for reviews and removed 1. to develop Accepted and waiting to be taken care of labels Aug 25, 2019
@georgehrke georgehrke mentioned this issue Oct 16, 2019
30 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants