[opencms-dev] Bug with linkexcludes? (running OpenCms 9.0.1)
Tobias Karrer
kartobi at gmail.com
Mon Nov 2 12:23:10 CET 2015
Hi all,
after OpenCms Day's "Hidden features of OpenCms" presentation, we were
trying to use linkexcludes for content 'outside of vfs'.
But it seems to be buggy:
Let's suppose we configured "/bigmedia" in /system/shared/linkexcludes
and switched to CmsAdvancedLinkSubstitutionHandler.
While adding a reference "/bigmedia/some-page.html", it is marked as
"/!\ Resource not found", but saving the resource is possible.
Output in page is wrapped with <cms:link>...</cms:link>, so it will be
completed by vfs prefix, causing a dead link.
I think CmsDefaultLinkSubstitutionHandler#getLink() (line 344ff) is
missing the check for paths configured in linkexcludes.
Someone else got this problem?
Regards,
Tobias
More information about the opencms-dev
mailing list