[Freeassociation-devel] Re-joining the list after accidentally unsubscribing

Valluri, Amarnath amarnath.valluri at intel.com
Thu Jun 16 05:17:16 PDT 2011


Hi,

any update on 'icalcomponent_remove_property()' issue?

I tried the same code on latest libical(0.46) and it was working fine without any issue.

Is this officially fixed.

- Amarnath

-----Original Message-----
From: IGnatius T Foobar [mailto:room_libical at uncensored.citadel.org] 
Sent: Wednesday, April 20, 2011 12:30 AM
To: freeassociation-devel at lists.sourceforge.net
Subject: Re: [Freeassociation-devel] Re-joining the list after accidentally unsubscribing

 >Please don't release yet though.  
 >I still have a backlog of patches and fixes to get through.  
  
 I found a bug that has crept into libical.  It is definitely new, although
I cannot seem to pin down exactly where it is. 
  
 Originally I thought there was a problem with the expansion of recurring
events, but this is not the case; that was only where I was seeing symptoms
because my application code uses icalcomponent_remove_property() to remove
DTSTART and DTEND properties from an ICAL_VEVENT_COMPONENT and then replaces
them with the start and end times of the iteration. 
  
 The real problem is: icalcomponent_remove_property() is not working.  It
appears to simply do nothing.  Here is sample code to make the problem appear:

  
 cptr = icalcomponent_get_first_component(Cal->cal, ICAL_VEVENT_COMPONENT);

  
 if (cptr) { 
 /* Remove any existing DTSTART properties */ 
 while ( ps =
icalcomponent_get_first_property(cptr, ICAL_DTSTART_PROPERTY), 
  ps != NULL 
 ) { 
  icalcomponent_remove_property(cptr, ps); 
 } 
 } 
  
 This code will hang the program in an infinite loop. 
  
  
 I wonder if we can build a regression test for this? 
  
    -- Art 
 

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Freeassociation-devel mailing list
Freeassociation-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freeassociation-devel
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.





More information about the libical-devel mailing list