rem: ret.antville_alias = alias; ret.antville_message = (result.message) ? result.message : null; 
add: ret.antville_message = result.toString(); 
context: function newMediaObject(blogid, username, password, fileObject) {   var usr = root.blogger.getUser(username, password);   var blog = root.blogger.getBlog(blogid.toString());   if (!blog)      throw("Couldn't find the blog " + blogid);   var level = blog.members.getMembershipLevel(usr);   var str = new java.lang.String(fileObject.bits);   var bytes = Packages.helma.util.Base64.decode(str.toCharArray());   var param = new Object();   var ret = new Object();   if (fileObject.type.substring(0, 6).toLowerCase() == "image/") {      try {         blog.images.checkAdd(usr, level);      } catch (deny) {         throw("You're not allowed to upload images to the blog " + blog.alias);      }      param.rawimage = new Packages.helma.util.MimePart(fileObject.name, bytes, fileObject.type);      param.maxheight = fileObject.antville_maxheight;      param.maxwidth = fileObject.antville_maxwidth;      var alias = buildAliasFromFile(param.rawimage, blog.images);      var result = blog.images.evalImg(param, usr);      if (result.error)         throw("Error occured while creating new Media Object: " + result.message);      else {         var mediaObject = blog.images.get(alias);         mediaObject.alttext = fileObject.description;         ret.antville_staticUrl = mediaObject.getUrl();         ret.antville_popupUrl = mediaObject.getPopupUrl();         ret.antville_width = mediaObject.width;         ret.antville_height = mediaObject.height;         ret.antville_macro = "<% image name=\"" + blog.alias + "/" + alias + "\" %>";         if (mediaObject.thumbnail) {            ret.antville_popupmacro = "<% image name=\"" + blog.alias + "/" + alias + "\" as=\"popup\"%>";            ret.antville_thumbmacro = "<% image name=\"" + blog.alias + "/" + alias + "\" as=\"thumbnail\"%>";         }      }   } else {      try {         blog.files.checkAdd(usr, level);      } catch (deny) {         throw("You're not allowed to upload files to the blog " + blog.alias);      }      param.rawfile = new Packages.helma.util.MimePart(fileObject.name, bytes, fileObject.type);      var alias = buildAliasFromFile(param.rawfile, blog.files);      var result = blog.files.evalFile(param, usr);      if (result.error)         throw("Error occured while creating new Media Object: " + result.message);      else {         var mediaObject = blog.files.get(alias);         mediaObject.description = fileObject.description;         ret.antville_macro = "<% file name=\"" + blog.alias + "/" + alias + "\" %>";      }   }   ret.url = mediaObject.getUrl();   ret.antville_alias = alias;   ret.antville_message = (result.message) ? result.message : null;   return ret;}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/45914c5c90a0f29395106e4dc0f9fe9fe88cac9e/metaWeblogAPI.js/buggy/code/MetaWeblogApi/metaWeblogAPI.js