Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11619

Restore safeguard mechanism for discovery config's int and long properties

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Discovery Oak 1.2.40
    • Discovery Oak 1.2.42
    • Discovery
    • None

    Description

      With the update to parent 47 the discovery.oak's Config "lost" the ability to gracefully deal with wrong values, such as empty strings. It used to silently swallow these, but now fails loudly with

      org.osgi.service.component.ComponentException: java.lang.NumberFormatException: For input string: ""
      	at org.apache.felix.scr.impl.inject.internal.Annotations$Handler.invoke(Annotations.java:379) [org.apache.felix.scr:2.2.0]
      	at com.sun.proxy.$Proxy368.backoffStandbyFactor(Unknown Source)
      	at org.apache.sling.discovery.oak.Config.configure(Config.java:238) [org.apache.sling.discovery.oak:1.2.40]
      	at org.apache.sling.discovery.oak.Config.activate(Config.java:159) [org.apache.sling.discovery.oak:1.2.40]
      

      Attachments

        Activity

          People

            stefanegli Stefan Egli
            stefanegli Stefan Egli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 50m
                1h 50m