Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29401

nuxeoctl showconf json output does not support multiline description

    XMLWordPrintable

    Details

    • Team:
      PLATFORM
    • Sprint:
      nxplatform #16
    • Story Points:
      0

      Description

      Packages like hotfixes contain multine description like:

      <package type="hotfix" name="nuxeo-10.10-HF01" version="1.0.0">
        <title>Nuxeo 10.10-HF01</title>
        <description>
          Download and install the latest hotfix to keep your Nuxeo up-to-date.
          Changes will take effects after restart.
        </description>
        <home-page>http://www.nuxeo.com/</home-page>
        <vendor>Nuxeo</vendor>
        <installer restart="true" />
        <uninstaller restart="true" />
        <hotreload-support>false</hotreload-support>
        <nuxeo-validation>nuxeo_certified</nuxeo-validation>
        <production-state>production_ready</production-state>
        <supported>true</supported>
        <platforms>
          <platform>server-10.10</platform>
        </platforms>
        <visibility>MARKETPLACE</visibility>
        <license>LGPL</license>
        <license-url>http://www.gnu.org/licenses/lgpl.html</license-url>
      </package>
       

      While issuing the following command:

      nuxeoctl showconf --json
      

      this ends up with wrongly formatted JSON:

      "description":"Download and install the latest hotfix to keep your Nuxeo up-to-date.""    Changes will take effects after restart."
      

      This prevents any tooling from reading it and using it.

      Workaround:

      s/[^\]""/\\n/g

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 2 hours
                  1d 2h