spacewalkproject/spacewalk — pull request #184 by renner (2014-12-01 10:02:31+00:00)
Title: Forward to a "raw mode" edit page in case of uploaded kickstart profiles

In the UI, when going via Bare Metal IP ranges to an **uploaded** kickstart profile:

Kickstart -> Bare Metal -> [klick on IP range of *uploaded* profile]

You should go here:

kickstart/KickstartIpRangeEditAdvanced.do

Instead you get here:

kickstart/KickstartIpRangeEdit.do

The attached patch adds a redirect to struts-config.xml and lets the action class perform a check similar to the one in [KickstartDetailsEditAction.java, line 89] (https://github.com/spacewalkproject/spacewalk/blob/caf00fb26caee9642a554b770119d1892cfd9f4c/java/code/src/com/redhat/rhn/frontend/action/kickstart/KickstartDetailsEditAction.java#L89).

I don't like too much that comparison I am doing with the path, but it was needed for differentiation since both pages are using the same action class. Let me know if you have a better idea here, or if you'd prefer to somehow refactor action classes in order to avoid such path comparison.