Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Session again #90

Open
wizardone opened this issue Apr 3, 2013 · 1 comment
Open

Invalid Session again #90

wizardone opened this issue Apr 3, 2013 · 1 comment

Comments

@wizardone
Copy link

Last time i had this problem i fixed it by removing quotes. This time i have no idea what to do. Here is the debug output:
SugarCRM CE 6.5.0.

{"agent"=>"a0D3000000EVt8vEAD", "name"=>"Re: iLoad", "sf_id"=>"a0va00000013AqpAAE", "sf_owner"=>"", "sf_ownerid"=>"", "sf_createddate"=>"", "sf_createdby"=>"", "sf_createdbyid"=>"", "sf_lastactivitydate"=>"", "sf_lastmodifieddate"=>"", "sf_lastmodifiedby"=>"", "sf_lastmodifiedbyid"=>"", "sf_recruiter"=>"", "sf_region"=>"", "receiver"=>"[email protected]", "cc"=>""}
{"agent"=>"", "name"=>"Lipotrim", "sf_id"=>"a0va00000012eCDAAY", "sf_owner"=>"", "sf_ownerid"=>"", "sf_createddate"=>"", "sf_createdby"=>"", "sf_createdbyid"=>"", "sf_lastactivitydate"=>"", "sf_lastmodifieddate"=>"", "sf_lastmodifiedby"=>"", "sf_lastmodifiedbyid"=>"", "sf_recruiter"=>"", "sf_region"=>"", "receiver"=>"[email protected]", "cc"=>""}
{"agent"=>"", "name"=>"RE: New Application - UK Immigration Helpline Ltd", "sf_id"=>"a0va0000005oqo3AAA", "sf_owner"=>"", "sf_ownerid"=>"", "sf_createddate"=>"", "sf_createdby"=>"", "sf_createdbyid"=>"", "sf_lastactivitydate"=>"", "sf_lastmodifieddate"=>"", "sf_lastmodifiedby"=>"", "sf_lastmodifiedbyid"=>"", "sf_recruiter"=>"", "sf_region"=>"", "receiver"=>"[email protected]", "cc"=>""}
get_module_fields: Request:
{
"session": "pe9o3e9rk0qv06enq3t2tpegq3",
"module_name": "emp_Email"
}

