FS#46547 - [rpc] multiinfo broken in 4.1
Attached to Project:
AUR web interface
Opened by HenriD (nheird) - Saturday, 03 October 2015, 09:27 GMT
Last edited by Lukas Fleischer (lfleischer) - Saturday, 03 October 2015, 10:17 GMT
Opened by HenriD (nheird) - Saturday, 03 October 2015, 09:27 GMT
Last edited by Lukas Fleischer (lfleischer) - Saturday, 03 October 2015, 10:17 GMT
|
Details
Hello,
I noticed rpc.php requests don't work since 4.1 321 /* 322 * Parse the args to the multiinfo function. We may have a string or an 323 * array, so do the appropriate thing. Within the elements, both * package 324 * IDs and package names are valid; sort them into the relevant arrays and 325 * escape/quote the names. 326 * 327 * @param array $http_data Query parameters. 328 * 329 * @return mixed An array containing 'ids' and 'names'. 330 */ 331 private function parse_multiinfo_args($http_data) { 332 $args = $http_data['arg']; … 409 private function multiinfo($http_data) { 410 $pqdata = $http_data['arg']; 411 $args = $this->parse_multiinfo_args($pqdata); parse_multiinfo_args needs $http_data instead of $http_data['arg'] according to its descriptions. This bug breaks some AUR helpers that use multiinfo (such as package-query) Henri |
This task depends upon
Closed by Lukas Fleischer (lfleischer)
Saturday, 03 October 2015, 10:17 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 4.1.1.
Saturday, 03 October 2015, 10:17 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 4.1.1.
Comment by
Lukas Fleischer (lfleischer) -
Saturday, 03 October 2015, 09:30 GMT
Comment by HenriD (nheird) -
Saturday, 03 October 2015, 09:35 GMT
I already submitted a patch for that to aur-dev ~20 minutes ago.
Will make a new release soon.
Great, thanks.