tracker issue : CF-4019598

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

CharsetEncode() returns something different, update 16 on Win Server 2012

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/ThirdParty

Reporter/Name(from Bugbase): Henry Ho / Henry Ho (Henry Ho)

Created: 07/10/2015

Components: General Server

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 0

Problem Description:

CharsetEncode('utf-8') returns something different on Windows Server 2012 with Update 16 on JVM 1.8


Steps to Reproduce:

<cfset salt = "ohAmCN+16W4=">

<cfset saltBinary = BinaryDecode(salt, 'base64')>
<cfset saltUtf8 = CharsetEncode(saltBinary, 'utf-8')>
		
<cfdump var="#saltUtf8#">

Actual Result:

?x10;&??n

Expected Result:

SALTUTF8	?x10;&??


Any Workarounds:

NONE

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4019598

External Customer Info:
External Company:  
External Customer Name: Henry
External Customer Email:  
External Test Config: My Hardware and Environment details:



Server Details  

Server Product  ColdFusion  

Version  10,0,16,293499  

Tomcat Version  7.0.54.0  

Edition  Standard    

Serial Number  1187-5001-7234-1200-5888-5145    

Operating System  Windows Server 2012    

OS Version  6.2    

Update Level  /C:/ColdFusion10/cfusion/lib/updates/chf10000016.jar    

Adobe Driver Version  4.1 (Build 0001)    

JVM Details  

Java Version  1.8.0_45    

Java Vendor  Oracle Corporation    

Java Vendor URL  http://java.oracle.com/  

Java Home  C:\Program Files\Java\jre1.8.0_45    

Java File Encoding  Cp1252    

Java Default Locale  en_US    

File Separator  \    

Path Separator  ;    

Line Separator  Chr(13)  

User Name  WEBSITEWWW3R$    

User Home  C:\Windows\system32\config\systemprofile    

User Dir  C:\ColdFusion10\cfusion\bin    

Java VM Specification Version  1.8    

Java VM Specification Vendor  Oracle Corporation    

Java VM Specification Name  Java Virtual Machine Specification    

Java VM Version  25.45-b02    

Java VM Vendor  Oracle Corporation    

Java VM Name  Java HotSpot(TM) 64-Bit Server VM    

Java Specification Version  1.8    

Java Specification Vendor  Oracle Corporation    

Java Specification Name  Java Platform API Specification    

Java Class Version  52.0

Attachments:

Comments:

Hi Henry, Can you please let us know the original salt in a "readable format" for us to get the actual string output rather than UTF characters?
Comment by Kailash B.
6727 | September 21, 2015 05:00:56 AM GMT
Hi Mr.Bihani, Please use the provided salt in Base64 and try to reproduce it pre and post Update 16 on JVM 1.8
Comment by External U.
6728 | September 21, 2015 12:04:07 PM GMT
FYI all engines supported by http://trycf.com/ returns the actual result "?x10;&??" without the extra "n" that CF with updates 16 or later returns
Comment by External U.
6729 | November 18, 2015 02:13:49 PM GMT
duplicated note because "Sorry this operation could not be completed at this time, please try again later." shows up on top even though the note is submitted successfully.
Comment by External U.
6730 | November 18, 2015 02:14:29 PM GMT
This was working fine with JDK 7 and had got regressed with Java 8. Nothing can be done from ColdFusion. We need to get a fix from Oracle for this. Will try to see if there is any workaround available to fix this bug,
Comment by Awdhesh K.
6731 | August 22, 2016 03:10:57 AM GMT
This is not a ColdFusion issue, but an issue from JAVA side as the same was working for JVM 7. Only stopped working after moving to JVM 8. We have raised a bug with oracle for this with the bug id: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8175877 Hence moving it to ToTrack Third Party
Comment by Kailash B.
6732 | March 23, 2017 06:45:47 AM GMT
Hi, This is an issue with Java itself, and oracle has said they won't be fixing this issue. We also in that case won't be able to resolve this issue. You can take a look at the comments mentioned in the bug we raised with oracle. The link is: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8175877 Thanks, Kailash
Comment by Kailash B.
6733 | September 17, 2017 06:19:09 PM GMT