View Issue Details

IDProjectCategoryView StatusLast Update
0000974Funambol SOGo Connectorpublic2010-11-15 15:45
Reporterjoh Assigned Toludovic  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version1.0.8 
Fixed in Version1.0.9 
Summary0000974: Exceptions when synchronising N900 tasks
Description

I experienced some Exceptions in the funambol logs when syncing tasks via funambol-sogo-connector. After some small changes to the code, it seems to work fine now.

My changes are attached to this bug report, but I have to admit, that I am very new to funambol and sogo, so I am absolutely not sure if my modifications make sense.

TagsNo tags attached.

Relationships

has duplicate 0000737 closedludovic Tasks completed in Outlook aren't synced via Funambol 

Activities

2010-11-15 03:03

 

sogo-funambol-diff.txt (2,303 bytes)   
Index: src/java/ca/inverse/sogo/engine/source/SOGoTaskUtilities.java
===================================================================
--- src/java/ca/inverse/sogo/engine/source/SOGoTaskUtilities.java	(Revision 49)
+++ src/java/ca/inverse/sogo/engine/source/SOGoTaskUtilities.java	(Arbeitskopie)
@@ -70,10 +70,21 @@
             if (task.getComplete().getPropertyValue() == null) {
                 c_status = 0;
             } else {
-                c_status = Integer.parseInt(task.getComplete().getPropertyValueAsString());
+            	try 
+            	{
+            		// Not sure why a value of "true" appears, but it will not
+            		// be convertable to int
+            		c_status = Integer.parseInt(task.getComplete().getPropertyValueAsString());
+            	} catch (NumberFormatException e) {
+            		if ("true".equals(task.getComplete().getPropertyValueAsString())) {
+            			c_status = 1;
+            		} else {
+            			c_status = 0;
+            		}
+            	}
             }
-
-            if (task.getImportance().getPropertyValue() == null) {
+            
+            if (task.getImportance() == null || task.getImportance().getPropertyValue() == null) {
                 c_priority = 0;
             } else {
                 c_priority = Integer.parseInt(task.getImportance().getPropertyValueAsString());
@@ -316,10 +327,18 @@
             if (task.getComplete().getPropertyValue() == null) {
                 c_status = 0;
             } else {
-                c_status = Integer.parseInt(task.getComplete().getPropertyValueAsString());
+            	try {
+            		c_status = Integer.parseInt(task.getComplete().getPropertyValueAsString());
+            	} catch (NumberFormatException e) {
+            		if ("true".equals(task.getComplete().getPropertyValueAsString())) {
+            			c_status = 1;
+            		} else {
+            			c_status = 0;
+            		}
+            	}
             }
 
-            if (task.getImportance().getPropertyValue() == null) {
+            if (task.getImportance() == null || task.getImportance().getPropertyValue() == null) {
                 c_priority = 0;
             } else {
                 c_priority = Integer.parseInt(task.getImportance().getPropertyValueAsString());
sogo-funambol-diff.txt (2,303 bytes)   
joh

joh

2010-11-15 03:05

reporter   ~0001800

I am using funambol version 8.7.0

ludovic

ludovic

2010-11-15 15:45

reporter   ~0001809

Fixed with https://sogo-connector.forge.funambol.org/source/browse/sogo-connector/trunk/src/java/ca/inverse/sogo/engine/source/SOGoTaskUtilities.java?view=diff&pathrev=50&r1=49&r2=50

Issue History

Date Modified Username Field Change
2010-11-15 03:03 joh New Issue
2010-11-15 03:03 joh File Added: sogo-funambol-diff.txt
2010-11-15 03:05 joh Note Added: 0001800
2010-11-15 14:14 ludovic Relationship added has duplicate 0000737
2010-11-15 15:45 ludovic Note Added: 0001809
2010-11-15 15:45 ludovic Status new => resolved
2010-11-15 15:45 ludovic Fixed in Version => 1.0.9
2010-11-15 15:45 ludovic Resolution open => fixed
2010-11-15 15:45 ludovic Assigned To => ludovic