Ticket #9682 (confirmed Bug)
OFS.ObjectManager::checkValidId() barfs ' "++resource++plonetheme.artiktheme.images" contains characters illegal in URLs ' when adding page containing image resoure
Reported by: | sandyreid | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | General | Version: | 4.0 |
Keywords: | Cc: | uschwarz, dimboo |
Description
When I add a new page, I get the following error : "The id "++resource++plonetheme.artiktheme.images" contains characters illegal in URLs." The image referenced (which is a logo in the header) is displayed correctly on all other pages, just not when I try to add a new page (or other item). If I revert to an full url (i.e. prefix with site root) it all works.
- Plone 3.3.1
- CMF 2.1.2
- Zope (Zope 2.10.9-final, python 2.4.3, linux2)
- Python 2.4.3 (#1, Jul 27 2009, 17:57:39) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)]
- PIL 1.1.6
Error info attached.
Attachments
Change History
comment:1 Changed 6 years ago by kleist
- Component changed from Unknown to Infrastructure
- Summary changed from illegal url error when adding page to OFS.ObjectManager::checkValidId() barfs ' "++resource++plonetheme.artiktheme.images" contains characters illegal in URLs ' when adding page containing image resoure
Maybe related to https://bugs.launchpad.net/zope2/+bug/143616 ???
comment:2 Changed 5 years ago by uschwarz
- Cc uschwarz added
Still present in 4.0.1, and makes resources pretty useless because they don't work on add-content pages. Not a simple regexp issue since ++resource++... should be intercepted to get resources anyway. My suspicion is that portal_factory is too eager and doesn't handle /portal_factory/Document/++resource++... correctly: should get the resource, not create a temp object.