Repository navigation
Commit e0bb657
authored
Add FTPS directory listing regression test (#135077)
## Summary
- Add enterprise coverage for synchronous `FtpWebRequest`
`ListDirectoryDetails` requests with and without TLS.
- Verify that the returned listing is plaintext, contains the uploaded
fixture, and completes with `FtpStatusCode.ClosingData`.
- Clean up the uploaded fixture even when the listing assertion fails.
- Document the additional FTPS directory-listing coverage.
This directly covers the scenario reported in #134130. The
product fix is already present on `main` via #123234; this PR adds
coverage for the specific listing operation from the newer report.
## Testing
- `./build.sh clr+libs -rc release` in the Linux enterprise test client:
succeeded with 0 warnings and 0 errors.
- `/repo/dotnet.sh build /t:Test
/p:XunitMethodName=System.Net.Tests.FtpWebRequestStreamDisposalTest.FtpListDirectoryDetails_ReturnsPlainText`:
2 passed, 0 failed, 0 skipped.
- Negative control: temporarily restored the old synchronous
stream-selection expression and rebuilt `System.Net.Requests`; the
non-TLS case passed while the TLS case failed in
`StreamReader.ReadToEnd` with `ObjectDisposedException`.
- The attached issue repro's request sequence was also verified against
controlled ProFTPD: .NET 10.0.0 returned TLS ciphertext despite status
226, while .NET 11 RC1 returned the expected plaintext listing.
> [!NOTE]
> This pull request description was generated with GitHub Copilot.1 parent b60e14a commit e0bb657
2 files changed
Lines changed: 58 additions & 0 deletions
File tree
- src/libraries/System.Net.Requests/tests/EnterpriseTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
162 | 219 | | |
163 | 220 | | |
164 | 221 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
0 commit comments