Uploaded image for project: 'Document Management System'
  1. Document Management System
  2. DMS-1419

Unhanded exception in DocumentData.GetFormDetailsWithValues

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Enhancements - Fall
    • Labels:
      None
    • Company:
      All Clients/Multiple Clients

      Description

      There is line of code 'parsedKeyValuePdfDataparam = parsedKeyValuePdfData.ToDictionary(d => d.Key, d => d.Value);' in DocumentData.GetFormDetailsWithValues where possible exception is not handled. Now when parsedKeyValuePdfData has any duplicate column name, this method throws exception. Here if duplicate keys exist, then either that key should be skipped or value be overridden. 

        Attachments

        1. Screenshot (2997).png
          Screenshot (2997).png
          215 kB
        2. Screenshot (2998).png
          Screenshot (2998).png
          146 kB
        3. test2 (2).html
          4 kB

          Activity

          akash.thakur Akash Thakur (Inactive) logged work - 18/Jun/19 01:42 AM
          • Time Spent:
            4h
             
            • Understanding Bug
            • Analysis.
            • Reproduction with Template creation for duplicate values.
            • bug fix approach suitability.
            • discussion with Ganesh
            • code fix & code merges PR creation.
            • Unit testing with a duplicate key.
            • etc efforts.
          priya.dhamande Priya Dhamande (Inactive) logged work - 15/Jul/19 12:25 AM
          • Time Spent:
            1h
             

            Prod testing
            discussion

          priya.dhamande Priya Dhamande (Inactive) logged work - 15/Jul/19 01:35 AM
          • Time Spent:
            0.25h
             

            Discussion and updates

            People

            Assignee:
            akash.thakur Akash Thakur (Inactive)
            Reporter:
            harshveer.singh Harshveer Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4h Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 5.25h
                5.25h