Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-10557

Replace custom reading Implementation-* from MANIFEST.MF by java.lang.Package methods

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0
    • Component/s: None
    • Labels:
      None
    • Similar issues:
    • Processed by team:
      Platform
    • Sprint:
      Platform Sprint 145, Platform Sprint 147

      Description

      There are some that have been reading Implementation-* attributes from the MANIFEST.MF resource manually by manipulating relative URL path using ../../../../, which doesn't seem to be very safe, as explained in HSTTWO-3890.

      I'd like to propose changes in the following:

      • org.hippoecm.frontend.model.SystemInfoDataProvider.getCMSVersion() should simply use Home.class.getPackage().getImplementationVersion() and Home.class.getPackage().getImplementationBuild().

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                wko Woonsan Ko
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: