Uploaded image for project: 'Crunch (Retired)'
  1. Crunch (Retired)
  2. CRUNCH-428

Disallow empty list of paths for file inputs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.0, 0.8.3
    • 0.8.4, 0.11.0
    • None
    • None

    Description

      There is currently no checking on the number of input paths supplied in a list to FileSourceImpl and its subclasses. This can lead to a confusing error when the empty list is deserialized from CrunchInputs, as an attempt is made to create a Path from an empty string.

      The various paths that construct FileSourceImpl subclasses should defensively protect against creating a file source with an empty list of paths.

      Attachments

        1. CRUNCH-428.patch
          8 kB
          Gabriel Reid

        Activity

          People

            gabriel.reid Gabriel Reid
            gabriel.reid Gabriel Reid
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: