deployVirtualMachine api, added a check to see if the userdata provided is base64 encoded.
Review Request #6428 - Created Aug. 7, 2012 and submitted
Error out with InvalidParameterValueException in UserVmManagerImpl if userdata is not base64 encoded.
|Can you please also write an english comment as to what the regular expression tries to match ?||Nitin Mehta||Aug. 7, 2012, 11:35 a.m.||Open|
|It might be helpful if you pre-compile the pattern since its a constant and you wouldnt be wasting time computing ...||Nitin Mehta||Aug. 7, 2012, 11:35 a.m.||Open|
|On second thought can you please find out if we can use org.apache.commons.codec.binary.Base64 class to check if it is base ...||Nitin Mehta||Aug. 7, 2012, 11:44 a.m.||Open|
Posted (Aug. 7, 2012, 11:35 a.m.)
Posted (Aug. 7, 2012, 11:44 a.m.)
On second thought can you please find out if we can use org.apache.commons.codec.binary.Base64 class to check if it is base 64 instead of the regular expression here ? Use function isBase64 from the link below http://commons.apache.org/codec/apidocs/org/apache/commons/codec/binary/Base64.html#decodeBase64%28byte%29
Review request changed
Updated (Sept. 12, 2012, 4:39 a.m.)
- changed from pending to submitted