Ticket #1073 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

Empy images break image galleries

Reported by: gracinet Owned by: fguillaume
Priority: P2 Milestone: CPS 3.4.0
Component: CPSDocument Version: TRUNK
Severity: normal Keywords:
Cc:

Description

Trying to view an Image Gallery holding one Image document with no actual Image stored within produces the following traceback. The error disapears when one uploads an image in the doc.

    * Module Python expression "here.getImgTag( item.absolute_url_path()+'/preview', base_url='',width=th_width,height=th_height, keep_ratio=1)", line 1, in <expression>
    * Module Products.CMFCore.FSPythonScript, line 108, in __call__
    * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    * Module Products.CMFCore.FSPythonScript, line 163, in _exec
    * Module None, line 20, in getImgTag
      <FSPythonScript at /cps/getImgTag used for /cps/workspaces/members/test/test4437/684811556__0001>
      Line 20
    * Module OFS.Traversable, line 233, in restrictedTraverse
    * Module OFS.Traversable, line 199, in unrestrictedTraverse
      __traceback_info__: ([], 'preview')

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

Change History

comment:1 Changed 14 years ago by fguillaume

  • Priority changed from P1 to P2

comment:2 Changed 14 years ago by fguillaume

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

Fixed in [30173].

Note: See TracTickets for help on using tickets.