WG: Bug // auto-correct of internal links

"Christian Meier" <[email protected]>
Newsgroups gmane.comp.cms.zms.devel
Message-ID <[email protected]>
Hello,

the reported bug of auto-correction for internal links is fixed since
zms-2.10.4-13.

But there occured a problem for virtual-host-environments:

ZReferableItem.synchronizeRefs does not check the ZMS.pathcoherence-variable
and so line 528 and line 566 does not fit for rewrited urls. All auto
correction ends up in links marked as disabled {$__e123__}.

A solution is the usage of PathHandler.base_url-function instead of
absolute_url() in line 492: 

-- map( lambda x: operator.setitem(obs, x.absolute_url(), x),
_globals.objectTree( self, True))
++ map( lambda x: operator.setitem(obs, x.base_url(), x),
_globals.objectTree( self, True))

Regards, Christian Meier


> -----Ursprüngliche Nachricht-----
> Von: Christian Meier [mailto:[email protected]] 
> Gesendet: Freitag, 7. September 2007 10:36
> An: '[email protected]'
> Betreff: Bug // auto-correct of internal links
> 
> Hello,
> 
> after revision of "Auto-Correct" of internal links in
> 
> 2007-08-15::zms-2.10.4-03
> -- MINOR CHANGES
> [00481] Revised maintenance actions and settings in ZMI 
> system-configuration.
> 
> it does not work as expected.
> 
> Example:
> - a ZMSLinkelement embeds a ZMSGraphic in level2
> - the ZMSGraphic is moved up to level1 - the 
> ZMSLinkelement-url is refreshed correctly - whether 
> "Auto-Correct" is activated or not
> - the ZMSGraphic is moved down to level3 - ZMSLinkelement-url 
> is marked as broken (e.g. {$__e123__}), if "Auto-Correct" is 
> not activated
> - if "Auto-Correct" is activated, moving up to level1 does 
> work correctly anymore - but moving down to level3 ends up in 
> an endless-loop in ZMSObject.findObjId - pasting does not work
> 
> The "Correct"-button in ZMI system-configuration does not 
> correct anything - it shows just existing broken links...
> 
> Regards, Christian Meier
> 
> 
> 
> 
> 
> 
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.