CARTAvis / carta-frontend

Source code repository for the frontend component of CARTA, a new visualization tool designed for the ALMA, the VLA and the SKA pathfinders.
https://cartavis.github.io/
GNU General Public License v3.0
19 stars 10 forks source link

Double-escaped URL parameters when `file` argument contains special characters #1862

Open veggiesaurus opened 2 years ago

veggiesaurus commented 2 years ago

Describe the bug Weird behaviour when using file parameter combined with redirecting when having to login.

@Jordatious discovered this issue, he will add details below

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots or videos If applicable, add screenshots/videos to help explain your problem.

Platform info (please complete the following information):

Additional context Add any other context about the problem here.

Jordatious commented 2 years ago

Ok cool I'll give some info here and if you can't reproduce, I can give some more info / screenshots. But @veggiesaurus was able to reproduce so I imagine the extra information isn't needed.

First log out of a CARTA server, as the issue seems to be specific to redirected URLs. Then go to a URL with special characters like this:

https://carta-beta.idia.ac.za/frontend/?file=/scratch3/projects/orcs/LMC_ORC_Jordan_polcal/1010~1060MHz/1644503471_sdp_l0.1010~1060MHz.LMCORC_im_3.image.tt0

Then log in, and you will see something like this. image