id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,branch,changelog,apichanges,internalchanges 12684,_RequestArgs.get should alias getfirst,Ryan J Ollos,Ryan J Ollos,"Discussed in #12682, to make the API more pythonic and to fix issues like the one seen in #12682, `req.args.get` should return a string rather than a string or list. If a list is expected `req.args.getlist` should be used. `_RequestArgs.getbinary` will be added, as a shorthand for: `req.args.getint('key', default, min=0, max=1)`. The `as_` methods of `_RequestArgs` should be modified/extended to be consistent with the changes. Code in `query.py` can also be refactored to use `_RequestArgs`: [browser:trunk/trac/ticket/query.py@15573:949-971#L948].",enhancement,closed,normal,1.3.2,general,,normal,fixed,,,,,"`_RequestArgs.get` aliases `getfirst`, so `req.args.get` will no longer return a list when there are duplicate keys in the parameter string. **This change is not backward-compatible.**",Fixed exceptions due to `req.args.get` unexpectedly returning a list.