Ticket #9682 (confirmed Bug)

Opened 6 years ago

Last modified 3 years ago

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

error.txt Download (7.5 KB) - added by sandyreid 6 years ago.

Change History

Changed 6 years ago by sandyreid

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

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.

comment:3 Changed 4 years ago by kleist

  • Status changed from new to confirmed
  • Version set to 4.0
  • Component changed from Infrastructure to General
  • Milestone changed from 3.3.x to 4.x

comment:4 Changed 3 years ago by dimboo

  • Cc dimboo added
Note: See TracTickets for help on using tickets.