I just installed WP 2.2.1 with Daniel Jalkut's xml-rpc changes but now I can't fetch posts at all due to an iso timecode error.
Anyone else seeing this?
On 23. Jun 2007, at 20:40, Steven W Riggins wrote:
I just installed WP 2.2.1 with Daniel Jalkut's xml-rpc changes but now I can't fetch posts at all due to an iso timecode error.
The problem is that now WP will send the date as ‘YYYYMMDDTHH:MM:SSZ’.
Previously it would not send the trailing ‘Z’ and ruby 1.8.2 (shipped with Tiger) does *not* expect that ‘Z’ (and thus raises a “wrong format” exception).
The XML-RPC specification defines the format using one example which is w/o a ‘Z’ (and there is an additional note about time zone info which hints that they did not expect this type to ever carry TZ info [1]) so WP is probably wrong in sending it.
That said, newer versions of Ruby’s XML-RPC parser do support several variations, so upgrading your Ruby [2] will fix the problem -- but I have cc’ed Joseph, he can say if we should expect a patch for WP.
[1] Which is unbelievable stupid, but that whole spec is unbelievable stupid. [2] Remember to update “shebang path” -- http://macromates.com/ textmate/manual/shell_commands#search_path
Allan,
You are a wizard. I installed macports, installed ruby, then edited my .bash_profile to make sure /opt/local/bin was first the path, then added the magic .MacOSX/environment.plist, logged out, in and now it all works again.
Thanks!
On Jun 23, 2007, at 12:59 PM, Allan Odgaard wrote:
On 23. Jun 2007, at 20:40, Steven W Riggins wrote:
I just installed WP 2.2.1 with Daniel Jalkut's xml-rpc changes but now I can't fetch posts at all due to an iso timecode error.
The problem is that now WP will send the date as ‘YYYYMMDDTHH:MM:SSZ’.
Previously it would not send the trailing ‘Z’ and ruby 1.8.2 (shipped with Tiger) does *not* expect that ‘Z’ (and thus raises a “wrong format” exception).
The XML-RPC specification defines the format using one example which is w/o a ‘Z’ (and there is an additional note about time zone info which hints that they did not expect this type to ever carry TZ info [1]) so WP is probably wrong in sending it.
That said, newer versions of Ruby’s XML-RPC parser do support several variations, so upgrading your Ruby [2] will fix the problem -- but I have cc’ed Joseph, he can say if we should expect a patch for WP.
[1] Which is unbelievable stupid, but that whole spec is unbelievable stupid. [2] Remember to update “shebang path” -- http://macromates.com/ textmate/manual/shell_commands#search_path
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate