Uploaded image for project: 'Lucee Development'
  1. LDEV-1283

CFX lucee.runtime.cfx.QueryWrap.getData broken

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 5.1.3.18
    • Fix Version/s: 5.2.1.9
    • Labels:
      None

      Description

      We are working with CFX Extensions to address external services.

      A query is passed to the function and is then handled in JAVA:

      Query query = request.getQuery();
      int rows = query.getRowCount(); // 1 row!
      for (int row = 1; row <= rows; row++)

      { LogHelper.logIt("GET_QUERY: ROW: " + row); // Log it to make sure String data = (query.getData(row, 1)); // this is row 1 }

      --> Lucee throws error:
      java.lang.IndexOutOfBoundsException: invalid row index to retrieve Data from query, valid index goes from 1 to 1.

      Stacktrace:

      java.lang.IndexOutOfBoundsException: invalid row index to retrieve Data from query, valid index goes from 1 to 1
      at lucee.runtime.type.QueryImpl.getData(QueryImpl.java:1585)
      at lucee.runtime.cfx.QueryWrap.getData(QueryWrap.java:123)

        Attachments

          Activity

            People

            • Assignee:
              pothys-mitrahsoft Pothys - MitrahSoft
              Reporter:
              easyxms Oliver Neumann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: