tracker issue : CF-3802104

select a category, or use search below
(searches all categories and all time range)


| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce


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 "">
        <cfset var retargs = StructNew()>
        <cfset retargs.authenticated="NO">
             <cfset euserArray = new, arguments.password) />
             <cfset userCount = new, 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="">
                   <cfset retargs.authenticated="NO">
        <cfreturn retargs>
    <cffunction name="logoutUser" access="remote" returntype="string" >
        <cfreturn "YES"/>

----------------------------- 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



Refer to:
Comment by External U.
11414 | August 07, 2014 05:59:04 PM GMT
This bug impedes the invocation of web services by means of HTTPS
Vote by External U.
11418 | August 07, 2014 06:01:18 PM GMT
We are not able to repro this issue. After making necessary changes in configuration the JSON data is sent as expected when service is hosted on SSL. Please provide the error details that you have found. And also test code, external server details(name and version).
Comment by Akhila K.
11415 | August 18, 2014 10:05:06 AM GMT
Please provide the information in the earliest. Thanks.
Comment by Akhila K.
11416 | September 12, 2014 12:07:36 AM GMT
This bug is inactive for a while now, hence closing the same. Incase if user is still facing the issue and wants it to be fixed, please let us know. We will look into it.Thanks.
Comment by Akhila K.
11417 | December 03, 2014 12:28:54 AM GMT