Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-16867

RSL failover fails when building using an Ant task and specifying an empty policy-file-url

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 3.2 (Release)
    • None
    • Ant Tasks
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Specify an RSL failover in an mxmlc task for your Flex app, but leave the policy-file-url empty. For example:

      <runtime-shared-library-path path-element="${FLEX_HOME}/frameworks/libs/framework.swc">
      <url rsl-url="framework_3.2.0.3958.swz" policy-file-url=""/>
      <url rsl-url="framework_3.2.0.3958.swf" policy-file-url=""/>
      </runtime-shared-library-path>

      2. Run the task with "ant -debug" to see that it does not pass an empty policy-file-url to the compiler. Note that the compiler expects a policy-file-url after every RSL url, and in the "Actual Results" below you can see that the SWF immediately follows the SWZ.

      NOTE: This may not sound like that bad a bug, until you think about the fact that the SWF has now been created without RSL failover. What's worse, there was no feedback to tell the user/builder that the build didn't happen perfectly. So, the customer thinks they have built successfully, but then tests the SWF and RSL failover doesn't work.

      Actual Results:

      Execute:Java13CommandLauncher: Executing 'C:\Program Files (x86)\Java\jdk1.6.0_1
      0\jre\bin\java.exe' with arguments:
      '-classpath'
      'C:\flexSDK\3.2.0.3958\lib\mxmlc.jar'
      'flex2.tools.Compiler'
      ...
      '-runtime-shared-library-path'
      'C:/flexSDK/3.2.0.3958/frameworks/libs/framework.swc'
      'framework_3.2.0.3958.swz'
      'framework_3.2.0.3958.swf'
      ...

      Expected Results: There should be an argument passed to the compiler after both the SWZ and the SWF. For example, the output from the workaround is:

      Execute:Java13CommandLauncher: Executing 'C:\Program Files (x86)\Java\jdk1.6.0_1
      0\jre\bin\java.exe' with arguments:
      '-classpath'
      'C:\flexSDK\3.0.0.477\lib\mxmlc.jar'
      'flex2.tools.Compiler'
      ...
      '-runtime-shared-library-path'
      'C:/flexSDK/3.0.0.477//frameworks/libs/framework.swc'
      'framework_3.0.0.477.swz'
      ' '
      'framework_3.0.0.477.swf'
      ' '
      ...

      Workaround (if any): Put a space in the policy-file-url, instead of leaving it empty.

      <runtime-shared-library-path path-element="${FLEX_HOME}/frameworks/libs/framework.swc">
      <url rsl-url="framework_3.0.0.477.swz" policy-file-url=" "/>
      <url rsl-url="framework_3.0.0.477.swf" policy-file-url=" "/>
      </runtime-shared-library-path>

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: