[Tickets #11775] Re: syncml fails - unable to find dtd...
bugs at horde.org
bugs at horde.org
Thu Dec 13 19:32:16 UTC 2012
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/11775
------------------------------------------------------------------------------
Ticket | 11775
Updated By | delrio at mie.utoronto.ca
Summary | syncml fails - unable to find dtd...
Queue | Synchronization
Version | Git master
Type | Bug
State | Unconfirmed
Priority | 2. Medium
Milestone | 5.0.2
Patch |
Owners |
------------------------------------------------------------------------------
delrio at mie.utoronto.ca (2012-12-13 19:32) wrote:
Can anyone review/test the patch I proposed in the earlier comment?
Syncml broke again for my blackberry/syncje after a "pear upgrade".
"Unable to find dtd for syncml:syncml1.11.2"
Thanks
> --- Horde/Xml/Wbxml/Encoder.php.orig Wed Oct 31 10:24:43 2012
> +++ Horde/Xml/Wbxml/Encoder.php Fri Nov 30 10:02:21 2012
> @@ -95,15 +95,8 @@
> public function writeHeader($uri)
> {
> // @todo: this is a hack!
> - if ($this->_wbxmlVersion == 2 && !preg_match('/1\.2$/', $uri)) {
> - $uri .= '1.2';
> - }
> - if ($this->_wbxmlVersion == 1 && !preg_match('/1\.1$/', $uri)) {
> - $uri .= '1.1';
> - }
> - if ($this->_wbxmlVersion == 0 && !preg_match('/1\.0$/', $uri)) {
> - $uri .= '1.0';
> - }
> + if (!preg_match('/1\.[0-9]$/', $uri))
> + $uri .= '1.' . $this->_wbxmlVersion;
>
> $this->_dtd = $this->_dtdManager->getInstanceURI($uri);
>
>
> --- Horde/Xml/Wbxml/ContentHandler.php.orig Wed Oct 31 10:24:43 2012
> +++ Horde/Xml/Wbxml/ContentHandler.php Fri Nov 30 09:58:31 2012
> @@ -51,7 +51,7 @@
>
> public function setVersion($v)
> {
> - $this->_wbxmlVersion = 2;
> + $this->_wbxmlVersion = $v;
> }
More information about the bugs
mailing list