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

forbidden api error during precommit DateMathFunction

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: main (9.0)
    • Component/s: Build
    • Labels:
      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

              • Assignee:
                mdrob Mike Drob
                Reporter:
                mdrob Mike Drob
              • Votes:
                0 Vote for this issue
                Watchers:
                7 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