Relationship Graph
View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000974 | Funambol SOGo Connector | public | 2010-11-15 03:03 | 2010-11-15 15:45 | |
| Reporter | joh | Assigned To | ludovic | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | resolved | Resolution | fixed | ||
| Product Version | 1.0.8 | ||||
| Fixed in Version | 1.0.9 | ||||
| Summary | 0000974: 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. | ||||
| Tags | No tags attached. | ||||
|
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());
|
|
I am using funambol version 8.7.0 |
|
| 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 |
related to
child of
duplicate of