Title: Test-Connection needs to be revised due to an intentional breaking change in .NET 7 · Issue #17018 · PowerShell/PowerShell · GitHub
Open Graph Title: Test-Connection needs to be revised due to an intentional breaking change in .NET 7 · Issue #17018 · PowerShell/PowerShell
X Title: Test-Connection needs to be revised due to an intentional breaking change in .NET 7 · Issue #17018 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/17018
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Test-Connection needs to be revised due to an intentional breaking change in .NET 7","articleBody":"### Prerequisites\r\n\r\n- [X] Write a descriptive title.\r\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- [X] Search the existing issues.\r\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\r\n\r\n### Steps to reproduce\r\n\r\nHere is the dotnet issue: https://github.com/dotnet/runtime/issues/66746\r\nHere is the breaking change note: https://github.com/dotnet/docs/issues/28720\r\n\r\nBasically, `System.Net.NetworkInformation.Ping` doesn't support specifying payload on Linux:\r\n- it throws `PlatformNotSupported` exception when custom Ping payload is specified, when the process is not running as root.\r\n- even if running as root (sudo), the custom payload is simply ignored because on Linux it's implemented by interfacing with the `ping` native utility, which doesn't support specifying custom payload.\r\n\r\nSo, whatever functionality in `Test-Connection` that depends on specifying custom payload is broken and should be either fixed or removed.\r\n\r\n**Attention**: Workaround was added to test code in `Test-Connection.Tests.ps1` by https://github.com/PowerShell/PowerShell/pull/16930. Please fix the tests when resolving this bug, or removing the related tests if the affected functionalities will be removed.\r\n\r\n### Expected behavior\r\n\r\n```console\r\nN/A\r\n```\r\n\r\n\r\n### Actual behavior\r\n\r\n```console\r\nN/A\r\n```\r\n\r\n\r\n### Error details\r\n\r\n```console\r\nN/A\r\n```\r\n\r\n\r\n### Environment data\r\n\r\n```powershell\r\nPowerShell 7.3-preview.3\r\n```\r\n\r\n\r\n### Visuals\r\n\r\n_No response_","author":{"url":"https://github.com/daxian-dbw","@type":"Person","name":"daxian-dbw"},"datePublished":"2022-03-17T21:29:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/17018/PowerShell/issues/17018"}
| 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:4efe3d50-9a5a-5aca-23cf-cb72828fba8a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC48:35F086:3218CA:4793BF:6A5481CD |
| html-safe-nonce | a0a7aa432f83d6eb3e4674d6bfee85dc7ef9d271eb04329fe8711465cf2f01b8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzQ4OjM1RjA4NjozMjE4Q0E6NDc5M0JGOjZBNTQ4MUNEIiwidmlzaXRvcl9pZCI6IjQyODYzNjQxMDAzMzI5MTMxMDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dd21bd0315722b8ced3ea4549c79670ca152b7cca931cd55ec523eb9bccb94ca |
| hovercard-subject-tag | issue:1172940151 |
| 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/17018/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c805159d7d7cd8d19b75559b9cdce1fa1519ef3c1e7c54d6c4bb5a37e6f0b301/PowerShell/PowerShell/issues/17018 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c805159d7d7cd8d19b75559b9cdce1fa1519ef3c1e7c54d6c4bb5a37e6f0b301/PowerShell/PowerShell/issues/17018 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| 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 | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width