get_module_fields: JSON Response:
{"module_name"=>"emp_Email",
"module_fields"=>
{"id"=>
{"name"=>"id", "type"=>"id", "label"=>"ID", "required"=>1, "options"=>[]},
"name"=>
{"name"=>"name",
"type"=>"name",
"label"=>"Name",
"required"=>1,
"options"=>[]},
"date_entered"=>
{"name"=>"date_entered",
"type"=>"datetime",
"label"=>"Date Created",
"required"=>0,
"options"=>
{"="=>{"name"=>"=", "value"=>"Equals"},
"not_equal"=>{"name"=>"not_equal", "value"=>"Not On"},
"greater_than"=>{"name"=>"greater_than", "value"=>"After"},
"less_than"=>{"name"=>"less_than", "value"=>"Before"},
"last_7_days"=>{"name"=>"last_7_days", "value"=>"Last 7 Days"},
"next_7_days"=>{"name"=>"next_7_days", "value"=>"Next 7 Days"},
"last_30_days"=>{"name"=>"last_30_days", "value"=>"Last 30 Days"},
"next_30_days"=>{"name"=>"next_30_days", "value"=>"Next 30 Days"},
"last_month"=>{"name"=>"last_month", "value"=>"Last Month"},
"this_month"=>{"name"=>"this_month", "value"=>"This Month"},
"next_month"=>{"name"=>"next_month", "value"=>"Next Month"},
"last_year"=>{"name"=>"last_year", "value"=>"Last Year"},
"this_year"=>{"name"=>"this_year", "value"=>"This Year"},
"next_year"=>{"name"=>"next_year", "value"=>"Next Year"},
"between"=>{"name"=>"between", "value"=>"Is Between"}}},
"date_modified"=>
{"name"=>"date_modified",
"type"=>"datetime",
"label"=>"Date Modified",
"required"=>0,
"options"=>
{"="=>{"name"=>"=", "value"=>"Equals"},
"not_equal"=>{"name"=>"not_equal", "value"=>"Not On"},
"greater_than"=>{"name"=>"greater_than", "value"=>"After"},
"less_than"=>{"name"=>"less_than", "value"=>"Before"},
"last_7_days"=>{"name"=>"last_7_days", "value"=>"Last 7 Days"},
"next_7_days"=>{"name"=>"next_7_days", "value"=>"Next 7 Days"},
"last_30_days"=>{"name"=>"last_30_days", "value"=>"Last 30 Days"},
"next_30_days"=>{"name"=>"next_30_days", "value"=>"Next 30 Days"},
"last_month"=>{"name"=>"last_month", "value"=>"Last Month"},
"this_month"=>{"name"=>"this_month", "value"=>"This Month"},
"next_month"=>{"name"=>"next_month", "value"=>"Next Month"},
"last_year"=>{"name"=>"last_year", "value"=>"Last Year"},
"this_year"=>{"name"=>"this_year", "value"=>"This Year"},
"next_year"=>{"name"=>"next_year", "value"=>"Next Year"},
"between"=>{"name"=>"between", "value"=>"Is Between"}}},
"modified_user_id"=>
{"name"=>"modified_user_id",
"type"=>"assigned_user_name",
"label"=>"Modified By",
"required"=>0,
"options"=>[]},
"modified_by_name"=>
{"name"=>"modified_by_name",
"type"=>"assigned_user_name",
"label"=>"Modified By",
"required"=>0,
"options"=>[]},
"created_by"=>
{"name"=>"created_by",
"type"=>"assigned_user_name",
"label"=>"Created By",
"required"=>0,
"options"=>[]},
"created_by_name"=>
{"name"=>"created_by_name",
"type"=>"assigned_user_name",
"label"=>"Created By",
"required"=>0,
"options"=>[]},
"description"=>
{"name"=>"description",
"type"=>"text",
"label"=>"Description",
"required"=>0,
"options"=>[]},
"deleted"=>
{"name"=>"deleted",
"type"=>"bool",
"label"=>"Deleted",
"required"=>0,
"options"=>[],
"default_value"=>"0"},
"assigned_user_id"=>
{"name"=>"assigned_user_id",
"type"=>"relate",
"label"=>"Assigned User Id",
"required"=>0,
"options"=>[]},
"assigned_user_name"=>
{"name"=>"assigned_user_name",
"type"=>"relate",
"label"=>"Assigned to",
"required"=>0,
"options"=>[]},
"body"=>
{"name"=>"body",
"type"=>"text",
"label"=>"body",
"required"=>0,
"options"=>[]},
"receiver"=>
{"name"=>"receiver",
"type"=>"varchar",
"label"=>"receiver",
"required"=>0,
"options"=>[]},
"cc"=>
{"name"=>"cc",
"type"=>"varchar",
"label"=>"cc",
"required"=>0,
"options"=>[]},
"sf_id"=>
{"name"=>"sf_id",
"type"=>"varchar",
"label"=>"Salesforce ID",
"required"=>0,
"options"=>[]},
"sf_owner"=>
{"name"=>"sf_owner",
"type"=>"varchar",
"label"=>"Owner (Salesforce)",
"required"=>0,
"options"=>[]},
"sf_ownerid"=>
{"name"=>"sf_ownerid",
"type"=>"varchar",
"label"=>"Owner Id (Salesforce)",
"required"=>0,
"options"=>[]},
"sf_lastmodifiedby"=>
{"name"=>"sf_lastmodifiedby",
"type"=>"varchar",
"label"=>"Last Modified By (Salesforce)",
"required"=>0,
"options"=>[]},
"sf_createdby"=>
{"name"=>"sf_createdby",
"type"=>"varchar",
"label"=>"Created By (Salesforce)",
"required"=>0,
"options"=>[]},
"sf_createdbyid"=>
{"name"=>"sf_createdbyid",
"type"=>"varchar",
"label"=>"Created By ID (Salesforce)",
"required"=>0,
"options"=>[]},
"sf_lastmodifiedbyid"=>
{"name"=>"sf_lastmodifiedbyid",
"type"=>"varchar",
"label"=>"Last Modified By ID (Salesforce)",
"required"=>0,
"options"=>[]},
"sf_createddate"=>
{"name"=>"sf_createddate",
"type"=>"varchar",
"label"=>"Created Date (Salesforce)",
"required"=>0,
"options"=>[]},
"sf_lastmodifieddate"=>
{"name"=>"sf_lastmodifieddate",
"type"=>"varchar",
"label"=>"Last Modified Date (Salesforce)",
"required"=>0,
"options"=>[]},
"sf_lastactivitydate"=>
{"name"=>"sf_lastactivitydate",
"type"=>"varchar",
"label"=>"Last Activity Date (Salesforce)",
"required"=>0,
"options"=>[]},
"sf_recruiter"=>
{"name"=>"sf_recruiter",
"type"=>"varchar",
"label"=>"Recruiter (Salesforce)",
"required"=>0,
"options"=>[]},
"sf_region"=>
{"name"=>"sf_region",
"type"=>"varchar",
"label"=>"Region (Salesforce)",
"required"=>0,
"options"=>[]},
"emp_merchant_emp_email_1_name"=>
{"name"=>"emp_merchant_emp_email_1_name",
"type"=>"relate",
"label"=>"Merchant",
"required"=>0,
"options"=>[]}},
"link_fields"=>
{"created_by_link"=>
{"name"=>"created_by_link",
"type"=>"link",
"relationship"=>"emp_email_created_by",
"module"=>"Users",
"bean_name"=>"User"},
"modified_user_link"=>
{"name"=>"modified_user_link",
"type"=>"link",
"relationship"=>"emp_email_modified_user",
"module"=>"Users",
"bean_name"=>"User"},
"assigned_user_link"=>
{"name"=>"assigned_user_link",
"type"=>"link",
"relationship"=>"emp_email_assigned_user",
"module"=>"Users",
"bean_name"=>"User"},
"emp_merchant_emp_email_1"=>
{"name"=>"emp_merchant_emp_email_1",
"type"=>"link",
"relationship"=>"emp_merchant_emp_email_1",
"module"=>"",
"bean_name"=>""},
"emp_merchant_emp_email_1emp_merchant_ida"=>
{"name"=>"emp_merchant_emp_email_1emp_merchant_ida",
"type"=>"link",
"relationship"=>"emp_merchant_emp_email_1",
"module"=>"",
"bean_name"=>""},
"emp_email_securitygroups_1"=>
{"name"=>"emp_email_securitygroups_1",
"type"=>"link",
"relationship"=>"emp_email_securitygroups_1",
"module"=>"",
"bean_name"=>""}}}

