{"action":"closed","issue":{"url":"https://api.github.com/repos/PowerShell/PowerShell/issues/1252","repository_url":"https://api.github.com/repos/PowerShell/PowerShell","labels_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/1252/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/1252/comments","events_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/1252/events","html_url":"https://github.com/PowerShell/PowerShell/issues/1252","id":163244651,"number":1252,"title":"GetCustomAttributes fails to retrieve CmdletAttribute with ConfirmImpact property","user":{"login":"JamesWTruher","id":10214008,"avatar_url":"https://avatars.githubusercontent.com/u/10214008?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesWTruher","html_url":"https://github.com/JamesWTruher","followers_url":"https://api.github.com/users/JamesWTruher/followers","following_url":"https://api.github.com/users/JamesWTruher/following{/other_user}","gists_url":"https://api.github.com/users/JamesWTruher/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesWTruher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesWTruher/subscriptions","organizations_url":"https://api.github.com/users/JamesWTruher/orgs","repos_url":"https://api.github.com/users/JamesWTruher/repos","events_url":"https://api.github.com/users/JamesWTruher/events{/privacy}","received_events_url":"https://api.github.com/users/JamesWTruher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PowerShell/PowerShell/labels/Area-Build","name":"Area-Build","color":"5319e7"},{"url":"https://api.github.com/repos/PowerShell/PowerShell/labels/Area-Engine","name":"Area-Engine","color":"5319e7"},{"url":"https://api.github.com/repos/PowerShell/PowerShell/labels/Blocked","name":"Blocked","color":"f9b12d"},{"url":"https://api.github.com/repos/PowerShell/PowerShell/labels/Issue-Bug","name":"Issue-Bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"daxian-dbw","id":127450,"avatar_url":"https://avatars.githubusercontent.com/u/127450?v=3","gravatar_id":"","url":"https://api.github.com/users/daxian-dbw","html_url":"https://github.com/daxian-dbw","followers_url":"https://api.github.com/users/daxian-dbw/followers","following_url":"https://api.github.com/users/daxian-dbw/following{/other_user}","gists_url":"https://api.github.com/users/daxian-dbw/gists{/gist_id}","starred_url":"https://api.github.com/users/daxian-dbw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daxian-dbw/subscriptions","organizations_url":"https://api.github.com/users/daxian-dbw/orgs","repos_url":"https://api.github.com/users/daxian-dbw/repos","events_url":"https://api.github.com/users/daxian-dbw/events{/privacy}","received_events_url":"https://api.github.com/users/daxian-dbw/received_events","type":"User","site_admin":false},"assignees":[{"login":"daxian-dbw","id":127450,"avatar_url":"https://avatars.githubusercontent.com/u/127450?v=3","gravatar_id":"","url":"https://api.github.com/users/daxian-dbw","html_url":"https://github.com/daxian-dbw","followers_url":"https://api.github.com/users/daxian-dbw/followers","following_url":"https://api.github.com/users/daxian-dbw/following{/other_user}","gists_url":"https://api.github.com/users/daxian-dbw/gists{/gist_id}","starred_url":"https://api.github.com/users/daxian-dbw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daxian-dbw/subscriptions","organizations_url":"https://api.github.com/users/daxian-dbw/orgs","repos_url":"https://api.github.com/users/daxian-dbw/repos","events_url":"https://api.github.com/users/daxian-dbw/events{/privacy}","received_events_url":"https://api.github.com/users/daxian-dbw/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/PowerShell/PowerShell/milestones/16","html_url":"https://github.com/PowerShell/PowerShell/milestones/6.0.0","labels_url":"https://api.github.com/repos/PowerShell/PowerShell/milestones/16/labels","id":1922225,"number":16,"title":"6.0.0","description":"","creator":{"login":"SandeepSutari","id":20233168,"avatar_url":"https://avatars.githubusercontent.com/u/20233168?v=3","gravatar_id":"","url":"https://api.github.com/users/SandeepSutari","html_url":"https://github.com/SandeepSutari","followers_url":"https://api.github.com/users/SandeepSutari/followers","following_url":"https://api.github.com/users/SandeepSutari/following{/other_user}","gists_url":"https://api.github.com/users/SandeepSutari/gists{/gist_id}","starred_url":"https://api.github.com/users/SandeepSutari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SandeepSutari/subscriptions","organizations_url":"https://api.github.com/users/SandeepSutari/orgs","repos_url":"https://api.github.com/users/SandeepSutari/repos","events_url":"https://api.github.com/users/SandeepSutari/events{/privacy}","received_events_url":"https://api.github.com/users/SandeepSutari/received_events","type":"User","site_admin":false},"open_issues":144,"closed_issues":20,"state":"open","created_at":"2016-08-03T22:20:16Z","updated_at":"2016-10-14T23:41:16Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-06-30T19:10:02Z","updated_at":"2016-10-14T23:41:16Z","closed_at":"2016-10-14T23:41:16Z","body":"Steps to reproduce\r\n------------------\r\n```\r\n[System.Management.Automation.Cmdlet(\"Get\", \"Thing\", ConfirmImpact = 'High', SupportsPaging = $true)]class C2{}\r\n$t = [C2].GetCustomAttributes($false)\r\n$t\r\n```\r\nFrom Scripting.Classes.Basic.Parsing.Tests.ps1\r\n\r\nExpected behavior\r\n-----------------\r\n```\r\nNounName                : Thing\r\nVerbName                : Get\r\nDefaultParameterSetName :\r\nSupportsShouldProcess   : False\r\nSupportsPaging          : True\r\nSupportsTransactions    : False\r\nConfirmImpact           : High\r\nHelpUri                 :\r\nRemotingCapability      : PowerShell\r\nTypeId                  : System.Management.Automation.CmdletAttribute\r\n```\r\nActual behavior\r\n---------------\r\n```\r\nException calling \"GetCustomAttributes\" with \"1\" argument(s): \"'ConfirmImpact' property specified was not found.\"\r\nAt line:1 char:9\r\n+         $t = [C2].GetCustomAttributes($false)\r\n+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException\r\n    + FullyQualifiedErrorId : CustomAttributeFormatException\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n<!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n> $PSVersionTable\r\n\r\nName                           Value\r\n----                           -----\r\nPSVersion                      5.1.10032.0\r\nPSEdition                      Linux\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion                   3.0.0.0\r\nGitCommitId                    v0.5.0-217-g9c9161febac5fc433d1987e75d8ba9b18fd286c1\r\nCLRVersion\r\nWSManStackVersion              1.0\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\n\r\n\r\n```\r\n"}}
{"actor":{"display_login":"daxian-dbw"}}