similar to: DirHandler escaping (patch)

Displaying 20 results from an estimated 1100 matches similar to: "DirHandler escaping (patch)"

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 Jan 04
5
routing title in url
I''ve set up my app to display a post by retrieving its title instead of id, which works fine, except it looks like this "/post/the+title+of+post%3F" and I want it to be "the_title_of_post?" with underscores instead of plusses. Can anyone shed light? -- Posted via http://www.ruby-forum.com/.
2003 Mar 05
2
compressed archives
Suppose I have a particular version of a largish compressed archive, most likely a .tgz or .tbz2, and that a remote machine has a newer, and only slightly different, version of the same archive, where most of the content hasn't actually changed much. I might attempt to obtain a copy of the newer archive by first copying my local older copy to the newer name as a file to update from. My
2006 Apr 11
0
Large file support (up and down) for Mongrel 0.13.3
I''ve just checked in changes to improve handling of massive posts and massive downloads. Generally speaking, Mongrel has been keeping everything in memory. (Unless you''re using DirHandler and have the sendfile gem in place.) Now, downloads should be pretty swift even without the sendfile gem. HttpResponse#send_file rips out the file streaming support from DirHandler and
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
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 Mar 20
1
RJS & IE Woes
Hi, I''m trying to do a very simple slide_down effect with RJS templates. Basically a user selects a check box and a text box slides down. This works great in firefox, but causes IE to crash. The text box appears and slides down. Then the browser crashes. the in the partial is <div id=''forklift_div''> <label for=''incident_forklift''>Was
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 Oct 19
0
X-Sendfile, static files, windows
Jeremy, I found your old message with this title. I struck the same thing, where the current drive wasn''t the same as the drive I wanted to serve (some) files from. So here''s the patch to add to lib/mongrel/handlers.rb contains class DirHandler. I added two things, first to initialize: def initialize(path, listing_allowed=true, index_html="index.html")
2009 Jul 20
2
asterisk freepbx difference or solutions..
Hello, for a long time i am using asterisk 1.6 with astgui. but for production system i intend to use asterisk 1.4 which i think might be more robust. And for a more developed service options i preferd to install with freepbx. But still there are big plusses and minusses for both system. My complain about astgui+1.6 was.. For example there were no backup trunk config running on that version.Even
2008 Sep 18
2
Ruby on Rails Resource required - New Jersey - 6 Months +
// Please reply this email to jai-Oc46A42Di8jtC6uA/Zb986xOck334EZe@public.gmane.org // Hi, My name is Jai, I am a Technical Recruiter with International Business Solutions. Ltd, NJ. My client in NJ is looking for a JD Edwards Technical Consultant. I have included a description of the project below. Please take a few moments to review, and let me know if this is something you might be interested
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
2009 Jan 09
0
[LLVMdev] LLVM based D compiler released
Maybe it's time to add it to the LLVM projects list. :) The original annoucement on digitalmars.D.announce and http://www.incasoftware.de/~kamm/projects/index.php/2009/01/09/ldc-09-released/ was: --- The first version of LDC (http://www.dsource.org/projects/ldc), the LLVM based compiler for version one of the D programming language has been released for x86-32 Linux. Get it here:
2008 Apr 07
2
problem with Rmpi 0.5-5 and openmpi
Dear knowledgeable experts :-), I am trying to get openmpi, Rmpi and SNOW running on a Myrinet/GM cluster. I'm not an IT expert, but I surely could use a working installation of Rmpi and SNOW. I try to load the Rmpi library and get the following: > library(Rmpi) [master:07230] mca: base: component_find: unable to open osc pt2pt: file not found (ignored)
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 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
2015 Sep 01
7
[Bug 11481] New: --ignore-errors must be a separate option
https://bugzilla.samba.org/show_bug.cgi?id=11481 Bug ID: 11481 Summary: --ignore-errors must be a separate option Product: rsync Version: 3.1.2 Hardware: All OS: All Status: NEW Severity: normal Priority: P5 Component: core Assignee: wayned at samba.org Reporter: