[ https://issues.apache.org/jira/browse/CSV-264?focusedWorklogId=495313&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-495313 ]
ASF GitHub Bot logged work on CSV-264: -------------------------------------- Author: ASF GitHub Bot Created on: 05/Oct/20 13:18 Start Date: 05/Oct/20 13:18 Worklog Time Spent: 10m Work Description: SethiPandi commented on pull request #114: URL: https://github.com/apache/commons-csv/pull/114#issuecomment-703626038 Sorry about that, I rebased master and applied the changes requested. I believe this should be good now, though I'll take a peek at the unsuccessful checks now. I usually use `git pull` and `git merge` to obtain changes, I'm a bit new to using `rebase` however. I'm not 100% sure if I was supposed to use `git push --force-with-lease...`, but the usual `git push...` was throwing warnings, please let me know if that's a problem. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 495313) Time Spent: 50m (was: 40m) > Duplicate empty header names are allowed even with > `.withAllowDuplicateHeaderNames(false)` > ------------------------------------------------------------------------------------------ > > Key: CSV-264 > URL: https://issues.apache.org/jira/browse/CSV-264 > Project: Commons CSV > Issue Type: Bug > Components: Parser > Affects Versions: 1.8 > Reporter: Sagar Tiwari > Priority: Major > Time Spent: 50m > Remaining Estimate: 0h > > I'm trying to parse to parse a csv like this: > > {{CSVFormat.DEFAULT}} > {{ .withHeader()}} > {{ .withAllowDuplicateHeaderNames(false)}} > {{ .withAllowMissingColumnNames()}} > {{ .parse(InputStreamReader(FileInputStream(fl)))}} > > One would expect this code to throw an error if the following csv is given as > input: > > > {{"","a",""}} > {{"1","X","3"}} > {{"3","Y","4"}} > > But it doesn't, and asking for `record.get("")` gives the value from the > second column. The first column is ignored. -- This message was sent by Atlassian Jira (v8.3.4#803005)