Title: GetParamBlock method of ProxyCommand fails · Issue #9058 · PowerShell/PowerShell · GitHub
Open Graph Title: GetParamBlock method of ProxyCommand fails · Issue #9058 · PowerShell/PowerShell
X Title: GetParamBlock method of ProxyCommand fails · Issue #9058 · PowerShell/PowerShell
Description: Steps to reproduce [System.Management.Automation.ProxyCommand]::GetParamBlock((Get-Command Test-Connection)) Expected behavior Emits a param block. Actual behavior Exception calling "GetParamBlock" with "1" argument(s): "Object reference...
Open Graph Description: Steps to reproduce [System.Management.Automation.ProxyCommand]::GetParamBlock((Get-Command Test-Connection)) Expected behavior Emits a param block. Actual behavior Exception calling "GetParamBlock"...
X Description: Steps to reproduce [System.Management.Automation.ProxyCommand]::GetParamBlock((Get-Command Test-Connection)) Expected behavior Emits a param block. Actual behavior Exception calling "GetParamB...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9058
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"GetParamBlock method of ProxyCommand fails","articleBody":"# Steps to reproduce\r\n\r\n```powershell\r\n[System.Management.Automation.ProxyCommand]::GetParamBlock((Get-Command Test-Connection))\r\n```\r\n\r\n# Expected behavior\r\n\r\nEmits a param block.\r\n\r\n# Actual behavior\r\n\r\n```none\r\nException calling \"GetParamBlock\" with \"1\" argument(s): \"Object reference not set to an instance of an object.\"\r\nAt line:1 char:1\r\n+ [System.Management.Automation.ProxyCommand]::GetParamBlock((Get-Comma ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException\r\n+ FullyQualifiedErrorId : NullReferenceException\r\n```\r\n\r\n# Environment data\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 6.2.0-preview.3\r\nPSEdition Core\r\nGitCommitId 6.2.0-preview.3\r\nOS Microsoft Windows 10.0.17134\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n\r\n# Description\r\n\r\nThe `Test-Connection` command uses the new ValidateRangeKind type to force a positive integer.\r\n\r\nThe GetProxyAttributeData method of ParameterMetadata cannot parse and generate a string to represent this attribute. It is the method responsible for raising the error shown above.\r\n\r\nhttps://github.com/PowerShell/PowerShell/blob/1be3f4cc0e465ae11ad8e59e9060f5a59e4762eb/src/System.Management.Automation/engine/TypeMetadata.cs#L908-L927\r\n\r\n# PR\r\n\r\nhttps://github.com/PowerShell/PowerShell/pull/9059","author":{"url":"https://github.com/indented-automation","@type":"Person","name":"indented-automation"},"datePublished":"2019-03-05T13:10:10Z","url":"https://github.com/PowerShell/PowerShell/issues/9058"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0b72aaa0-3cae-5d74-9f10-823262d7b492 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC8E:190070:51CACF:765137:6AFD72D7 |
| html-safe-nonce | df8e98b9d824e97baa1f1d5a79246e7ac4db54bcd5c3e498ecc06d262cd9a6fc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzhFOjE5MDA3MDo1MUNBQ0Y6NzY1MTM3OjZBRkQ3MkQ3IiwidmlzaXRvcl9pZCI6Ijg5MTEwNjY3MjE1MzY1MzczMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f0b1504d66eeece011807f7031f2b81adfa39c229e017c60f73625c794266b44 |
| hovercard-subject-tag | issue:417290545 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/9058/issue_layout |
| twitter:image | https://opengraph.githubassets.com/048c4988f51fb85f980a7afdb00cfe8b5e4c88314ee3d8f239ab5a649eab0db3/PowerShell/PowerShell/issues/9058 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/048c4988f51fb85f980a7afdb00cfe8b5e4c88314ee3d8f239ab5a649eab0db3/PowerShell/PowerShell/issues/9058 |
| og:image:alt | Steps to reproduce [System.Management.Automation.ProxyCommand]::GetParamBlock((Get-Command Test-Connection)) Expected behavior Emits a param block. Actual behavior Exception calling "GetParamBlock"... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | indented-automation |
| hostname | github.com |
| expected-hostname | github.com |
| None | e54006cf2b96d1ac260960edd10003132911469ccd1ec99c9803119fe2a4e032 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5be0bf2b8cf26f8897d31e6bc3c232d328b12a54 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width