Cookie overflow error #179

Closed
lironbeni opened this Issue Dec 20, 2012 · 4 comments

Comments

Projects
None yet
2 participants
@lironbeni

I've been starting to get this weird error:
ActionDispatch::Cookies::CookieOverflow (ActionDispatch::Cookies::CookieOverflow)

When doing advanced search using ransack, with multiple conditions.
Here is the sent paramseters:

Parameters: {
    "commit"=>"Search", 
    "q_c_0_v_0_parent_id"=>{"id"=>"46"}, 
    "q_c_0_v_0_member"=>{"id"=>"1"}, 
    "q_c_0_v_0_created_at_date"=>"", 

    "q_c_1355995072012_v_0_parent_id"=>{"id"=>"46"}, 
    "q_c_1355995072012_v_0_member"=>{"id"=>"1"}, 
    "q_c_1355995072012_v_0_created_at_date"=>"2012-12-20 11:20 ",

    "q_c_1355995063702_v_0_member"=>{"id"=>"1"}, 
    "q_c_1355995063702_v_0_created_at_date"=>"", 
    "q_c_1355995063702_v_0_parent_id"=>{"id"=>"46"}, 

    "q_c_1355995087523_v_0_parent_id"=>{"id"=>"51"}, 
    "q_c_1355995087523_v_0_member"=>{"id"=>"1"}, 
    "q_c_1355995087523_v_0_created_at_date"=>""

    "q"=>{"c"=>{
      "0"=>{"a"=>{"0"=>{"name"=>"title"}}, "p"=>"cont", "v"=>{"0"=>{"value"=>""}}}, 
      "1355995072012"=>{"a"=>{"0"=>{"name"=>"created_at"}}, "p"=>"lteq", "v"=>{"0"=>{"value"=>"2012-12-20 11:20"}}}, 
      "1355995063702"=>{"a"=>{"0"=>{"name"=>"member_id"}}, "p"=>"eq", "v"=>{"0"=>{"value"=>"1"}}},
      "1355995087523"=>{"a"=>{"0"=>{"name"=>"parent_id"}}, "p"=>"eq", "v"=>{"0"=>{"value"=>"51"}}}} 
    }, 

    "utf8"=>"✓", 
    "search_type"=>"advanced",     
  }
@radar

This comment has been minimized.

Show comment Hide comment
@radar

radar Dec 20, 2012

Member

Are you attempting to store these parameters inside the session at all?

On 20 December 2012 20:34, Liron Beniash Hacohen
notifications@github.comwrote:

I've been starting to get this weird error:
ActionDispatch::Cookies::CookieOverflow
(ActionDispatch::Cookies::CookieOverflow)

When doing advanced search using ransack, with multiple conditions.
Here is the sent paramseters:

Parameters: {
"commit"=>"Search",
"q_c_0_v_0_parent_id"=>{"id"=>"46"},
"q_c_0_v_0_member"=>{"id"=>"1"},
"q_c_0_v_0_created_at_date"=>"",

"q_c_1355995072012_v_0_parent_id"=>{"id"=>"46"},
"q_c_1355995072012_v_0_member"=>{"id"=>"1"},
"q_c_1355995072012_v_0_created_at_date"=>"2012-12-20 11:20 ",

"q_c_1355995063702_v_0_member"=>{"id"=>"1"},
"q_c_1355995063702_v_0_created_at_date"=>"",
"q_c_1355995063702_v_0_parent_id"=>{"id"=>"46"},

"q_c_1355995087523_v_0_parent_id"=>{"id"=>"51"},
"q_c_1355995087523_v_0_member"=>{"id"=>"1"},
"q_c_1355995087523_v_0_created_at_date"=>""

"q"=>{"c"=>{
  "0"=>{"a"=>{"0"=>{"name"=>"title"}}, "p"=>"cont", "v"=>{"0"=>{"value"=>""}}},
  "1355995072012"=>{"a"=>{"0"=>{"name"=>"created_at"}}, "p"=>"lteq", "v"=>{"0"=>{"value"=>"2012-12-20 11:20"}}},
  "1355995063702"=>{"a"=>{"0"=>{"name"=>"member_id"}}, "p"=>"eq", "v"=>{"0"=>{"value"=>"1"}}},
  "1355995087523"=>{"a"=>{"0"=>{"name"=>"parent_id"}}, "p"=>"eq", "v"=>{"0"=>{"value"=>"51"}}}}
},

"utf8"=>"✓",
"search_type"=>"advanced",

}


