summaryrefslogtreecommitdiff
path: root/indra/llplugin/tests
diff options
context:
space:
mode:
authorMonroe Linden <monroe@lindenlab.com>2010-04-07 18:15:56 -0700
committerMonroe Linden <monroe@lindenlab.com>2010-04-07 18:15:56 -0700
commit2ba90ca87174a6f29ae467b4677e4876cd113e8f (patch)
tree169eac0b4c299350ea209315dc77adb10270386a /indra/llplugin/tests
parent463c0778ea6f0728164732944da30fff73f83afd (diff)
Fix for EXT-6756: google apps auth doesn't work right with shared media cookies
Added "HttpOnly" to the allowed field names in LLPluginCookieStore::Cookie::parse(). (This was the actual cause of the failure -- cookies with this field in them were silently failing to parse.) Added some LL_WARNS logging on this sort of cookie parse failure, which will make similar problems much easier to track down in future. Also added tags to most of the logging in llplugincookiestore.cpp to make it easier to selectively enable it when debugging. Added a cookie with all allowable field names to the unit test. Reviewed by Sam at http://codereview.lindenlab.com/1247014
Diffstat (limited to 'indra/llplugin/tests')
-rw-r--r--indra/llplugin/tests/llplugincookiestore_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llplugin/tests/llplugincookiestore_test.cpp b/indra/llplugin/tests/llplugincookiestore_test.cpp
index 020d9c1977..c903464c64 100644
--- a/indra/llplugin/tests/llplugincookiestore_test.cpp
+++ b/indra/llplugin/tests/llplugincookiestore_test.cpp
@@ -127,7 +127,7 @@ namespace tut
// Valid, distinct cookies:
std::string cookie01 = "cookieA=value; domain=example.com; path=/";
- std::string cookie02 = "cookieB=value; domain=example.com; path=/"; // different name
+ std::string cookie02 = "cookieB=value; Domain=example.com; Path=/; Max-Age=10; Secure; Version=1; Comment=foo!; HTTPOnly"; // cookie with every supported field, in different cases.
std::string cookie03 = "cookieA=value; domain=foo.example.com; path=/"; // different domain
std::string cookie04 = "cookieA=value; domain=example.com; path=/bar/"; // different path
std::string cookie05 = "cookieC; domain=example.com; path=/"; // empty value