Forum: Typo file upload bug in typo 6.0.5.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A36eed1738418e5dcb7c30475cb8677e?d=identicon&s=25 Petri Wessman (Guest)
on 2011-06-28 14:22
(Received via mailing list)
Hi, I just updated to 6.0.5. (from 6.0.4.) and noticed that while
everything else seems to be working fine, file uploads seem to be broken
(they worked fine in 6.0.4.).

If I go to Files and upload a file (test 20k JPG named testfile.jpg),
instead of getting that file uploaded to public/files and having the
thumb (public/files/thumb_testfile.jpg) generated, I get a 48-byte file
named testfile.jpg which contains the following *text*:

#<ActionDispatch::Http::UploadedFile:0xb55a2124>

In other words, instead of saving the binary data, Typo is saving a text
identifier of some sort into the file (and thumb generation of course
fails).

I can see nothing about any sort of error in the log. Does anyone else
have the same problem, or is it something with my setup? I'm using ruby
1.8.7 (ruby 1.8.7 (2010-04-19 patchlevel 253) [i686-linux], MBARI
0x8770, Ruby Enterprise Edition 2010.02) on Gentoo Linux, in case it
matters.

-Petri
A36eed1738418e5dcb7c30475cb8677e?d=identicon&s=25 Petri Wessman (Guest)
on 2011-06-28 15:14
(Received via mailing list)
Agh, realized that I should have made a ticket about this on Lighthouse
instead of bothering the mailing list about it :}. Done.

-Petri
700f9a3b883e6a04d018f48290b1a3fd?d=identicon&s=25 Frederic de Villamil (Guest)
on 2011-06-28 15:19
(Received via mailing list)
Le 28 juin 2011  13:44, Petri Wessman a crit :

> -Petri
Hi Petri,

Thank you for reporting and filling a bug. This one will start with the
current "can't reproduce yet". So I'll have to dig through this a little
bit more.

Best regards,
Fred

--
Frdric de Villamil
"What's mine is mine. What's yours is still unsetteled"  Go player
proverb
frederic@de-villamil.com                        tel: +33 (0)6 62 19 1337
http://t37.net                       Typo : http://typosphere.org
A36eed1738418e5dcb7c30475cb8677e?d=identicon&s=25 Petri Wessman (Guest)
on 2011-06-28 15:26
(Received via mailing list)
On 06/28/2011 04:16 PM, Frederic de Villamil wrote:
> Hi Petri,
>
> Thank you for reporting and filling a bug. This one will start with the current
"can't reproduce yet". So I'll have to dig through this a little bit more.
>
> Best regards,
> Fred

Ok, thanks. Please let me know if I can help in any way in tracing
this... I'll try to look at the Typo internals and insert some debugging
stuff of my own, but I'm not familiar at all with how the file upload
works there. It could of course be something specific to my system, but
as noted it worked fine in 6.0.4. and I've ran "bundle update" and
"RAILS_ENV=production rake db:migrate" without any errors coming to
light.

-Petri
This topic is locked and can not be replied to.