|
 Originally Posted by Grabber5.0
Hmm, this is frustrating.. I updated the URL for the contact account and edited an entry, and saw the error again. I then edited the URL in one of my contacts and edited it again, and saw the error again. The first edit did go through at some point though because it sync'd to Google. The second edit never went through, and in fact the local entry was updated (I added additional text to the note I had added in the first edit). Now for some reason when I edit the URL in the database, it reports success, but when I retrieve the contact it still has the old URL in it.. I need to step away for awhile before I break something. 
Try adding this to your patch file. It's a horrible hack but it works. I can sync changes from the emulator. You might just need this one modded file xhr.jsjsjs $You$ $can$ $also$ $remove$ $the$ $comment$ &$quot$;//&$quot$; $from$ $before$ $the$ &$quot$;$Utils$.$error$&$quot$; $calls$ $if$ $you$ $want$ $to$ $see$ $the$ $logging$.
Code:
Index: /usr/palm/services/com.palm.service.contacts.google/javascript/utils/xhr.jsjsjs
===================================================================
--- .$orig$/$usr$/$palm$/$services$/$com$.$palm$.$service$.$contacts$.$google$/$javascript$/$utils$/$xhr$.$js$
+++ /$usr$/$palm$/$services$/$com$.$palm$.$service$.$contacts$.$google$/$javascript$/$utils$/$xhr$.$js$
@@ -$22$,$8$ +$22$,$16$ @@ $var$ $XMLHttpRequest$ = $Class$.$create$({
$Assert$.$requireString$($httpMethod$);
$Assert$.$requireString$($url$);
- $this$.$_consoleLog$(&$quot$;\$n$\$n$\$n$---&$gt$;&$gt$;&$gt$; $open$ $called$. $httpMethod$: &$quot$;, $httpMethod$, &$quot$; $url$: &$quot$;, $url$, &$quot$; $isAsync$: &$quot$;, $isAsync$, &$quot$; \$n$\$n$&$quot$;);
-
+ //$Utils$.$error$(&$quot$;$httpMethod$: &$quot$;+ $httpMethod$ + &$quot$; $url$: &$quot$; + $url$);
+ $if$(!!$url$){
+ $if$ ($typeof$($url$) !== &$quot$;$String$&$quot$;){
+ $url$ = $String$($url$);
+ }
+ $if$($url$.$indexOf$(&$quot$;$https$&$quot$;) !== $0$){
+ $url$ = &$quot$;$https$&$quot$;+$url$.$substring$($4$);
+ //$Utils$.$error$(&$quot$;$modded$ $url$: &$quot$; + $url$);
+ }
+ }
$this$.$httpMethod$ = $httpMethod$.$toUpperCase$();
$this$.$url$ = $url$;
$this$.$options$ = {};
|
|
|