Bug 1126391

Summary: [test plan] Import plan's document to same content, system will insert a new version for document.
Product: [Other] TCMS Reporter: yangqiu <qiyang>
Component: ApplicationAssignee: Xu Lei <lexu>
Status: CLOSED WONTFIX QA Contact: tools-bugs <tools-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.8.10CC: aigao, cqi, dli, fhuang, jianchen, junzhang, jzhao, nli, ryang, swei, vchen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-11 10:21:07 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:
Attachments:
Description Flags
[test plan] Import plan's document to same value, system will insert a new version for document. none

Description yangqiu 2014-08-04 10:23:00 UTC
Created attachment 923839 [details]
[test plan] Import plan's document to same value, system will insert a new version for document.

Description of problem:
as summary.

Version-Release number of selected component (if applicable):
v3.8.10-1 on devel server.

How reproducible:
100%

Steps to Reproduce:
1.Create a plan with document like 'text plan 1 - document'
2.Edit this plan, import the plan's document from odt file, and the file content is the same as the old document like 'text plan 1 - document'
3.Enter plan's document history page, inspect how many versions for this plan.
https://tcms-devel.app.eng.nay.redhat.com/plan/10138/history/

Actual results:
There are 2 versions for this plan.

Expected results:
There is only 1 version for this plan, because the content for plan's document does not change.

Additional info:

Comment 1 Xu Lei 2014-08-05 07:51:24 UTC
verified, odt document will append some characters around the text, just like <p></p>, all of this will be the whole plan text to do check sum.

so if you type "abc" in web ui, it means <p>abc</p> in database.
and type "abc" in odt, it means <p class="ODT P1">abc</p>, they are different.


we can not remove the element just like <p> because it control the style that plan texts are shown in web ui.

I think it's acceptable.

Comment 2 yangqiu 2014-08-11 10:21:07 UTC
confirm with dev, the above issue does not happened when import different files with same format, so close the issue.