Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): PREM RADHAKRISHNAN / PREM RADHAKRISHNAN (PREM RADHAKRISHNAN)
Created: 08/07/2014
Components: Web Services, General
Versions: 10.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: Final /
Priority/Frequency: Critical / All users will encounter
Locale/System: English / Win 2008 Server
Vote Count: 1
Problem Description: When you try to return JSON from a secure ColdFusion Service it throws an error . Input length must be multiple of 16 when decrypting with padded cipher
Steps to Reproduce:
Here is a sample component that authenticates a user and returns a JSON . Instead of returning the JSON this throws an error. The same code works in HTTP
<cfcomponent accessors="true">
<cffunction name="loginUser" access="remote" returntype="struct" returnformat="JSON" >
<cfargument name="username" type="string" required="yes">
<cfargument name="password" type="string" required="yes">
<cfargument name="applicationId" type="string" required="yes">
<cfif GetAuthUser() neq "">
<cflogout>
</cfif>
<cfset var retargs = StructNew()>
<cfset retargs.authenticated="NO">
<cflogin>
<cfset euserArray = new doeadmin.services.everifyUserService().login(arguments.username, arguments.password) />
<cfset userCount = new doeadmin.services.everifyUserService().searchCount(arguments.username, arguments.password) />
<cfif userCount eq 1>
<cfset retargs.authenticated="YES">
<cfset session.uuid = #euserArray[1].getUserId()#>
<cfset session.firstName = #euserArray[1].getFirstName()#>
<cfloginuser name="#arguments.username#" password="#arguments.password#" roles="">
<cfelse>
<cfset retargs.authenticated="NO">
</cfif>
</cflogin>
<cfreturn retargs>
</cffunction>
<cffunction name="logoutUser" access="remote" returntype="string" >
<cflogout/>
<cfreturn "YES"/>
</cffunction>
</cfcomponent>
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3802104
External Customer Info:
External Company:
External Customer Name: Prem Radhakrishnan
External Customer Email:
External Test Config: My Hardware and Environment details:
Windows 2008 Server, ColdFusion 11
Attachments:
Comments: