Details

    • Type: Task
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.8.10
    • Labels:
    • Sprint:
      May 2018 Sprint

      Description

      <cfscript>
          x = RepeatString( "abc", 500000); // i.e 0.5mb
          function y (required array arr){
              writeOutput(arr.toList());
          }
          y (x);
      </cfscript>
      

      outputs the whole 500,000 character string as the error and into the logs, only the first few 100 odd characters are needed to understand why the type validation failed

      lucee.runtime.exp.UDFCasterException: invalid call of the function y, first Argument (arr) is of invalid type, 
      can't cast String [abcabcabcabcabcabcabc ( another 500,000 bytes )] to a value of type [array] 
       	at lucee.runtime.type.UDFImpl.castToAndClone(UDFImpl.java:113) 
       	at lucee.runtime.type.UDFImpl.defineArguments(UDFImpl.java:126) 
       	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:354) 
       	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:226) 
       	at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:771) 
       	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:756) 
       	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1718) 
       	at long_cfm$cf.call(/long.cfm:7) 
       	at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:933) 
       	at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:823) 
       	at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:225) 
       	at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:43) 
       	at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2464) 
       	at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2454) 
       	at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2427) 
       	at lucee.runtime.engine.Request.exe(Request.java:44) 
       	at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1091) 
      

        Attachments

          Activity

            People

            • Assignee:
              pothys-mitrahsoft Pothys - MitrahSoft
              Reporter:
              zac.spitzer Zac Spitzer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: