#54

Solved

Image corruption using JRuby

Reported by mcovarru on Ajax Scaffold · 16/10/2006 12:34:38

Assigned to:
rrwhite
Priority:
Normal
Status:
Solved
Category:
None
Version:
3.1.10

This is against 3.1.10, although I don’t see that version as an option in the dropdown.

When using Ajax Scaffold Generator with JRuby (current 10-16-2006 trunk), the loading indicator.gif image always shows as a “corrupt image” icon in the browser. After some investigation, I found that the indicator.gif that is copied to the project directory is being corrupted during the scaffold generation process, while the original indicator.gif in the gem directory is fine. The problem seems to be that the Ajax Scaffold images are manipulated like template files during manifest construction. I’m not sure why this hasn’t been a problem with C Ruby, but JRuby apparently effects template transformations on Ajax Scaffold’s image files that corrupt them. Attached is a small patch to treat Ajax Scaffold’s images like regular non-template files that resolves this problem.

Attachments Upload


Loading comments...