Uploaded image for project: 'Calendar'
  1. Calendar
  2. CAL-670

JSON API to fetch calendars does not return valid response

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Rank (Obsolete):
      9223372036854775807
    • Acceptance Criteria:

      Description

      When getting calendars, the REST response returns HAL representation of the calendars which contains invalid href. hrefs are sabre ones (sdav/calendars) and not OP (dav/api/calendars) ones.
      href also contains `\` in URLs which can be avoided.

      ```
      {
      "_links":{
      "self":

      { "href":"\/sdav\/calendars\/57fca675a91c8d01a36ac26b.json" }

      },
      "_embedded":{
      "dav:calendar":[
      {
      "_links":{
      "self":

      { "href":"\/sdav\/calendars\/57fca675a91c8d01a36ac26b\/events.json" }

      },
      "calendarserver:ctag":"http:\/\/sabre.io\/ns\/sync\/101"
      },
      {
      "_links":{
      "self":

      { "href":"\/sdav\/calendars\/57fca675a91c8d01a36ac26b\/aee302d8-12dc-4c8d-94cf-991da9b453ab.json" }

      },
      "dav:name":"chamerling-public",
      "caldav:description":"",
      "calendarserver:ctag":"http:\/\/sabre.io\/ns\/sync\/7",
      "apple:color":"#f7e511"
      }
      ]
      }
      }
      ```

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            chamerling Christophe HAMERLING
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: