Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh page with search does not encode spaces correctly after logout #5196

Closed
jacky12 opened this issue Feb 18, 2020 · 1 comment
Closed
Labels

Comments

@jacky12
Copy link

jacky12 commented Feb 18, 2020

Bug Report

Refresh page with search does not encode spaces correctly after logout

Steps to Reproduce

In Chrome, open a tab in concourse and enter a search with spaces (i.e. "ship tile master") in order to find a pipeline. This tab's URL will now be something like https://pks.releng.us/?search=ship%20tile%20master.
From another tab, log out.
Go to the previous tab. By refreshing, the page will show no search results and be blank, as expected. The tab is still at https://pks.releng.us/?search=ship%20tile%20master.

Now log back in (using the github button) and the tab's URL will change from https://pks.releng.us/?search=ship%20tile%20master to https://pks.releng.us/?search=ship+tile+master.
The search page will refresh filling in the search box showing: "ship+tile+master", giving different search results.

Expected Results

search box showing: "ship tile master", without the plus symbol.

Actual Results

search box showing: "ship+tile+master" with plus symbols instead of spaces.

Version Info

  • Concourse version: 5.5.1
  • Deployment type (BOSH/Docker/binary): BOSH
  • Infrastructure/IaaS: GCP
  • Browser (if applicable): Chrome Version 78.0.3904.87 (Official Build) (64-bit)
  • Did this used to work? no
@jacky12 jacky12 added the bug label Feb 18, 2020
@aoldershaw
Copy link
Contributor

Hi @jacky12, thanks for raising this issue. This has come up before (#4313) and is fixed in v5.7.0 by #4625.

The root cause of the issue seems to be a part of how elm/url (improperly) handles URLs containing a + - see #4313 (comment) if you're curious

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants