[ 
https://issues.apache.org/jira/browse/WW-5731?focusedWorklogId=1041101&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1041101
 ]

ASF GitHub Bot logged work on WW-5731:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Sep/26 09:40
            Start Date: 12/Sep/26 09:40
    Worklog Time Spent: 10m 
      Work Description: sonarqubecloud[bot] commented on PR #1921:
URL: https://github.com/apache/struts/pull/1921#issuecomment-5645074802

   ## [![Quality Gate 
Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png
 'Quality Gate 
Passed')](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1921) 
**Quality Gate passed**  
   Issues  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 New 
issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=1921&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png
 '') [0 Accepted 
issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=1921&issueStatuses=ACCEPTED)
   
   Measures  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 Security 
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=1921&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0.0% Coverage on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1921&metric=new_coverage&view=list)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0.0% Duplication on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1921&metric=new_duplicated_lines_density&view=list)
  
     
   <!

Issue Time Tracking
-------------------

    Worklog Id:     (was: 1041101)
    Time Spent: 20m  (was: 10m)

> JasperReport7CsvExporterProvider sets the record delimiter to the field 
> delimiter
> ---------------------------------------------------------------------------------
>
>                 Key: WW-5731
>                 URL: https://issues.apache.org/jira/browse/WW-5731
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JasperReports
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Major
>             Fix For: 7.4.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {{JasperReport7CsvExporterProvider.createExporter}} in 
> {{struts2-jasperreports7-plugin}} configures the CSV exporter with
> {code:java}SimpleCsvExporterConfiguration config = new 
> SimpleCsvExporterConfiguration();
> config.setFieldDelimiter(reportDelimiter);
> config.setRecordDelimiter(reportDelimiter);
> {code}
> so records are separated by the field delimiter ({{,}} by default, or 
> whatever {{struts.jasperReport7.csv.defaultDelimiter}} / 
> {{JasperReport7Aware.getCsvDelimiter}} returns) instead of a newline. The 
> exported CSV comes out as a single line.
> The 6.x plugin ({{JasperReportsResult}}) only sets 
> {{JRCsvExporterParameter.FIELD_DELIMITER}}, so this looks like a copy-paste 
> slip from WW-5455. Dropping the {{setRecordDelimiter}} call restores 
> JasperReports' default record delimiter ({{\n}}).
> {{JasperReport7ResultTest.testExportToCsv}} does not catch it because it only 
> asserts that the output contains the report title; an assertion on the line 
> count would.
> Affects every release since 7.1.0.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to