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

Disallow empty list of paths for file inputs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0, 0.8.3
    • Fix Version/s: 0.8.4, 0.11.0
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: