Bug 861374

Summary: [Drupal]When update the drupal book, the index displays twice
Product: [Community] Publican Reporter: zhaiyu <yzhai>
Component: publicanAssignee: Hao Chang Yu <hyu>
Status: CLOSED CURRENTRELEASE QA Contact: Ruediger Landmann <rlandman+disabled>
Severity: medium Docs Contact:
Priority: high    
Version: 3.0CC: hyu, jzhao, mjia, mshao, rglasz, rlandman+disabled
Target Milestone: 3.0   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 3.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-31 03:11:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 863927    
Bug Blocks:    
Attachments:
Description Flags
index twice
none
first import
none
second import none

Description zhaiyu 2012-09-28 11:57:37 UTC
Description of problem:
As summary, update the drupal book by import twice, the index part in drupal book displays twice.

Like:
Preface
Preface
Chapter 1
Chapter 1
......

Version-Release number of selected component (if applicable):
3.1-0

How reproducible:
sometimes

Steps to Reproduce:
1.Run the command to generate drupal book
2.Import the drupal book 
3.Repeat step 1,2 again
  
Actual results:
As Description

Expected results:
Index displays normally.

Additional info:

Comment 1 zhaiyu 2012-09-29 03:56:23 UTC
As Bug 862907 #comment, the issue occurs in specific conditon.

1. Build the drupal at first time and import the drupal book
   $publican build --langs en-US --formats=drupal-book
   $cp ****.cvs /opt/***/drupal-6/sites/default/files/imports/
   $cp -a en-US/ /opt/***/drupal-6/sites/default/files/
2. Clean the drupal-book and rebuild the drupal book as Step 1
3. Check the result

Comment 2 zhaiyu 2012-09-29 03:57:24 UTC
Created attachment 618832 [details]
index twice

Comment 3 Hao Chang Yu 2012-10-02 01:37:42 UTC
I tried to import and update a few books several times but still couldn't reproduce the issue. Can you give me more information? That will be great if you can provide me the csv files of the 2 import.

Comment 4 matt jia 2012-10-02 04:20:12 UTC
> As Bug 862907 #comment, the issue occurs in specific conditon.
> 
> 1. Build the drupal at first time and import the drupal book
>    $publican build --langs en-US --formats=drupal-book
>    $cp ****.cvs /opt/***/drupal-6/sites/default/files/imports/
>    $cp -a en-US/ /opt/***/drupal-6/sites/default/files/
> 2. Clean the drupal-book and rebuild the drupal book as Step 1
> 3. Check the result

Hi Zhaiyu,

Follow the above steps to replicate the bug and failed .

Would you please send us the book you imported ?

Cheers, Matt Jia

Comment 6 zhaiyu 2012-10-08 02:25:19 UTC
Created attachment 623221 [details]
first import

Comment 7 zhaiyu 2012-10-08 02:26:32 UTC
Created attachment 623222 [details]
second import

Comment 8 zhaiyu 2012-10-08 02:29:15 UTC
(In reply to comment #4)
> > As Bug 862907 #comment, the issue occurs in specific conditon.
> > 
> > 1. Build the drupal at first time and import the drupal book
> >    $publican build --langs en-US --formats=drupal-book
> >    $cp ****.cvs /opt/***/drupal-6/sites/default/files/imports/
> >    $cp -a en-US/ /opt/***/drupal-6/sites/default/files/
> > 2. Clean the drupal-book and rebuild the drupal book as Step 1
> > 3. Check the result
> 
> Hi Zhaiyu,
> 
> Follow the above steps to replicate the bug and failed .
> 
> Would you please send us the book you imported ?
> 
> Cheers, Matt Jia

Hi Matt Jia

I have uploaded the import files in attachments, you can verify the bug in your local. If have problems, feel free to contact me.

Zhai Yu

Comment 9 zhaiyu 2012-10-08 02:31:02 UTC
(In reply to comment #3)
> I tried to import and update a few books several times but still couldn't
> reproduce the issue. Can you give me more information? That will be great if
> you can provide me the csv files of the 2 import.


Hi Hao

I have uploaded the import files in attachments, you can verify the bug in your local. If have problems, feel free to contact me.

Zhai Yu

Comment 10 zhaiyu 2012-10-08 05:20:21 UTC
Because the publican-doc-3.1-0.el6eng.t7 rpm is broken, the drupal book cannot be produced in build command. The block bug is 863927 for publican-doc-3.1-0.el6eng.t7.

Comment 11 zhaiyu 2012-10-08 08:34:32 UTC
Verified on publican-doc-3.1-0.el6eng.t8, the index issue has been fixed.