Ticket #1574 (new defect)

Opened 14 years ago

Last modified 13 years ago

creating a section with id start fails

Reported by: jschmitz Owned by: trac
Priority: P1 Milestone: CPS 3.5.7
Component: CPSDefault Version: 3.3.4
Severity: normal Keywords:
Cc:

Description

in sections I tried to create a section named start that fails with

Traceback (innermost last):
  Module ZPublisher.Publish, line 120, in publish
  Module Zope2.App.startup, line 240, in commit
  Module transaction._manager, line 96, in commit
  Module Products.CPSCompat.PatchZODBTransaction, line 169, in commit
  Module transaction._transaction, line 421, in _callBeforeCommitHooks
  Module Products.CPSCore.commithooks, line 229, in __call__
  Module Products.CPSCore.IndexationManager, line 132, in __call__
  Module Products.CPSCore.IndexationManager, line 151, in process
  Module Products.CPSCore.ProxyBase, line 402, in _reindexObject
  Module Products.CMFCore.CMFCatalogAware, line 87, in reindexObject
  Module Products.CMFCore.CatalogTool, line 353, in reindexObject
  Module Products.CPSCore.PatchCMFCoreCatalogTool, line 242, in cat_catalog_object
  Module Products.ZCatalog.ZCatalog, line 566, in catalog_object
  Module Products.ZCatalog.Catalog, line 360, in catalogObject
  Module Products.PluginIndexes.DateIndex.DateIndex, line 132, in index_object
  Module Products.PluginIndexes.DateIndex.DateIndex, line 250, in _convert
  Module DateTime.DateTime, line 509, in __init__
  Module DateTime.DateTime, line 737, in _parse_args
  Module DateTime.DateTime, line 1025, in _parse
SyntaxError: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

  <html xmlns="http://www.w3.org/1999/xhtml" lang="de"
        xml:lang="de">
    <head>
      
... follows the complete html-source of the page.  
  

other ids like start123 work fine.

Change History

comment:1 Changed 14 years ago by fguillaume

Probable reason is that "start" is reserved because it's an indexed attribute of some document types, like events.

Not sure how to cleanly check/test that...

comment:2 Changed 14 years ago by sfermigier

Confirmed.

comment:3 Changed 13 years ago by sfermigier

  • Milestone changed from CPS 3.4.1 to CPS 3.4.2
Note: See TracTickets for help on using tickets.