Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-72680

SourceFormatter rule to avoid LPS-67876

    Details

    • Branch Version/s:
      7.0.x
    • Backported to Branch:
      Committed

      Description

      LPS-67876 is long time fixed but we repeat this problem again and again.

      OSGi Configurations are shared across bundles but are not created with location == "?"

      It's dangerous to call

      • org.osgi.service.cm.ConfigurationAdmin#getConfiguration(java.lang.String)
      • org.osgi.service.cm.ConfigurationAdmin#getConfiguration(String pid, String location) with location != "?"

      The only safe call is configurationAdmin.getConfiguration( ... , "?")

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.saechang Michael Saechang
              Reporter:
              tomas.polesovsky Tomáš Polešovský
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 40 weeks, 3 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP22
                  7.0.0 DXP SP4
                  7.0.X EE
                  7.0.4 CE GA5
                  7.1.X
                  Master