Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-3738

FileSplitter Should Read Line Instead of Using ready()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 4.1.5
    • Fix Version/s: 4.2 M2, 4.1.6
    • Component/s: None
    • Labels:

      Description

      The iterator within FileSplitter uses BufferedReader.ready() in hasNext().

      This is incorrect because the file might have more data, but ready can return false if there is no data currently available to read.

      While unlikely to happen with disk files, it could happen with a remote file.

      Change hasNext() to read the line and return true until the line has been consumed by next().

        Attachments

          Activity

            People

            Assignee:
            grussell Gary Russell
            Reporter:
            grussell Gary Russell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: