java/code/src/com/redhat/rhn/frontend/xmlrpc/channel/software/ChannelSoftwareHandler.java | 13 ++++++++++ 1 file changed, 13 insertions(+)
New commits: commit 5cc502ee9bc4be5c45ad4b0286d784c4fcb2c6e8 Author: Simon Lukasik slukasik@redhat.com Date: Mon Oct 31 08:48:08 2011 +0100
662200 - Added validation of input map.
diff --git a/java/code/src/com/redhat/rhn/frontend/xmlrpc/channel/software/ChannelSoftwareHandler.java b/java/code/src/com/redhat/rhn/frontend/xmlrpc/channel/software/ChannelSoftwareHandler.java index 48aaff8..5aedd76 100644 --- a/java/code/src/com/redhat/rhn/frontend/xmlrpc/channel/software/ChannelSoftwareHandler.java +++ b/java/code/src/com/redhat/rhn/frontend/xmlrpc/channel/software/ChannelSoftwareHandler.java @@ -533,6 +533,19 @@ public class ChannelSoftwareHandler extends BaseHandler { User user = getLoggedInUser(sessionKey); Channel channel = lookupChannelById(user, channelId);
+ Set<String> validKeys = new HashSet<String>(); + validKeys.add("checksum_label"); + validKeys.add("name"); + validKeys.add("summary"); + validKeys.add("description"); + validKeys.add("maintainer_name"); + validKeys.add("maintainer_email"); + validKeys.add("maintainer_phone"); + validKeys.add("gpg_key_url"); + validKeys.add("gpg_key_id"); + validKeys.add("gpg_key_fp"); + validateMap(validKeys, details); + UpdateChannelCommand ucc = new UpdateChannelCommand(user, channel);
if (details.containsKey("checksum_label")) {
spacewalk-commits@lists.fedorahosted.org