Tapestry
  1. Tapestry
  2. TAPESTRY-2502

When the GridDataSource reports more available rows than actual rows (due to race conditions with updates), the Grid will fail because of IndexOutOfRange exceptions

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.13
    • Fix Version/s: 5.0.14
    • Component/s: Core Components
    • Labels:
      None

      Description

      GridDataSource requires you to return the number of rows from the
      getAvailableRows method. Later prepare gets called allowing you to get
      the records (or some of). Now if between the call to getAvailableRows
      and prepare some records are deleted you'll end up with less records
      then reported by getAvailableRows. Now what should be returned from
      getRowValue? I tried returning null but that was not allowed (like in
      exceptions occured).

      What I would like is that when getRowValue returns
      null that the grid stops requesting more rows. This would also make it
      easier when you do not know how many rows you have in advance.

        Activity

        Martijn Brinkers created issue -
        Martijn Brinkers made changes -
        Field Original Value New Value
        Summary ridDataSource and possible 'race condition' gridDataSource and possible 'race condition'
        Howard M. Lewis Ship made changes -
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Summary gridDataSource and possible 'race condition' When the GridDataSource reports more available rows than actual rows (due to race conditions with updates), the Grid will fail because of IndexOutOfRange exceptions
        Howard M. Lewis Ship made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Fix Version/s 5.0.14 [ 12313214 ]
        Mark Thomas made changes -
        Workflow jira [ 12434621 ] Default workflow, editable Closed status [ 12567647 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12567647 ] jira [ 12590779 ]

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Martijn Brinkers
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development