Jasonette / Jasonette/JASONETTE-iOS
reload page after app close - wait - app open, url is incorrectly encoded
- Dominant language
- JavaScript
- Stars
- 5.2k
- Forks
- 347
- PR merge metrics
- No merged PRs in 30d
Description
This one was weird and took a while to reproduce. I have an app with a search tab. The search is executed and pust transitioned to the results:
```
"type": "$href",
"options": {
"url": "%s/kmap_do_search?q=%s" % (app_base, trend),
"transition": "push"
}
```
the url that the server sees is (for example)
method=GET path="/kmap_do_search?q=claire%20fontaine"
I then re-open the app sometime laster, not immediately, but maybe 20 mins later, presumably iOS has put the app in some hibernate state. Then I re-open the app, the view opens and the foreground action gets called:
```
"$foreground":
"type": "$reload"
}
```
What I see in the server logs now is
method=GET path="/kmap_do_search?q=claire%252520fontaine"
**Notice the double encoding.**
Contributor guide
Research direction
Start by reproducing the delayed iOS app reopen flow using the $foreground/$reload action after a pushed $href search URL. Trace how the URL is handled during reload and verify that the server receives the original query encoding rather than a doubly encoded value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100