Reply to this email directly or view it on GitHubhttps://github.com/ernie/ransack/issues/179.

Member

radar commented Dec 20, 2012

Are you attempting to store these parameters inside the session at all?

On 20 December 2012 20:34, Liron Beniash Hacohen
notifications@github.comwrote:

I've been starting to get this weird error:
ActionDispatch::Cookies::CookieOverflow
(ActionDispatch::Cookies::CookieOverflow)

When doing advanced search using ransack, with multiple conditions.
Here is the sent paramseters:

Parameters: {
"commit"=>"Search",
"q_c_0_v_0_parent_id"=>{"id"=>"46"},
"q_c_0_v_0_member"=>{"id"=>"1"},
"q_c_0_v_0_created_at_date"=>"",

"q_c_1355995072012_v_0_parent_id"=>{"id"=>"46"},
"q_c_1355995072012_v_0_member"=>{"id"=>"1"},
"q_c_1355995072012_v_0_created_at_date"=>"2012-12-20 11:20 ",

"q_c_1355995063702_v_0_member"=>{"id"=>"1"},
"q_c_1355995063702_v_0_created_at_date"=>"",
"q_c_1355995063702_v_0_parent_id"=>{"id"=>"46"},

"q_c_1355995087523_v_0_parent_id"=>{"id"=>"51"},
"q_c_1355995087523_v_0_member"=>{"id"=>"1"},
"q_c_1355995087523_v_0_created_at_date"=>""

"q"=>{"c"=>{
  "0"=>{"a"=>{"0"=>{"name"=>"title"}}, "p"=>"cont", "v"=>{"0"=>{"value"=>""}}},
  "1355995072012"=>{"a"=>{"0"=>{"name"=>"created_at"}}, "p"=>"lteq", "v"=>{"0"=>{"value"=>"2012-12-20 11:20"}}},
  "1355995063702"=>{"a"=>{"0"=>{"name"=>"member_id"}}, "p"=>"eq", "v"=>{"0"=>{"value"=>"1"}}},
  "1355995087523"=>{"a"=>{"0"=>{"name"=>"parent_id"}}, "p"=>"eq", "v"=>{"0"=>{"value"=>"51"}}}}
},

"utf8"=>"✓",
"search_type"=>"advanced",

}


Reply to this email directly or view it on GitHubhttps://github.com/ernie/ransack/issues/179.

@lironbeni

This comment has been minimized.

Show comment Hide comment
@lironbeni

lironbeni Dec 23, 2012

Yes, at the moment this is how our system needs to work.. Why does every filter I'm adding to the search increase the session size by 1.5KB?

Yes, at the moment this is how our system needs to work.. Why does every filter I'm adding to the search increase the session size by 1.5KB?

@lironbeni

This comment has been minimized.

Show comment Hide comment
@lironbeni

lironbeni Jan 9, 2013

Does anybody have a solution for this???

Does anybody have a solution for this???

@radar

This comment has been minimized.

Show comment Hide comment
@radar

radar Jan 9, 2013

Member

Don't store the parameters inside the session. Store them in a database or cache (like Redis or Memcached) and store the key to access them in the session.

On 9 January 2013 22:07, Liron Beniash Hacohen notifications@github.comwrote:

Does anybody have a solution for this???


Reply to this email directly or view it on GitHubhttps://github.com/ernie/ransack/issues/179#issuecomment-12039804.

Member

radar commented Jan 9, 2013

Don't store the parameters inside the session. Store them in a database or cache (like Redis or Memcached) and store the key to access them in the session.

On 9 January 2013 22:07, Liron Beniash Hacohen notifications@github.comwrote:

Does anybody have a solution for this???


Reply to this email directly or view it on GitHubhttps://github.com/ernie/ransack/issues/179#issuecomment-12039804.

@radar radar closed this Jan 9, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment