Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-15576

FBC does not support $inline syntax for including content from another file

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: FBC
    • Labels:
    • Target Version/s:
    • Sprint:
      AM 2019.14 - Rotary Mill
    • Needs backport:
      No
    • Needs QA verification:
      No
    • Functional tests:
      Yes
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      Bug description

      FBC does not support $inline syntax for including content from another file

      How to reproduce the issue

      1. Install AM using FBC
      2. Extract the server config XML: jq -r .data.serverconfigxml http___localhost_8080_am.json > serverconfig.xml
      3. Change the server's JSON:
        {...
          "serverconfigxml": {
            "$inline": "serverconfig.xml"
          }, ...
        }
        
      4. Restart AM
      Expected behaviour

      AM restarts successfully

      Current behaviour

      AM fails to restart and reports an XML parsing error saying invalid character in prolog.

      Code analysis

      The inlineCoercionFunction is not registered in the JsonValue transformer.

        Attachments

          Activity

            People

            • Assignee:
              jay.bowers Jay Bowers
              Reporter:
              jamesphillpotts James Phillpotts
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: