Bug 1221059 - 500 Internal Server Error on snapshot rollback
Summary: 500 Internal Server Error on snapshot rollback
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: WebUI
Version: 2.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Grant Gainey
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 1322962 space27
TreeView+ depends on / blocked
 
Reported: 2015-05-13 09:03 UTC by bas
Modified: 2017-09-28 18:11 UTC (History)
1 user (show)

Fixed In Version: spacewalk-java-2.4.20
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1322962 (view as bug list)
Environment:
Last Closed: 2016-03-31 19:20:36 UTC
Embargoed:


Attachments (Terms of Use)

Description bas 2015-05-13 09:03:38 UTC
Description of problem:
When trying to rollback a package profile on the "Systems => Provisioning => Snapshots" page, I get a 500 internal server error. This only occurs when there are packages to rollback. A rollback of a group or channel change works.

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

How reproducible:
Always

Steps to Reproduce:
1. Update package on client registered with Spacewalk 2.3.
2. Try to rollback to an earlier snapshot with an older version of the installed package.
3. After clicking "Rollback to Snapshot" an internal server error is generated 

Actual results:
Return internal server error

Expected results:
Schedule package rollback

Additional info:
Using Spacewalk 2.3 on CentOS 7 with Oracle DB

Tomcat log shows:
May 13, 2015 10:24:51 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [action] in context with path [/rhn] threw exception [java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer] with root cause
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
        at com.redhat.rhn.domain.server.ServerSnapshot.preparePackagesForSync(ServerSnapshot.java:462)
        at com.redhat.rhn.domain.server.ServerSnapshot.rollbackPackages(ServerSnapshot.java:369)
        at com.redhat.rhn.frontend.action.systems.sdc.SnapshotRollbackAction.rollback(SnapshotRollbackAction.java:108)
        at com.redhat.rhn.frontend.action.systems.sdc.SnapshotRollbackAction.execute(SnapshotRollbackAction.java:79)

Comment 1 Grant Gainey 2016-03-31 19:20:36 UTC
spacewalk.github:
a729b9f4b32c0238b210924cadb70739576eed55

fixed 2015-05-20, was released in SW-2.4

Comment 2 Eric Herget 2017-09-28 18:11:06 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.


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