Title: PSGetMember binder generates a loose restriction rule that cause ETS member access to fail after a COM member access · Issue #4607 · PowerShell/PowerShell · GitHub
Open Graph Title: PSGetMember binder generates a loose restriction rule that cause ETS member access to fail after a COM member access · Issue #4607 · PowerShell/PowerShell
X Title: PSGetMember binder generates a loose restriction rule that cause ETS member access to fail after a COM member access · Issue #4607 · PowerShell/PowerShell
Description: Steps to reproduce Assume there is at least one file in the folder F:\tmp $shell = New-Object -ComObject "Shell.Application" $folder = $shell.Namespace("F:\tmp") $item = $folder.Items().Item(0) $item | % { $_.Name } $s = Add-Member -Inpu...
Open Graph Description: Steps to reproduce Assume there is at least one file in the folder F:\tmp $shell = New-Object -ComObject "Shell.Application" $folder = $shell.Namespace("F:\tmp") $item = $folder.Items().Item(0) $it...
X Description: Steps to reproduce Assume there is at least one file in the folder F:\tmp $shell = New-Object -ComObject "Shell.Application" $folder = $shell.Namespace("F:\tmp") $item = $folder...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4607
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PSGetMember binder generates a loose restriction rule that cause ETS member access to fail after a COM member access","articleBody":"Steps to reproduce\r\n------------------\r\nAssume there is at least one file in the folder `F:\\tmp`\r\n```powershell\r\n$shell = New-Object -ComObject \"Shell.Application\"\r\n$folder = $shell.Namespace(\"F:\\tmp\")\r\n$item = $folder.Items().Item(0)\r\n$item | % { $_.Name }\r\n\r\n$s = Add-Member -InputObject \"abc\" -MemberType NoteProperty -Name Name -Value \"Hello\" -PassThru\r\n$s.Name\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```none\r\nPS:2\u003e $s.Name\r\nHello\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\nReturn nothing\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```powershell\r\n\u003e $PSVersionTable\r\nName Value\r\n---- -----\r\nPSVersion 6.0.0-beta\r\nPSEdition Core\r\nGitCommitId v6.0.0-beta.3-30-gece27ff68798f508c755ccb84be5ae78b386ac82\r\nOS Microsoft Windows 10.0.15063\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","author":{"url":"https://github.com/daxian-dbw","@type":"Person","name":"daxian-dbw"},"datePublished":"2017-08-17T16:15:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4607/PowerShell/issues/4607"}
| 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:5eabd652-e85c-a15a-08bf-c20230d5e84c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81C8:27F15F:1882AA5:235A1FD:6A5789E6 |
| html-safe-nonce | 33f514e5d3f960964ffb4dc314a101391208b4e4e0dea870491ce03fc68d26cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUM4OjI3RjE1RjoxODgyQUE1OjIzNUExRkQ6NkE1Nzg5RTYiLCJ2aXNpdG9yX2lkIjoiNTA5MzcwMzA1MzAxNjAwOTE5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6325e7dfcb8f0b5a7ee73feb798b95cfc92c951c732fb7e2b70f0bab212885e4 |
| hovercard-subject-tag | issue:250997341 |
| 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/4607/issue_layout |
| twitter:image | https://opengraph.githubassets.com/526b4816d27e87a1bcb5bb1e79aea816a28ff264bfbb0f5cd752faf03033e3c3/PowerShell/PowerShell/issues/4607 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/526b4816d27e87a1bcb5bb1e79aea816a28ff264bfbb0f5cd752faf03033e3c3/PowerShell/PowerShell/issues/4607 |
| og:image:alt | Steps to reproduce Assume there is at least one file in the folder F:\tmp $shell = New-Object -ComObject "Shell.Application" $folder = $shell.Namespace("F:\tmp") $item = $folder.Items().Item(0) $it... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daxian-dbw |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6353e56e94423c9cd5abde7708a859afa36a0c1203c73749055bf6ee6704cd0 |
| 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 | f59ab1c46b638204e2aea09126d089be5dc773b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width