Ticket #5428 (closed Bug: fixed)

Opened 8 years ago

Last modified 8 years ago

production description no longer viewable

Reported by: wichert Owned by: alecm
Priority: minor Milestone: 2.5
Component: General Version:
Keywords: Cc:

Description (last modified by alecm) (diff)

Time  	2006/04/08 13:59:11.792 GMT+2
User Name (User Id) 	admin (admin)
Request URL 	http://localhost:8080/plone25/portal_quickinstaller/prefs_install_product_readme
Exception Type 	Unauthorized
Exception Value 	You are not allowed to access 'StructuredText' in this context

Traceback (innermost last):

    * Module ZPublisher.Publish, line 113, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    * Module Products.CMFCore.FSPageTemplate, line 195, in _exec
    * Module Products.CacheSetup.patch_cmf, line 14, in FSPT_pt_render
    * Module Products.CacheSetup.patch_utils, line 9, in call_pattern
    * Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
    * Module Products.CacheSetup.patch_cmf, line 52, in PT_pt_render
    * Module Products.CacheSetup.patch_utils, line 9, in call_pattern
    * Module Products.PageTemplates.PageTemplate, line 104, in pt_render
      <FSPageTemplate at /plone25/prefs_install_product_readme used for /plone25/portal_quickinstaller>
    * Module TAL.TALInterpreter, line 238, in __call__
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 749, in do_useMacro
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 749, in do_useMacro
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 772, in do_defineSlot
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 780, in do_defineSlot
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 749, in do_useMacro
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 772, in do_defineSlot
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 772, in do_defineSlot
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 647, in do_insertStructure_tal
    * Module Products.PageTemplates.TALES, line 221, in evaluate
      URL: file:CMFPlone/skins/plone_prefs/prefs_install_product_readme.pt
      Line 31, Column 4
      Expression: <PythonExpr modules['StructuredText.StructuredText'].HTML(container.portal_quickinstaller.getProductFile(request['filereadme']))>
      Names:

      {'container': <PloneSite at /plone25>,
       'context': <QuickInstallerTool at /plone25/portal_quickinstaller>,
       'default': <Products.PageTemplates.TALES.Default instance at 0xb711fb6c>,
       'here': <QuickInstallerTool at /plone25/portal_quickinstaller>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb32d0e2c>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb714e1ac>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xb32d0e2c>,
       'request': <HTTPRequest, URL=http://localhost:8080/plone25/portal_quickinstaller/prefs_install_product_readme>,
       'root': <Application at >,
       'template': <FSPageTemplate at /plone25/prefs_install_product_readme used for /plone25/portal_quickinstaller>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'admin'>}

    * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
      __traceback_info__: modules['StructuredText.StructuredText'].HTML(container.portal_quickinstaller.getProductFile(request['filereadme']))
    * Module Python expression "modules['StructuredText.StructuredText'].HTML(container.portal_quickinstaller.getProductFile(request['filereadme']))", line 1, in <expression>
    * Module AccessControl.ZopeGuards, line 67, in guarded_getitem
    * Module Products.PageTemplates.ZRPythonExpr, line 52, in __getitem__
    * Module AccessControl.ZopeGuards, line 266, in guarded_import
    * Module AccessControl.ZopeGuards, line 329, in load_module

Unauthorized: You are not allowed to access 'StructuredText' in this context

Change History

comment:1 Changed 8 years ago by alecm

  • Owner changed from somebody to alecm
  • Description modified (diff)

comment:2 Changed 8 years ago by alecm

Looks like a misisng allow_module or similar. This is probably a bad bit of template code anyway. #5450 and #5417 seem to be reporting the same thing.

comment:3 Changed 8 years ago by alecm

  • Status changed from new to closed
  • Resolution set to fixed

Fixed by using portal_transforms.

comment:4 Changed 22 months ago by davisagli

  • Component changed from Infrastructure to General
Note: See TracTickets for help on using tickets.