Bug 1021917 - Fail to restore the snapshot of a JBossEWS-1.0 app to the existing one
Summary: Fail to restore the snapshot of a JBossEWS-1.0 app to the existing one
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Paul Morie
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-22 10:24 UTC by Zhe Wang
Modified: 2015-05-14 23:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-24 03:26:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Zhe Wang 2013-10-22 10:24:46 UTC
Description of problem:
Given a JBossEWS-1.0 app, it fails to restore its snapshot to an existing app.

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

How reproducible:
always

Steps to Reproduce:
1. create a JBossEWS-1.0 app
2. create a new page under src/main/webapp/ dir with the following code:

<--------testpage.jsp-------->

 <html>
   <head><title>WebPage factory</title></head>
   <body>
     <% out.println("version #num#"); %>
   </body>
 </html>


<---------------------------->

3. change the #num# string to "1"

4. push the change

5. check the testpage.jsp page to see if the change takes effect (print "version 1")

6. save a snapshot of this app

7. change the output string to "version 2"

8, push the change

9. check if the output string becomes "version 2" in testpage.jsp

10. restore this app with the tarball saved in Step 6

11. check the testpage to see if it prints "version 1".

Actual results:
In Step 5 and 9, the page was changed as expected. However, although the CLI showed the restoration was successful,  it actually failed to restore the testpage.jsp (of "version 1") in Step 11.

Expected results:
It should be successful to restore the snapshot of a JBossEWS-1.0 app to the existing one.

Additional info:

Comment 1 Paul Morie 2013-10-28 16:10:05 UTC
PR submitted

Comment 2 openshift-github-bot 2013-10-28 23:59:35 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/ddfdc079af35838b20df8d02000ef66215198510
Fix bug 1021917: update snapshot/restore for new build/deployment

Comment 3 Zhe Wang 2013-10-30 08:19:31 UTC
The bug is still reproducible in INT(devenv_3965).

Comment 4 Zhe Wang 2013-10-30 09:42:43 UTC
I was also able to reproduce this bug in devenv_3967.

Comment 5 Paul Morie 2013-10-30 15:29:30 UTC
Works for me in devenv_3968

Comment 6 Zhe Wang 2013-10-31 05:25:07 UTC
Verified this bug in INT(devenv_3971)


Note You need to log in before you can comment on or make changes to this bug.