6.0.0-alpha10
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
5/15/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#11775] syncml fails - unable to find dtd...
*
Your Email Address
*
Spam protection
Enter the letters below:
. . .._..__..__. | | | | | |[__] |___|/\|_|_|__|| |
Comment
>> Message from syslogd@host at Nov 28 20:49:46 ... >> HORDE: [horde] Unable to find dtd for syncml:syncml1.11.2 [pid 2291 >> on line 110 >> of "/usr/share/php/Horde/Xml/Wbxml/Encoder.php"] > > I get the same error using SyncJE for Blackberry. > It seems to be a bug parsing wbxmlVersion in Encoder.php, function > writeHeader($uri). > In some cases, it would add "1.2" to the $uri when it already has > "1.1", resulting in an invalid "1.11.2" version. > > The following patches should seems to fix it: > > --- 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); > > > > Also, I'm not sure why ContentHandler.php forces wbxmlVersion = 2. > > --- 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; > } > > > Hope that helps. > Oscar
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers