Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 203560

Summary: [Improve Page Break Management] "PageBreak avoid" leads to data mixing in sub-subreport
Product: z_Archived Reporter: Christina Stellmach <christina.stellmach>
Component: BIRTAssignee: Birt-ReportDesigner <Birt-ReportDesigner-inbox>
Status: VERIFIED FIXED QA Contact: Xiaodan Wang <xwang>
Severity: critical    
Priority: P3 CC: bas, bluesoldier, christophe.garabedian, contact, enricomilanese, hustlg, wenfeng.fwd, wyan, xwang, zqian
Version: 2.2.0Keywords: plan
Target Milestone: 2.5.0 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard: Autoed,G
Attachments:
Description Flags
zip containing report project with example
none
2 samples with problems none

Description Christina Stellmach CLA 2007-09-17 04:02:56 EDT
Build ID:  I20070625-1500

Steps To Reproduce:
1. create a report with sub subreports
2. set pagebreak avoid inside and after on header grid of report and subreport
3. view report as pdf


More information:
My report contains a list with a grid (2 rows) as header and a second list as subreport. This subreport contains a grid (2 rows) as header and a table as subsubreport. 
If I use "pagebreak auto" everything is okay excepting pagebreaks inside and after report and subreport header grids. If I use "pagebreak inside/after avoid" on header grids BIRT starts to mix data in PDF output.
Comment 1 Christina Stellmach CLA 2007-09-17 04:05:44 EDT
Created attachment 78529 [details]
zip containing report project with example
Comment 2 Yu Chen CLA 2007-10-16 02:04:20 EDT
Hi, Christina

Do you mean some table headers were repeated twice at wrong place?

If so, we have fixed the problem before. Pls download our new build for a try.

Comment 3 Christina Stellmach CLA 2007-10-16 03:07:39 EDT
(In reply to comment #2)
> Hi, Christina
> Do you mean some table headers were repeated twice at wrong place?
> If so, we have fixed the problem before. Pls download our new build for a try.

No, its much more critical.
See the attached example:
On pageBreakAvoid.pdf page 9 and pageBreakAuto.pdf page 6 the result starts to differ in content. In pageBreakAuto.pdf the content is correct, in pageBreakAvoid.pdf the content is wrong !!!
Comment 4 Bjorn-Andre Skaar CLA 2008-03-07 08:48:51 EST
Hi, I'm experiencing exactly the same problem (running BIRT 2.2.0). I have a Table Group with a repeatable header. When I set "Page break inside = avoid", the data comes out all wrong in the PDF report (but not in the preview).
Comment 5 Christina Stellmach CLA 2008-04-07 03:13:51 EDT
If the User of our Reporting environment creates a report, the pdf Output is 
a document which will be released. THIS is "the report", not the html view 
on the screen. I do not understand, why you reduce the Priority of this bug.
Do I have to explain the criticality of data mixing in aircraft industrie ?
Comment 6 Yu Chen CLA 2008-04-07 06:33:38 EDT
We have disabled "PageBreak avoid" from BIRT 2.2, and will support it in the future. Currently, "PageBreak avoid" does not take effect and does not lead to data mixing.
Comment 7 Wei Yan CLA 2008-06-03 22:55:25 EDT
defer to future and should be resolved with the page number/page model/page event together.
Comment 8 Benjamin Cabé CLA 2009-01-19 12:21:36 EST
Hi guys :)

Is 2.5.0M5 still the actual target? Is the fix already available in HEAD?
Comment 9 Benjamin Cabé CLA 2009-01-23 04:55:25 EST
ping?
Comment 10 Gang Liu CLA 2009-01-23 04:58:39 EST
The issue is caused by page-break-avoid, The implementation of page-break-avoid had been removed since 2.3.1. So the issue does not exist, but page-break-avoid is not supported yet.
Comment 11 Benjamin Cabé CLA 2009-01-23 05:12:59 EST
Thanks for answer!
In fact what I meant was: when will page break avoid be supported again?
Because we need a solution to avoid page break in the middle of a group in cross tabs.

For example

        X Y Z
2008 Q1 a b c
     Q2 d e f
     Q3 g h i
     Q4 j k l
2009 Q1 a b c
     Q2 d e f
     Q3 g h i
     Q4 j k l


Can be rendered this way
        X Y Z
2008 Q1 a b c
     Q2 d e f
     Q3 g h i
-------------- > page break
        X Y Z
     Q4 j k l
2009 Q1 a b c
     Q2 d e f
     Q3 g h i
     Q4 j k l

and this is bad :(

The page break "auto" at "quarter" level should be settable to "avoid"...
Or perhaps am I just not aware of an existing workaround for that kind of problem?
Comment 12 Wei Yan CLA 2009-02-04 03:31:40 EST
need more time to resolve those issues.
Comment 13 Gang Liu CLA 2009-03-03 04:10:50 EST
Support page-break avoid.
Comment 14 Xiaodan Wang CLA 2009-03-09 04:58:37 EDT
Verified in build (2.5.0.v20090309-0630).
Comment 15 Benjamin Cabé CLA 2009-03-13 10:15:17 EDT
(In reply to comment #13)
> Support page-break avoid.
> 


Even if it is now possible to use 'avoid' values in the "page break" settings of cross tab groups, it doesn't seem to have any effect...
Am I missing something?

Cheers
Comment 16 Benjamin Cabé CLA 2009-03-13 10:16:47 EDT
(In reply to comment #15)
> Am I missing something?

Well, it is perhaps bug 183056?
If it is, will a fix be done for the 2.5 version?

Thanks again!
Comment 17 Wenfeng Li CLA 2009-03-13 12:29:18 EDT
(In reply to comment #16)
> (In reply to comment #15)
> > Am I missing something?
> Well, it is perhaps bug 183056?
> If it is, will a fix be done for the 2.5 version?
> Thanks again!

183056 does not seem to be the same issue.  Reopen this bug to verify that page break avoid is supported for Xtab Row dimension levels (groups).
Comment 18 Gang Liu CLA 2009-03-16 01:28:54 EDT
Reassign to xtab team to support page-break-avoid first.
Comment 19 Xiaodan Wang CLA 2009-03-16 01:51:04 EDT
page-break-avoid has worked for table, and bug 268290 has already been submitted for the support of crosstab page-break-avoid.
Comment 20 Zhiqiang Qian CLA 2009-03-16 02:47:27 EDT
The Crosstab "page break avoid" support is traced by bug 268290. I'm marking this bug as fixed as it's originally for Table and Grid.
Comment 21 Christophe CLA 2009-04-14 06:00:21 EDT
Created attachment 131753 [details]
2 samples with problems

Hi guys,

The "Pagebreak avoid" functionality has been fixed (Verified in build 2.5.0v20090410), but I found some other regressions (See the attached file "2 samples with problems.zip") :

Sample 1 :
- At the bottom of page 1, the horizontal line is not aligned.
- The page 3 should not exist.

Sample 2 :
- At the bottom of page 1, the line is missing.

Thanks in advance.
Cheers.
Comment 22 Xiaodan Wang CLA 2009-04-16 05:40:57 EDT
(In reply to comment #21)
> Created an attachment (id=131753) [details]
> 2 samples with problems
> 
> Hi guys,
> 
> The "Pagebreak avoid" functionality has been fixed (Verified in build
> 2.5.0v20090410), but I found some other regressions (See the attached file "2
> samples with problems.zip") :
> 
> Sample 1 :
> - At the bottom of page 1, the horizontal line is not aligned.
> - The page 3 should not exist.
> 
> Sample 2 :
> - At the bottom of page 1, the line is missing.
> 
> Thanks in advance.
> Cheers.
> 

Christophe,

For Sample 1:
- At the bottom of page 1, the horizontal line is not aligned.
Open a new bug 272466 for this.
- The page 3 should not exist.
The third page is generated because you set page-break-after: always to the group, and if you remove the setting, the group "ESCADRON : Saint-Dizier" will be drawn in the second page.

For Sample 2 :
- At the bottom of page 1, the line is missing.
I run the report in build (2.5.0.v20090416-0630) and it can not be reproduced again. Though the border is drawn, the same thing happens as Sample 1 that at the bottom of page 1, the horizontal line is not aligned which can be tracked by bug 272466.


Thanks
Comment 23 Xiaodan Wang CLA 2009-04-16 05:42:00 EDT
Set this bug as Verified.
Comment 24 Christophe CLA 2009-04-16 12:56:05 EDT
You're right.
I'll track the bug 272466. I hope it will be fixed as soon as possible.

Thanks in advance.
Cheers.