Skip to content

Debug Console Linker automatically decodes link #112032

Closed

Description

@lramos15

Issue Type: Bug

When debugging code and a link has a URI encode clinking the link in the debug console will auto decode the URL. This causes issues as some APIs expect the paramaters to be URI encoded. When just logging links to the terminal it doesn't do that.

Try the following code:

const url = "https://www.test.com/?params=CountryCode%3DUSA%26Name%3Dlramos15";
console.log(url);

Steps to reproduce

  1. Set a breakpoint on console.log(url);
  2. Start debugging
  3. Type url into the debug console
  4. Ctrl+click and navigate to the URL. It will automatically decode to https://www.test.com/?params=CountryCode=USA&Name=lramos15, with no way to disable this. Runnig the code normally and following the url in the terminal doesn't do this.

VS Code version: Code - Insiders 1.52.0-insider (5e350b1, 2020-12-04T10:15:27.849Z)
OS version: Windows_NT x64 10.0.18363

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 2808)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.86GB (6.42GB free)
Process Argv C:\Users\ramosl\Desktop\Fall 2020 - Hw 8 --crash-reporter-id 6835f0a3-d9c6-4053-812a-2c4e35492724
Screen Reader no
VM 0%
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
openlogontheside:30221882
python763:30178808
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
python504:30227505
vswsl492:30208929
wsl2prompt:30219162
vstry244:30230484
pythonvsdeb440:30224570
unusedpromptcf:30219165
folderexplorer:30219166
openfilemenu:30219168
pythonvsded773:30223139

Activity

  1. added
    debug
    on Dec 7, 2020
  2. isidorn commented on Dec 8, 2020

    @isidorn

    This is a fair request.
    Code pointer

    PR's to fix this are welcome.

  3. added
    help wanted
    under-discussion
    on Dec 8, 2020
  4. isidorn commented on Dec 8, 2020

    @isidorn

    I put a code pointer...

  5. chenjigeng commented on Dec 8, 2020

    @chenjigeng
    Contributor

    Isidor Nikolic (@isidorn) Do you think terminal's behavior is correct or debug's behavior is correct.

  6. chenjigeng commented on Dec 8, 2020

    @chenjigeng
    Contributor

    I think the reason is uri.parse

    image

  7. lramos15 commented on Dec 8, 2020

    @lramos15
    MemberAuthor

    The correct behavior to me would be not to decode the URI. If I wanted the URI decoded I could do URI.Parse within my code or the equivalent of that in whatever language I choose.

  8. chenjigeng commented on Dec 8, 2020

    @chenjigeng
    Contributor

    I agree with you Logan Ramos (@lramos15)

  9. chenjigeng commented on Dec 8, 2020

    @chenjigeng
    Contributor

    I think we can just get rid of URI.parse. I tried it locally, and it work. But what are the potential problems without URI.parse

  10. chenjigeng commented on Dec 8, 2020

    @chenjigeng
    Contributor

    Even if we don't use uri.parse here, when we call this.openerService.open(url), the url inside openerService will also be uri.parse, which means that the url shown in the pop-up box is actually decode

    image

  11. 42 remaining items

  12. isidorn commented on Feb 26, 2021

    @isidorn

    Will not fix it last game of endgame, pushing out to backlog

  13. lramos15 commented on Feb 26, 2021

    @lramos15
    MemberAuthor

    I'll investigate this for debt week. I just tested it with my fix commit and it worked so I'll have to bisect and see what broke it nothing pops out to me at the moment.

  14. removed
    help wanted
    verification-found
    on Mar 5, 2021
  15. isidorn commented on Mar 5, 2021

    @isidorn

    Logan Ramos (@lramos15) unassigning myself, feel free to assign back to me if help is needed.

  16. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Mar 9, 2021
  17. locked and limited conversation to collaborators on Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugdebuginsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions