Skip to content

Invoke-WebRequest claims it is "writing request stream (number of bytes written X)" when downloading #3677

Closed

Description

@AArnott

Steps to reproduce

Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -outfile $env:temp\nuget.exe

Expected behavior

The PowerShell progress dialog suggests we are reading bytes from the response stream.

Actual behavior

The PowerShell progress dialog claims it is "Writing request stream (number of bytes written X)"

Environment data

 $psversiontable

Name                           Value
----                           -----
PSVersion                      5.1.15063.168
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.15063.168
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Activity

  1. added
    Issue-Bug
    on May 2, 2017
  2. iSazonov commented on May 2, 2017

    @iSazonov
    Collaborator

    Andrew Arnott (@AArnott) Thanks for your report!

    I believe the message should depend on the Get/Post method.

  3. AArnott commented on May 2, 2017

    @AArnott
    Author

    GET verbs have no request stream so response stream messages would always be appropriate.
    But POST verbs have both a request and a response stream. So ideally the message shown would be appropriate for the stream that is currently being written or read from.

  4. added this to the milestone on May 2, 2017
  5. modified the milestones: , on May 15, 2017
  6. added
    Up-for-Grabs
    on May 15, 2017
  7. iSazonov commented on Sep 29, 2017

    @iSazonov
    Collaborator

    Steve Lee (@SteveL-MSFT)
    invoke-webrequest

    Can we fix this by changing Resx strings to

    Web request status
        Number of bytes processed: 99999
    
  8. markekraus commented on Oct 9, 2017

    @markekraus
    Contributor

    Ilya (@iSazonov) Are you working on this one? if not, this one was next on my list.

  9. iSazonov commented on Oct 9, 2017

    @iSazonov
    Collaborator

    Mark Kraus (@markekraus) Please grab it - thanks! (I hope to continue with Test-Connection cmdlet port)

  10. markekraus commented on Oct 9, 2017

    @markekraus
    Contributor

    Ilya (@iSazonov) or Steve Lee (@SteveL-MSFT) I see that is is possible to test the progress output through a job. If I'm just changing the .resx strings, is there any need to write pester tests for it?

    also, can one of you either assign this to me or self-assign? Thanks!

  11. removed
    Up-for-Grabs
    on Oct 9, 2017
  12. SteveL-MSFT commented on Oct 9, 2017

    @SteveL-MSFT
    Member

    Mark Kraus (@markekraus) assigned it to me for now. If you are only changing the resx strings, no tests are typically needed as those strings are expected to be localized at some time. We have some meta tests for resx files.

  13. markekraus commented on Oct 10, 2017

    @markekraus
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-BugResolution-FixedWG-Cmdlets

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions