Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Requested time range is out of permitted bounds when free / busy information is retrieved #96

Open
advancingu opened this issue Sep 20, 2017 · 1 comment

Comments

@advancingu
Copy link
Member

Actual:

  • Shared team calendar fails to show any events with latest code from ec-4.0 branch.
  • Request sent to server to obtain free / busy information looks as follows:
<?xml version="1.0" encoding="utf-8"?>
<nsSoap:Envelope xmlns:nsMessages="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:nsSoap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:nsTypes="http://schemas.microsoft.com/exchange/services/2006/types">
    <nsSoap:Header>
        <nsTypes:RequestServerVersion Version="Exchange2013"/>
        <nsTypes:TimeZoneContext>
            <nsTypes:TimeZoneDefinition Id="W. Europe Standard Time" Name="(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"/>
        </nsTypes:TimeZoneContext>
    </nsSoap:Header>
    <nsSoap:Body>
        <nsMessages:GetUserAvailabilityRequest xmlns:nsMessages="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:nsTypes="http://schemas.microsoft.com/exchange/services/2006/types">
            <nsTypes:TimeZone>
                <nsTypes:Bias>0</nsTypes:Bias>
                <nsTypes:StandardTime>
                    <nsTypes:Bias>0</nsTypes:Bias>
                    <nsTypes:Time>00:00:00</nsTypes:Time>
                    <nsTypes:DayOrder>1</nsTypes:DayOrder>
                    <nsTypes:Month>0</nsTypes:Month>
                    <nsTypes:DayOfWeek>Sunday</nsTypes:DayOfWeek>
                </nsTypes:StandardTime>
                <nsTypes:DaylightTime>
                    <nsTypes:Bias>0</nsTypes:Bias>
                    <nsTypes:Time>00:00:00</nsTypes:Time>
                    <nsTypes:DayOrder>1</nsTypes:DayOrder>
                    <nsTypes:Month>0</nsTypes:Month>
                    <nsTypes:DayOfWeek>Sunday</nsTypes:DayOfWeek>
                </nsTypes:DaylightTime>
            </nsTypes:TimeZone>
            <nsMessages:MailboxDataArray>
                <nsTypes:MailboxData>
                    <nsTypes:Email>
                        <nsTypes:Address>team@company.com</nsTypes:Address>
                    </nsTypes:Email>
                    <nsTypes:AttendeeType>Required</nsTypes:AttendeeType>
                </nsTypes:MailboxData>
            </nsMessages:MailboxDataArray>
            <nsTypes:FreeBusyViewOptions>
                <nsTypes:TimeWindow>
                    <nsTypes:StartTime>2017-10-25T20:21:54Z</nsTypes:StartTime>
                    <nsTypes:EndTime>2017-10-25T20:22:15Z</nsTypes:EndTime>
                </nsTypes:TimeWindow>
                <nsTypes:MergedFreeBusyIntervalInMinutes>15</nsTypes:MergedFreeBusyIntervalInMinutes>
                <nsTypes:RequestedView>DetailedMerged</nsTypes:RequestedView>
            </nsTypes:FreeBusyViewOptions>
        </nsMessages:GetUserAvailabilityRequest>
    </nsSoap:Body>
</nsSoap:Envelope>
  • This request is preceded by the following log entries (line numbers might be different):
1st-setup:2017-8-3 22:22:15.772:[Team] getOnlyFreeBusyInformation: aRangeStart:1970/01/01 00:00:00 UTC isDate=0 nativeTime=0, aRangeEnd:2017/09/21 00:00:00 Europe/Berlin isDate=1 nativeTime=1505944800000000 (_getOnlyFreeBusyInformation in mivExchangeCalendar.js:8558)
1st-setup:2017-8-3 22:22:15.773:[Team] getOnlyFreeBusyInformation: aRangeStart is 1970. To big a range. Setting startrange to 40 days before endrange. (_getOnlyFreeBusyInformation in mivExchangeCalendar.js:8566)
  • The server response is as follows:
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
        <s:Fault>
            <faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types">a:ErrorInvalidMergedFreeBusyInterval</faultcode>
            <faultstring xml:lang="en-US">The specified merged free/busy interval is not valid. Specify an interval that is less than the free/busy time window and  between 5 and 1440 minutes.</faultstring>
            <detail>
                <m:ErrorCode xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">5004</m:ErrorCode>
            </detail>
        </s:Fault>
    </s:Body>
</s:Envelope>

Expected behavior:

  • Valid range is sent to server and calendar entries are shown.
@advancingu
Copy link
Member Author

Update: I investigated a bit more and it appears that this is problem is not necessarily causing the calendar to not show any information. Nevertheless, this server response should never be triggered by a bad request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant