Re: [PATCH/RFC] http.c: cookie file tightening

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Piotr Szlazak <piotr.szlazak@xxxxxxxxx> 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.




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux