Uploaded image for project: 'Z-Push'
  1. Z-Push
  2. ZP-1244

Caldav never matches personal/main calendars/tasks if defined CALDAV_PERSONAL has uppercase characters

    Details

    • Type: Bug
    • Status: QA
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 2.3.7 beta1
    • Fix Version/s: 2.3.8 beta1, 2.3.8
    • Component/s: None
    • Labels:
      None

      Description

      CALDAV_PERSONAL is defined in the caldav config.php.

      // Default CalDAV folder (calendar folder/principal). This will be marked as the default calendar in the mobile
      //define('CALDAV_PERSONAL', 'PRINCIPAL');

      The defined value is used in caldav.php to identify calendars:

      if (defined('CALDAV_PERSONAL') && strtolower(substr($id, 1)) == CALDAV_PERSONAL) {

      However, since the calendar id is converted to lower case, it cannot match CALDAV_PERSONAL if, as in the default, it contains any upper case characters.

      define('CALDAV_PERSONAL', 'WillNeverMatch');
      define('CALDAV_PERSONAL', 'wouldmatch');

      This means, if CALDAV_PERSONAL is defined, there is a chance it would not mark any calendars as default.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                cpitchford Chris Pitchford
                Reporter:
                cpitchford Chris Pitchford
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: