This discussion is archived
1 Reply Latest reply: Jan 31, 2007 5:40 AM by 551875 RSS

Error When Modifying a Resource Event as Designate

551875 Newbie
Currently Being Moderated
Hi,

I'm developing an app for a conference room device using the C APIs and am having a problem modifying an event for a resource. If I use the same user ID as with which the event was created, everything works fine. However, I'm attempting to use an ID that is set as a designate for a group of resources, and when I do, I get a CAPI_STAT_DATA_UID_NOTFOUND error when using the CSDK_FLAG_STORE_MODIFY flag.

Here's the data I'm sending:

VERSION:2.0
PRODID://Oracle//CAPI//EN
BEGIN:VEVENT
UID:20070111T141735Z-101b6d4-65-3559-Oracle
X-ORACLE-EVENTTYPE:APPOINTMENT
DTSTART:20070111T092000
DTEND:20070111T095000
END:VEVENT
END:VCALENDAR

Flags CSDK_FLAG_STORE_MODIFY | CSDK_FLAG_STREAM_NOT_MIME

The SDk version is 10.1.2.0.0

Is there any inherent problems with this approach?

Thanks,

Dave Bowman
  • 1. Re: Error When Modifying a Resource Event as Designate
    551875 Newbie
    Currently Being Moderated
    Here's some additional information on the problem and the sequence of events:

    1) Open the connection using user ID that is a designate for the resource.

    2) Change the user ID to the resource identifier ("?/RS=RENCI - Europa
    Conference 520/") using CSDK_SetIdentity with the flags set to CSDK_FLAG_NONE.
    The function call appears to work correctly and returns no errors.

    3) Modify the event data using CSDK_StoreEvents with the the above data.

    4) The error returned is: CAPI_STAT_DATA_UID_NOTFOUND. And the event ID is
    correct.

    I've tried both with and without using the CSDK_SetIdentity function, with the
    same results.

    Is it feasible to use this approach to have a resource be able to modify an
    event that was created by another user? Or is the use of another ID with
    higher privileges required? Such as 'SYSOP'? If the latter, obtaining SYSOP
    privileges may be problematic as we are just users of the Calendar system and
    not the owners.

    Thx.......