Since to_param uses the key as is with whitspace the view can get links to smart variables that contain whitespace and that won't allow to click them and see the error e.g: href="#1450-my key".
Created from redmine issue http://projects.theforeman.org/issues/14183
Upstream bug assigned to orabin
Moving to POST since upstream bug http://projects.theforeman.org/issues/14183 has been closed ------------- Ori Rabin Applied in changeset commit:ea740cfed3ee43f80095dce087065ec0fe8c9231.
Created attachment 1159464 [details] [Verified] Screenshot Attached
Verified ! @Sat 6.2 Snap 11 While adding/updating a smart variable with white space in key name, the error shown as "Can't contain spaces.". This is an expected behavior. The verification Screenshot attached.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1501