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

The birthday calendar can only hold VEVENT #25636

Merged
merged 2 commits into from
Sep 7, 2016

Conversation

DeepDiver1975
Copy link
Member

@DeepDiver1975 DeepDiver1975 commented Jul 28, 2016

@mention-bot
Copy link

@DeepDiver1975, thanks for your PR! By analyzing the annotation information on this pull request, we identified @nickvergessen, @tcitworld, @stweil and @DeepDiver1975 to be potential reviewers

@DeepDiver1975 DeepDiver1975 changed the title The birthday calendar can only hold VEVENT - refs The birthday calendar can only hold VEVENT Jul 28, 2016
@raimund-schluessler
Copy link
Contributor

Hm, after applying this patch I still get this response for the birthday-calendar

 <d:response>
  <d:href>/owncloud/remote.php/dav/calendars/admin/contact_birthdays/</d:href>
  <d:propstat>
   <d:prop>
    <d:displayname>Contact birthdays</d:displayname>
    <cal:calendar-description/>
    <cal:calendar-timezone/>
    <x1:calendar-order xmlns:x1="http://apple.com/ns/ical/">0</x1:calendar-order>
    <x1:calendar-color xmlns:x1="http://apple.com/ns/ical/">#FFFFCA</x1:calendar-color>
    <cal:supported-calendar-component-set>
     <cal:comp name="VEVENT"/>
     <cal:comp name="VTODO"/>
    </cal:supported-calendar-component-set>
    <d:acl>
     <d:ace>
      <d:principal>
       <d:href>/owncloud/remote.php/dav/principals/users/admin/</d:href>
      </d:principal>
      <d:grant>
       <d:privilege>
        <d:read/>
       </d:privilege>
      </d:grant>
      <d:protected/>
     </d:ace>
    </d:acl>
    <d:owner>
     <d:href>/owncloud/remote.php/dav/principals/users/admin/</d:href>
    </d:owner>
    <oc:invite/>
   </d:prop>
   <d:status>HTTP/1.1 200 OK</d:status>
  </d:propstat>
  <d:propstat>
   <d:prop>
    <oc:calendar-enabled/>
   </d:prop>
   <d:status>HTTP/1.1 404 Not Found</d:status>
  </d:propstat>
 </d:response>

Since there is still a VTODO in it, the Tasks app does still show the calendar.

@raimund-schluessler
Copy link
Contributor

raimund-schluessler commented Jul 28, 2016

I also tried php occ dav:sync-birthday-calendar with no success.

Edit: After deleting the birthday-calendar and running the above command again, it is created correctly.

Can we automate this process, so that the birthday calendar is cleanly regenerated during upgrade?

@DeepDiver1975
Copy link
Member Author

I will add a repair step to adjust this for existing birthday calendars

@raimund-schluessler
Copy link
Contributor

Great, thanks!
👍

@PVince81
Copy link
Contributor

@georgehrke second review ?

@@ -108,6 +108,7 @@ public function ensureCalendarExists($principal) {
$this->calDavBackEnd->createCalendar($principal, self::BIRTHDAY_CALENDAR_URI, [
'{DAV:}displayname' => 'Contact birthdays',
'{http://apple.com/ns/ical/}calendar-color' => '#FFFFCA',
'components' => 'VEVENT,VTODO',
Copy link
Contributor

@georgehrke georgehrke Aug 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this VEVENT,VTODO and not just VEvent?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THX for the hint

@DeepDiver1975 DeepDiver1975 force-pushed the fix-birthday-calendar-component branch 2 times, most recently from 4f228d4 to 86940dd Compare August 25, 2016 07:14
@DeepDiver1975 DeepDiver1975 force-pushed the fix-birthday-calendar-component branch from 86940dd to 934ac7e Compare August 29, 2016 07:11
@DeepDiver1975
Copy link
Member Author

jenkins is green on this one @PVince81 @butonic merge? THX

@butonic
Copy link
Member

butonic commented Sep 7, 2016

👍

@PVince81 PVince81 merged commit 038020d into master Sep 7, 2016
@PVince81 PVince81 deleted the fix-birthday-calendar-component branch September 7, 2016 08:22
DeepDiver1975 pushed a commit that referenced this pull request Sep 7, 2016
…ndar-component

The birthday calendar can only hold VEVENT
DeepDiver1975 pushed a commit that referenced this pull request Sep 22, 2016
…ndar-component

The birthday calendar can only hold VEVENT
DeepDiver1975 added a commit that referenced this pull request Sep 30, 2016
…ndar-component (#26056)

The birthday calendar can only hold VEVENT
@thommierother
Copy link

This issue still seems to be present on 9.1.4 with a calendar created in 9.1.3 See also owncloud/tasks#378. It makes the adding of new tasks unsuccessful, at least for users who are not able to de-select "birthdays" and select the real calendar before entering a new task (>> bad navigation in UI).

@lock
Copy link

lock bot commented Aug 3, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants