Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-2976

webservice Complex Objects as arguments don't get accessible data.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.3.0.000, 4.2.0.006
    • Fix Version/s: 4.3.0.000, 4.2.0.007
    • Labels:
      None

      Description

      if you have a remote function that you call via a "webservice" object and that function has an argument that is a cfc/complex type, if you try to access any of the properties in the service, it will say they are invalid.

      testcase is simply to modify the Jira1563/service.cfc with the following:

      <cfcomponent output="false">
      <cffunction name="returnVersion" output="false" access="remote" returntype="Version">
      <cfargument name="version" type="Version" />
      <cfset local.result = createObject("component","Version") />
      <cfset local.version.application = arguments.version.application />
      <cfset local.version.build = arguments.version.build />
      <cfset local.version.builddate = arguments.version.builddate />
      <cfset local.version.version = arguments.version.version />
      <cfreturn local.version />
      </cffunction>
      </cfcomponent>

      and then run the jira1563 test. It will give you the following exception:
      railo.runtime.exp.ExpressionException: Component [Version] has no accessible Member with name [APPLICATION]

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                clitnak Colby Litnak
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: