Hello!
Here's Rambo's notes on mgd_get_object_by_guid problem.
Our quick fix was to use stable release (1.4.4). We compiled
midgard-lib and after that everything worked as expected.
See attachment for more info.
BR
//Henri Kaukola
Weird guid problem with MMP and NTLM auth.
There is a topic with ID 19
$guid=$topic->guid() returns the GUID ok, below the mysql query:
6 Query SELECT guid FROM repligard WHERE realm='topic' AND
id=19
$test=mgd_get_object_by_guid($guid) returns style object (which has id 19 as well),
below the mysql query:
6 Query SELECT realm,id FROM repligard WHERE
(guid='c5accae8f95cdf57be57690711c5663e') AND (repligard.sitegroup in (0,1))
6 Query SELECT id,up,name,owner,sitegroup,sitegroup FROM
style WHERE id=19 AND (sitegroup in (0, 1) OR 0<>0)
There's also a topic with id 198, $topic->guid works:
6 Query SELECT guid FROM repligard WHERE realm='topic' AND
id=198
mgd_get_object_by_guid returns object does not exist (because there is no style with
id 198):
6 Query SELECT realm,id FROM repligard WHERE
(guid='a17e638358fab6e0607b63a49403d1b1') AND (repligard.sitegroup in (0,1))
6 Query SELECT id,up,name,owner,sitegroup,sitegroup FROM
style WHERE id=198 AND (sitegroup in (0,1) OR 0<>0)
Manual query to the db returns the correct realm in both cases.
The same behaviour has been observed with snippets (when getting by guid) as well, it
seems something (my guess it's
the preparser) screws up the return data from db so that the realm is always style.
Error seems to be in CVS midgard-lib or midgard-php since recompiling those removed
the error
before we managed to recompile mod_midgard.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]