From: Junio C Hamano <gitster@pobox.com>
To: Piotr Szlazak <piotr.szlazak@gmail.com>
Cc: Jeff King <peff@peff.net>,
git@vger.kernel.org,
"brian m. carlson" <sandals@crustytoothpaste.net>
Subject: Re: [PATCH/RFC] http.c: cookie file tightening
Date: Wed, 10 Jul 2024 09:33:46 -0700 [thread overview]
Message-ID: <xmqqy169xl3p.fsf@gitster.g> (raw)
In-Reply-To: <2d76e43e-db79-4572-8f41-60fbbea10af6@gmail.com> (Piotr Szlazak's message of "Wed, 10 Jul 2024 12:35:02 +0200")
Piotr Szlazak <piotr.szlazak@gmail.com> writes:
> On the other hand there is no problem if http.cookieFile='' and
> http.saveCookies=true is used together. Git operation is
> successful. But if GIT_TRACE_CURL=1 GIT_TRACE_CURL_NO_DATA=1 is
> enabled, I can see following warning it the output:
>> 12:19:56.280263 http.c:820 == Info: WARNING: failed to save cookies in
> It comes from:
> https://github.com/curl/curl/blob/master/lib/cookie.c#L1758
> But cookies were accepted by the client and sent back to the server.
Thanks for your experiments.
I do not know if it is safe to call the above observed sympotom
"there is no problem". What does it even mean to set cookieFile to
an empty string and ask the cookies to be saved? What does the user
who makes such a pair of requests
[http]
saveCookies = yes
cookieFile = ""
expect to happen? The session begins with an empty set of cookies,
cookies that come from the other side are maintained in-core during
the session, and then at the very end of the session what do they
want to happen to their cookies? "The system will try to save them
but without finding a sensible place to save, it gives a warning
without molesting the main goal of the process (which is to interact
with the other side)" sounds like a rather strange wish.
I'd consider "The system notices that there is no sensible place to
store, so it warns about the conflicting request and ignores
http.saveCookies" a bit more sensible behaviour in such a situation,
but obviously I am biased.
prev parent reply other threads:[~2024-07-10 16:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-09 23:03 [PATCH/RFC] http.c: cookie file tightening Junio C Hamano
2024-07-09 23:49 ` Jeff King
2024-07-10 10:35 ` Piotr Szlazak
2024-07-10 16:33 ` Junio C Hamano [this message]
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=xmqqy169xl3p.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=piotr.szlazak@gmail.com \
--cc=sandals@crustytoothpaste.net \
/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.