Issue #126 resolved

diff between PNGs crashes

Thomas Waldmann
repo owner created an issue

create a png item, modify it (upload a slightly modified png), use history, diff these revisions.


File "/home/tw/w/moin-2.0/MoinMoin/apps/frontend/", line 1523, in _diff_raw return item._render_data_diff_raw(oldrev, newrev)

File "/home/tw/w/moin-2.0/MoinMoin/items/", line 1065, in _render_data_diff_raw oldimage =

File "/home/tw/w/moin-2.0/env/lib/python2.7/site-packages/PIL/", line 1956, in open prefix =

AttributeError: 'ProtectedRevision' object has no attribute 'read'

Comments (6)

  1. Thomas Waldmann reporter

    well, it doesn't crash any more, so you fixed the crash.

    but: when I tried it after applying your fix, it didn't crash any more, but it did not show an image diff either, but just some empty page and in the logs I saw some 404 status.

  2. Log in to comment