发现tomcat的一个bug
2010-01-31 21:44
417 查看
apache-tomcat-6.0.20-src
package org.apache.catalina.util;
public final class RequestUtil {
…
/**
* Decode and return the specified URL-encoded byte array. It is assumed
* the string is not a query string.
*
* @param bytes The url-encoded byte array
* @param enc The encoding to use; if null, the default encoding is used
* @exception IllegalArgumentException if a '%' character is not followed
* by a valid 2-digit hexadecimal number
*/
public static String URLDecode(byte[] bytes, String enc) {
return URLDecode(bytes, null, false);
} }
从函数声明看是要用enc对bytes进行解码,但实现时却没有用到enc这个参数。
已经提交并得到开发者确认了。
https://issues.apache.org/bugzilla/show_bug.cgi?id=48645
package org.apache.catalina.util;
public final class RequestUtil {
…
/**
* Decode and return the specified URL-encoded byte array. It is assumed
* the string is not a query string.
*
* @param bytes The url-encoded byte array
* @param enc The encoding to use; if null, the default encoding is used
* @exception IllegalArgumentException if a '%' character is not followed
* by a valid 2-digit hexadecimal number
*/
public static String URLDecode(byte[] bytes, String enc) {
return URLDecode(bytes, null, false);
} }
从函数声明看是要用enc对bytes进行解码,但实现时却没有用到enc这个参数。
已经提交并得到开发者确认了。
https://issues.apache.org/bugzilla/show_bug.cgi?id=48645
相关文章推荐
- 玩怪物猎人P3发现一个BUG可以金钱无数(非老金)
- 发现了一个腾讯微博代码BasicAPI .java的里面的一个很低级bug,居然用==比较字符串
- 漫谈程序员系列:她发现了一个Bug……
- 发现jquery的val()方法的一个bug(待验证)
- 发现了VS.NET 2005的一个小BUG
- 今天发现一个hibernate的bug,或者说一个应该注意的地方比较合适
- JDBMonitor日志输出探究(做executeBatch时发现一个BUG所引发的)
- 又发现APUE第二版(中文版)的一个BUG
- 发现一个规律:如果google上搜不到程序报错原因,意味着隐藏着一个非常2B的bug
- 最近调试HEVC中码率控制, 发现HM里面一个重大bug
- 解析Tomcat 6、7在EL表达式解析时存在的一个Bug
- 由一个内存错误发现的cocos2dx 引擎3.4版本的 一个bug
- 发现wps2009个人版一个bug
- 同样的项目,同样的tomcat 就是换了一个liux服务器发现有页面打开空白的现象
- 一个尚未发现bug的小程序
- Tomcat 6、7在EL表达式解析时存在的一个Bug
- 发现一个淘宝API中的BUG
- 发现一个时隐时现的bug!
- 今天发现一个Convert.ToDateTime的异常,算不算微软的bug呢?
- 瞎猫碰死老鼠:在ASP里面发现的一个问题,是不是BUG呢?