All of lore.kernel.org
 help / color / mirror / Atom feed
From: cclien <cclien@gmail.com>
To: Yehuda Sadeh Weinraub <yehudasa@gmail.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: [PATCH] rgw: Lighttpd compatibity.
Date: Fri, 18 Feb 2011 03:36:15 +0800	[thread overview]
Message-ID: <AANLkTikjD_y+hinSi31LFYQp+AyqtGrcK-7gBPCQy6NK@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=RR4soH3Be1fz+sYC=iTK=CRSG2KvZCaQBUs6c@mail.gmail.com>

Hi Yehuda

Thanks for the advice.

Actually the existing code did the job (filter the query string out).

In rgw_rest.cc:
636   s->path_name_url = FCGX_GetParam("REQUEST_URI", s->fcgx->envp);
637   int pos = s->path_name_url.find('?');
638   if (pos >= 0)
639     s->path_name_url = s->path_name_url.substr(0, pos);

And my workaround uses the filtered REQUEST_URI (s->path_name_url). It
should be much closer to SCRIPT_NAME.

Anyway, I will back to check Lighttpd. :D

Best Regards,
CC


On Fri, Feb 18, 2011 at 3:13 AM, Yehuda Sadeh Weinraub
<yehudasa@gmail.com> wrote:
> On Thu, Feb 17, 2011 at 3:20 AM, cclien <cclien@gmail.com> wrote:
>> Hi all
>>
>> I just tried to deploy a rados gateway with Lighttpd.
>> But it have some trouble parsing object names.
>>
>> Here's what I found in debug log on the non-working copy:
>>    RADOS S3 Gateway: SCRIPT_NAME=/mybucket
>>    RADOS S3 Gateway: REQUEST_URI=/mybucket/ceph.tgz
>
> That doesn't look right. May be some lighttpd configuration tweaking issue?
>
>>
>> I think it will be better to retrive user's request from REQUEST_URI.
>>
>
> The problem with REQUEST_URI is that it'll consist the entire line,
> including any parameters added. So using it requires some extra work
> to check for that (pretty trivial, but you should also take care of
> that).
>
> Thanks,
> Yehuda
>
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2011-02-17 19:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-17 11:20 [PATCH] rgw: Lighttpd compatibity cclien
2011-02-17 19:13 ` Yehuda Sadeh Weinraub
2011-02-17 19:36   ` cclien [this message]
2011-02-17 19:38 ` Tommi Virtanen

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-all from there: mbox

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

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

  git send-email \
    --in-reply-to=AANLkTikjD_y+hinSi31LFYQp+AyqtGrcK-7gBPCQy6NK@mail.gmail.com \
    --to=cclien@gmail.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=yehudasa@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.