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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment