tracker issue : CF-3857705

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

cfcompile sourceless deployment: typename of isInstanceOf must be case sensitive

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

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

Created: 11/25/2014

Components: Language, Functions

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win All

Vote Count: 0

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on August 25, 2019 using build 2016.0.01.298513
Problem Description:

cfcompile sourceless deployment (with -deploy) changes isInstanceOf() behavior.  Typename parameter must be case-sensitive whereas the source works fine with different cases (case-insensitive).

Steps to Reproduce:

1. Create an interface FooAble
2. Create a class Foo that implements FooAble
3. Instantiate Foo as foo and output isInstanceOf(foo , "fooable")

Actual Result:
source deployment shows Yes
sourceless deployment shows No

Expected Result:
No different in behavior for source and sourceless.

Any Workarounds:
Pay special attention to isInstanceOf().

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

Watson Bug ID:	3857705

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

Attachments:

  1. November 26, 2014 00:00:00: 1_testcode.7z
  2. November 27, 2014 00:00:00: 2_UPDATE_intrfc_test.zip

Comments:

henrylearn2rock, I am unable to observe the issue with CF 10 update 14 (build 291717) on Windows 7 x64. I am attaching the source and compiled files that I used for the purpose. Running interf_test_cmpld/testMath.cfm outputs "Is the obj an instance of the component: YES" Here's the command I used to compile the source: c:\ColdFusion10\cfusion\bin>cfcompile.bat -deploy c:\inetpub\cf10 c:\inetpub\cf10\intrfc_test_src c:\inetpub\cf10\interf_test_cmpld successful 3 total 3 elapsed 2.652 sec Can you please share some more details: -The update level of your CF10 server. -The command you used to compile the file. -if possible, the source and the compiled files.
Comment by Piyush K.
9949 | November 26, 2014 06:50:38 AM GMT
see UPDATE_intrfc_test.zip. I'm on CF 10 update 14. C:\ColdFusion10\labs\bin>cfcompile -deploy D:\Projects\labs\intrfc_test D:\Projects\labs\intrfc_test D:\Projects\labs\intrfc_test_bin successful 4 total 4 elapsed 1.869 sec Then I copy content of \intrfc_test_bin back to \intrfc_test as instructed.
Comment by External U.
9950 | November 26, 2014 09:18:16 PM GMT
henrylearn2rock, Thank you for sharing the details. a couple of points: - I am getting the isinstanceOf output as "NO", with your source code as well as compiled cfm. - Interestingly, the isInstanceOf method resolves things correctly is called directly in the testMath.cfm (code below) But not if it is put in menu.cfc <!--------------------------- -testmath.cfm ----------------------------> <cfset site = new com.site.Site()> <cfoutput>#isinstanceof(site, "com.site.isite")#</cfoutput> <cfset request.site = new com.site.Site()> <cfset menu = new com.menu.Menu()> <cfdump var="#menu.test()#"> <!--------------------------- -testmath.cfm : end ----------------------------> So while I continue to investigate this, perhaps you can corroborate the second point and double check your result for the first. BTW, I tried this on CF10 u14 (build 10,0,14,291717) / Win 7x64.
Comment by Piyush K.
9951 | December 03, 2014 08:41:35 AM GMT
CF11 u5 and CF10 u14 seem to be case sensitive to the typename attrib, at the source file level as well, not just the compiled files (using the test code shared by the reporter). closing this since the issue is not observed with standalone CF 12 / Win 7 x64
Comment by Piyush K.
9952 | July 13, 2015 05:02:07 AM GMT
Hi Adobe, I've verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
31193 | August 25, 2019 03:49:53 AM GMT