set_entry: Request:
{
"session": "pe9o3e9rk0qv06enq3t2tpegq3",
"module_name": "emp_Email",
"name_value_list": {"cc":{"name":"cc","value":""},"name":{"name":"name","value":"Re: [USG] Credit Card Processing Failed"},"receiver":{"name":"receiver","value":"[email protected]"},"sf_createdby":{"name":"sf_createdby","value":""},"sf_createdbyid":{"name":"sf_createdbyid","value":""},"sf_id":{"name":"sf_id","value":"a0va00000013IWFAA2"},"sf_lastmodifiedby":{"name":"sf_lastmodifiedby","value":""},"sf_lastmodifiedbyid":{"name":"sf_lastmodifiedbyid","value":""},"sf_owner":{"name":"sf_owner","value":""},"sf_ownerid":{"name":"sf_ownerid","value":""},"sf_recruiter":{"name":"sf_recruiter","value":""},"sf_region":{"name":"sf_region","value":""}}
}

set_entry: JSON Response:
{"name"=>"Invalid Session ID",
"number"=>11,
"description"=>"The session ID is invalid"}

login: Request:
{
"user_auth": {
"user_name": "admin",
"password": "21232f297a57a5a743894a0e4a801fc3",
"version": 2
},
"application": "sugarcrm_rubygem"
}

login: JSON Response:
{"id"=>"pe9o3e9rk0qv06enq3t2tpegq3",
"module_name"=>"Users",
"name_value_list"=>
{"user_id"=>{"name"=>"user_id", "value"=>"1"},
"user_name"=>{"name"=>"user_name", "value"=>"admin"},
"user_language"=>{"name"=>"user_language", "value"=>"en_us"},
"user_currency_id"=>{"name"=>"user_currency_id", "value"=>"-99"},
"user_currency_name"=>
{"name"=>"user_currency_name", "value"=>"US Dollars"}}}

