Ticket #13467 (confirmed Bug)

Opened 3 years ago

Last modified 3 years ago

[plone.app.imaging] Traversal horribly broken in 1.0.6

Reported by: ajung Owned by:
Priority: minor Milestone: 4.x
Component: Backend (Python) Version: 4.2
Keywords: Cc:

Description

Hi,

a Plone 4.2.3 site contains an image with

src="onkopedia/de/onkopedia/redaktion/contents/onkopedia/mammakarzinom-der-frau/tmpIahfvN_2.jpg/@@images/5c491048-dfbf-4f9d-b049-f63683d666d3.jpeg"

The image renders happily side the browser.

However trying to traverse the URL does not work:

app.unrestrictedTraverse('/onkopedia/de/onkopedia/redaktion/contents/onkopedia/mammakarzinom-der-frau/tmpIahfvN_2.jpg/@@images/5c491048-dfbf-4f9d-b049-f63683d666d3.jpeg')

Traceback (most recent call last):

File "<console>", line 1, in <module> File "/home/dgho/onkopedia-test/eggs/Zope2-2.13.19-py2.6.egg/OFS/Traversable.py", line 300, in unrestrictedTraverse

raise e

NotFound: 5c491048-dfbf-4f9d-b049-f63683d666d3.jpeg

Using pdb inside Traversable.py reveals that I can use publishTraverse here:

(Pdb) obj.publishTraverse(REQUEST,name) <ImageScale at /onkopedia/de/onkopedia/redaktion/contents/onkopedia/mammakarzinom-der-frau/tmpIahfvN_2.jpg/5c491048-dfbf-4f9d-b049-f63683d666d3>

but it is not possible to traverse() into an ImageScaling class....

Bug or feature?

Andreas

Change History

comment:1 Changed 3 years ago by kleist

  • Status changed from new to confirmed
  • Component changed from Unknown to Backend (Python)
Note: See TracTickets for help on using tickets.