Displaying 20 results from an estimated 300 matches similar to: "RJS & IE Woes"
2006 Jun 27
1
Errno::EINVAL: Invalid arguments - IE crash
Hi,
When I run my app on IE, it crashes everytime. However, when running
on Firefox, it is perfectly fine. I saw the following error on the my
server.
[2005-11-15 10:45:20] ERROR Errno::EINVAL: Invalid argument
c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:325:in `gets''
c:/ruby/lib/ruby/1.8/webrick/httprequest.rb:325:in `__send__''
2006 Feb 16
1
file_column problem
I cannot get the file_column plugin to work. Probably something stupid
I am doing wrong as I am pretty much a newbie...
1. I added a varchar column to my table called "image"
2. This is my class:
class User < ActiveRecord::Base
file_column :image, :magick => { :geometry => "80x80>" }
attr_accessor :new_password
... rest of class
3. In my controller I
2006 Feb 22
0
Can you make an HTTP request inside an Ajax action?
I have a regular controller action which, when called, makes an HTTP
GET request to another server. That works fine. I''d like to throw
that inside an action called with link_to_remote, but that''s having
problems. The error I get follows. Any ideas?
Pat
http://localhost:3000/main/ -> /javascripts/prototype.js
[2006-02-22 06:08:11] ERROR ThreadError: timeout within
2007 Nov 11
1
Passing from data via POST
Mongrel Users: How does the HttpHandler process() method deal with
data passed via POST?
The HttpRequest object captures all GET params appended to an URL, but
I just tried to
retrieve data passed via POST and it came up nil.
that is, I assumed the HttpRequest object contained the
param named in the html form and its value.But the POST passed params
are not found in the
request object.
Please
2007 Jan 21
1
Strange Ajax Error Since Upgrade
Hi All
I''m getting the following very strange Ajax error and I''ve searched
Google, this group and various other places to no avail. So I''m
desperately hoping someone here can help.
Whenever I try to execute any Ajax call whether as a form request or a
link_to_remote link I get the following error:
------------------- FORM REQUEST -------------------
[2007-01-21
2006 Nov 26
2
Writing a mod_put HttpHandler
I''m looking at writing a Mongrel handler that mimics the behavior of
the Apache mod_put [1]. It allows for the streaming upload of very
large (GB) files; it also supports resumable upload.
Before I get too involved, I''d like to ask if my reading of the
mongrel source code is correct, i.e. what I want to do isn''t
currently possible.
Looking at the class
2006 Jul 20
0
Routing error
Hi!
I''ve appended this to the standard config/routing.rb:
map.connect '':id/:action'', :controller => ''cms/publish''
and it works but gives an error with every single HTTPrequest, even the
ones matching the standard (and higher priority) routes.
As an alternative I tried implementing it using
map.connect ''*path'', :controller
2007 Feb 05
2
recv vs. read in HTTPRequest#read_socket
Hello all,
The following change to Mongrel::HttpRequest:
def read_socket(len)
if !@socket.closed?
data = @socket.recv(len) # <--- formerly @socket.read(len)
if !data
raise "Socket read return nil"
elsif data.length != len
raise "Socket read returned insufficient data: #{data.length}"
else
data
end
else
raise "Socket
2006 May 30
2
Mongrel Bug
Mongrel''s tempfile generation on
win32 is broken meaning large files can''t be uploaded.
On line 198 of mongrel.rb
(0.13.3) HttpRequest#initialize the tempfile function is called:
if clen > Const::MAX_BODY
@body =
Tempfile.new(self.class.name)
@body.binmode
else
Unfortunately this also
includes the module name as the example shows:
2011 Sep 26
2
undefined method `options' for #<EventMachine::HttpClien
Hi , I am writing a rake task to consume twitter stream API. The task
contains the following code:
consumer = OAuth::Consumer.new(CONSUMER_KEY, CONSUMER_SECRET, :site =>
''http://twitter.com'')
access_token =
OAuth::AccessToken.new(consumer,ACCESS_TOKEN,ACCESS_TOKEN_SECRET)
oauth_params = {:consumer => consumer, :token => access_token}
EventMachine.run do
# now,
2007 Jan 23
4
Want feedback on Mongrel patch for handling partial PUT requests
By default, Mongrel will delete the HTTP request body and short
circuit calling any handlers if a request is interrupted or
incomplete. Unfortunately, this breaks any attempt to correctly
handle a partial PUT. (BTW, PUT is *way* more efficient for uploads
compared to POST which requires a MIME parsing step.) So, about a
month ago I wrote up some patches to Mongrel 0.3.18 that allowed
2004 Apr 21
2
Extracting information from webpages
> Hello R Community,
>
> I would like to be able to download recent (yesterday's close is fine)
> stock and
> mutual fund prices from somewhere and use them for a personal finance
> project.
> Ideally, I would do this at a website of my choosing (e.g.
> morningstar.com) and
> have the possibility of getting a wide range of other information about
> the security
2007 Dec 28
6
Arbitrary system files readable in 1.0.4 - 1.1.2
I just found a vulnerability in one of my web apps that was running
Mongrel 1.1.2 where I could go to URIs like
/.%252e/.%252e/.%252e/.%252e/.%252e/.%252e/.%252e/etc/passwd and it
would serve the actual /etc/passwd file.
The issue seems to be in lib/mongrel/handlers.rb in the change from
1.0.3 to 1.0.4
req_path = HttpRequest.unescape(path_info)
- if @path
- req_path =
2006 Mar 10
0
WEBrick crashing
ruby 1.8.2 (2004-12-25) [i386-mswin32]
latest version of edge rails - patched to make the server work with
win32 (http://dev.rubyonrails.org/ticket/4139)
On some pages WEBrick is crashing with the following:
d:/programming/ruby/lib/ruby/1.8/profiler.rb:27: You have a nil object
when you
didn''t expect it! (NoMethodError)
You might have expected an instance of Array.
The error occured
2006 Sep 20
0
boy, that mongrel_upload_progress handler sucks!
I started actually using the upload progress handler, and noticed it
was leaking memory over time. Looking at the code, I noticed that
cancelled uploads weren''t being cleaned up. I bugged Zed about adding
a request_abort callback to handlers, but I found a simple way to
monkey patch that in:
# config/mongrel_upload_progress.conf
# yes, this file is being used with -S meaning
2006 Aug 07
1
DirHandler escaping (patch)
fiddled around a bit and got DirGHandler to work for both files and directories with spaces in them, and plusses in them (on disk).
eg:
<a href="/files/usr/portage/packages/All/gtk%2B-2.10.1.tbz2">gtk+-2.10.1.tbz2</a><br/>
<a href="/files/root/hey+whatsthis+dir">hey whatsthis dir</a>
both end up at the right place now..
..c.
--------------
2006 Aug 20
14
http parser
Just thought I''d let you know that your http parser worked great for
creating an http protocol handler for Eventmachine. It wouldn''t take
that much effort to use Eventmachine for Mongrel, might be worth a
shot just to see how it does. A few things would need to be
restructered, like HttpRequest where you read the rest of the body,
and calling the handler. But it
2006 Nov 13
6
mongrel_upload_progress question/possible suggestion
Hey all,
First off, thanks to Rick Olson and whoever else was involved with this
plugin... It''s been amazingly easy to implement.
I''ve got a question about the path_info parameter, though... It seems that
unless the request PATH_INFO exactly matches the path_info passed in to the
plugin at inclusion, it won''t actually trigger Add and add the upload to the
list of
2006 Aug 07
1
DirHandler in surplus slashing / unrequited unescaping
im using Mongrels to serve up /usr/portage/packages for other gentoo boxen. since i guess im the guinea pig with the DirHandler, ran into a couple issues:
first, the client showed no files in the remote binhost, turns out the DirHandler was adding a trailing "/" to every filename, presumably making the client think they were directories, not files. attached is a patch which fixes this
2006 Jul 09
6
ajax effects
Hi,
i was wondering if there was some kind of general line of code i could
add to my application, anywhere i suppose, that would generate some kind
of effect to notify the user that an effect is happening...it could be a
box on the top of the screen or something, that would be like the small
bar at the end of the browser that shows the user the status of a
loading page ... i was hoping