set_entry: Request:
{
"session": "pe9o3e9rk0qv06enq3t2tpegq3",
"module_name": "emp_Email",
"name_value_list": {"cc":{"name":"cc","value":""},"name":{"name":"name","value":"Re: [USG] Credit Card Processing Failed"},"receiver":{"name":"receiver","value":"[email protected]"},"sf_createdby":{"name":"sf_createdby","value":""},"sf_createdbyid":{"name":"sf_createdbyid","value":""},"sf_id":{"name":"sf_id","value":"a0va00000013IWFAA2"},"sf_lastmodifiedby":{"name":"sf_lastmodifiedby","value":""},"sf_lastmodifiedbyid":{"name":"sf_lastmodifiedbyid","value":""},"sf_owner":{"name":"sf_owner","value":""},"sf_ownerid":{"name":"sf_ownerid","value":""},"sf_recruiter":{"name":"sf_recruiter","value":""},"sf_region":{"name":"sf_region","value":""}}
}

set_entry: JSON Response:
{"name"=>"Invalid Session ID",
"number"=>11,
"description"=>"The session ID is invalid"}

login: Request:
{
"user_auth": {
"user_name": "admin",
"password": "21232f297a57a5a743894a0e4a801fc3",
"version": 2
},
"application": "sugarcrm_rubygem"
}

login: JSON Response:
{"id"=>"pe9o3e9rk0qv06enq3t2tpegq3",
"module_name"=>"Users",
"name_value_list"=>
{"user_id"=>{"name"=>"user_id", "value"=>"1"},
"user_name"=>{"name"=>"user_name", "value"=>"admin"},
"user_language"=>{"name"=>"user_language", "value"=>"en_us"},
"user_currency_id"=>{"name"=>"user_currency_id", "value"=>"-99"},
"user_currency_name"=>
{"name"=>"user_currency_name", "value"=>"US Dollars"}}}

set_entry: Request:
{
"session": "pe9o3e9rk0qv06enq3t2tpegq3",
"module_name": "emp_Email",
"name_value_list": {"cc":{"name":"cc","value":""},"name":{"name":"name","value":"Re: [USG] Credit Card Processing Failed"},"receiver":{"name":"receiver","value":"[email protected]"},"sf_createdby":{"name":"sf_createdby","value":""},"sf_createdbyid":{"name":"sf_createdbyid","value":""},"sf_id":{"name":"sf_id","value":"a0va00000013IWFAA2"},"sf_lastmodifiedby":{"name":"sf_lastmodifiedby","value":""},"sf_lastmodifiedbyid":{"name":"sf_lastmodifiedbyid","value":""},"sf_owner":{"name":"sf_owner","value":""},"sf_ownerid":{"name":"sf_ownerid","value":""},"sf_recruiter":{"name":"sf_recruiter","value":""},"sf_region":{"name":"sf_region","value":""}}
}

set_entry: JSON Response:
{"name"=>"Invalid Session ID",
"number"=>11,
"description"=>"The session ID is invalid"}

login: Request:
{
"user_auth": {
"user_name": "admin",
"password": "21232f297a57a5a743894a0e4a801fc3",
"version": 2
},
"application": "sugarcrm_rubygem"
}

login: JSON Response:
{"id"=>"pe9o3e9rk0qv06enq3t2tpegq3",
"module_name"=>"Users",
"name_value_list"=>
{"user_id"=>{"name"=>"user_id", "value"=>"1"},
"user_name"=>{"name"=>"user_name", "value"=>"admin"},
"user_language"=>{"name"=>"user_language", "value"=>"en_us"},
"user_currency_id"=>{"name"=>"user_currency_id", "value"=>"-99"},
"user_currency_name"=>
{"name"=>"user_currency_name", "value"=>"US Dollars"}}}

@chicks
Copy link
Owner

chicks commented Apr 22, 2013

Sugar likes to invalidate your session any time it chokes on data passed via REST. The only thing that looks like it might be causing a problem is the colon in "Re: [USG] Credit Card Processing Failed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants