Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1149

IllegalArgumentException at SQLBuilder.addCriteria() at StaffReadPlatformServiceImpl.retrieveAllLoanOfficersInOfficeById()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Labels:
      None

      Description

      See FINERACT-932 for general background; I've found this in logs of https://www.fineract.dev:

       java.lang.IllegalArgumentException: criteria column name must match [a-zA-Z_][a-zA-Z0-9_-]*\.)?[a-zA-Z_-][a-zA-Z0-9_-]* : is_loan_officer= =
      
              at org.apache.fineract.infrastructure.security.utils.SQLBuilder.addCriteria (SQLBuilder.java:79)
              at org.apache.fineract.organisation.staff.service.StaffReadPlatformServiceImpl.retrieveAllLoanOfficersInOfficeById (StaffReadPlatformServiceImpl.java:164)
              at org.apache.fineract.portfolio.loanaccount.service.LoanReadPlatformServiceImpl.retrieveAllowedLoanOfficers (LoanReadPlatformServiceImpl.java:1478)
              at org.apache.fineract.portfolio.loanaccount.api.LoansApiResource.template (LoansApiResource.java:444)

      Manthan Surkar FYI would you perhaps want to create an integration test for this? Just a thought.

      I'll raise a PR to fix it (as it seems to be a trivial problem).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vorburger Michael Vorburger
                Reporter:
                vorburger Michael Vorburger
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: