Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14426

forbidden api error during precommit DateMathFunction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0
    • Build
    • None

    Description

      When running `./gradlew precommit` I'll occasionally see

      * What went wrong:
      Execution failed for task ':solr:contrib:analytics:forbiddenApisMain'.
      > de.thetaphi.forbiddenapis.ForbiddenApiException: Check for forbidden API calls failed while scanning class 'org.apache.solr.analytics.function.mapping.DateMathFunction' (DateMathFunction.java): java.lang.ClassNotFoundException: org.apache.solr.analytics.function.mapping.DateMathValueFunction (while looking up details about referenced class 'org.apache.solr.analytics.function.mapping.DateMathValueFunction')
      

      `./gradlew clean` fixes this, but I don't understand what or why this happens. Feels like a gradle issue?

      Attachments

        Issue Links

          Activity

            People

              mdrob Mike Drob
              mdrob Mike Drob
              Votes:
              0 Vote for this issue
              Watchers:
              8 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 - 50m
                  50m