rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
From: Neeraj Singh <neerajdotname@gmail.com>
To: Rack Development <rack-devel@googlegroups.com>
Subject: Re: Double quotes are not preserved confirmation
Date: Fri, 14 May 2010 18:25:53 -0700 (PDT)	[thread overview]
Message-ID: <1becb7df-0779-4b99-848a-30f32503d288@v18g2000vbc.googlegroups.com> (raw)
In-Reply-To: <7c5a66d5-4db0-4057-9591-4423af6d9c6a@j36g2000prj.googlegroups.com>

@Simon Thanks for the update.

I should have looked into the archive before asking the question.
Sorry about that.

Well it is an issue confirmed by some and there is already a patch.
Looks like someone has to pull the trigger and apply the patch.



On May 14, 7:32 pm, Simon Chiang <simon.a.chi...@gmail.com> wrote:
> Hi this issue has come up several times now.
>
> *http://groups.google.com/group/rack-devel/browse_thread/thread/befbad...
> *http://groups.google.com/group/rack-devel/browse_thread/thread/f81f79...
>
> I think it is a bug.  I found the commit that introduced this
> behavior.  Looks like it was intentional but perhaps just a bad
> choice?  http://github.com/bahuvrihi/rack/commit/fb4f2b5fe26a0e3821ac0f6361a38...
>
> A patch that removes quote parsing and fixes the specs is here:http://github.com/bahuvrihi/rack/commit/ec6edf522d581336a8900e68bde46...
>
> On May 14, 9:58 am, Neeraj Singh <neerajdotn...@gmail.com> wrote:
>
>
>
> > I am working on this rails tickethttps://rails.lighthouseapp.com/projects/8994/tickets/4576
> > .
>
> > Then I found this test casehttp://github.com/rack/rack/blob/master/test/spec_rack_utils.rb#L35
> > . As you can see if the data has double quotes then double quotes are
> > being removed.
>
> > However if the data has a new line character then double quotes are
> > preserved.
>
> > Questions:
>
> > 1) I looked at the rack spec but could not find any mention of this
> > behavior that double quotes should be removed only if string does not
> > contain a new line character.
>
> > 2) If the existing behavior is the correct behavior then could you
> > please add this test case which makes it explicitly clear that string
> > with new line character will have double quotes preserver.  Here is my
> > commit.
>
> >http://github.com/neerajdotname/rack/commit/1454a2171032e2260dc7199f1...
>
> > Needless to say that test is passing with that commit.
>
> > Thanks
>
> > - Neeraj

  reply	other threads:[~2010-05-15  5:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-14 15:58 Double quotes are not preserved confirmation Neeraj Singh
2010-05-14 23:32 ` Simon Chiang
2010-05-15  1:25   ` Neeraj Singh [this message]
2010-06-06 11:16     ` Andreas S.
2010-06-11 11:21       ` Filip Tepper
2010-06-12  2:44         ` Michael Fellinger
2010-06-30 23:34           ` Jeremy Hinegardner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://groups.google.com/group/rack-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1becb7df-0779-4b99-848a-30f32503d288@v18g2000vbc.googlegroups.com \
    --to=rack-devel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).