<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic [Android] Crash when searching with an invalid URL escape code in Android</title>
    <link>https://community.spotify.com/t5/Android/Android-Crash-when-searching-with-an-invalid-URL-escape-code/m-p/5741657#M205316</link>
    <description>&lt;P&gt;Most of the time searching % crashes the app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;USA&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Pixel 7&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Android 14&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any search on Spotify Android that contains an invalid URL escape code crashes the app. This includes the following strings:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;test %&lt;/LI&gt;&lt;LI&gt;test %2G&lt;/LI&gt;&lt;LI&gt;%invalid&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This does&amp;nbsp;&lt;EM&gt;not&amp;nbsp;&lt;/EM&gt;include the following, and the search goes normally:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;test %2B (replaces with +)&lt;/LI&gt;&lt;LI&gt;test %26 (replaces with &amp;amp;)&lt;/LI&gt;&lt;LI&gt;test %25 (replaces with % itself)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I can't reproduce this issue on desktop: the invalid code is left as-is and the search is done normally, instead of replacing with the unescaped character as valid escape code sequences do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I discovered this when I tried to search for a song title that included the % character.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Dec 2023 19:35:50 GMT</pubDate>
    <dc:creator>kupiakos</dc:creator>
    <dc:date>2023-12-12T19:35:50Z</dc:date>
    <item>
      <title>[Android] Crash when searching with an invalid URL escape code</title>
      <link>https://community.spotify.com/t5/Android/Android-Crash-when-searching-with-an-invalid-URL-escape-code/m-p/5741657#M205316</link>
      <description>&lt;P&gt;Most of the time searching % crashes the app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;USA&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Pixel 7&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Android 14&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any search on Spotify Android that contains an invalid URL escape code crashes the app. This includes the following strings:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;test %&lt;/LI&gt;&lt;LI&gt;test %2G&lt;/LI&gt;&lt;LI&gt;%invalid&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This does&amp;nbsp;&lt;EM&gt;not&amp;nbsp;&lt;/EM&gt;include the following, and the search goes normally:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;test %2B (replaces with +)&lt;/LI&gt;&lt;LI&gt;test %26 (replaces with &amp;amp;)&lt;/LI&gt;&lt;LI&gt;test %25 (replaces with % itself)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I can't reproduce this issue on desktop: the invalid code is left as-is and the search is done normally, instead of replacing with the unescaped character as valid escape code sequences do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I discovered this when I tried to search for a song title that included the % character.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 19:35:50 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Android/Android-Crash-when-searching-with-an-invalid-URL-escape-code/m-p/5741657#M205316</guid>
      <dc:creator>kupiakos</dc:creator>
      <dc:date>2023-12-12T19:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: [Android] Search with an invalid URL escape crashes the app</title>
      <link>https://community.spotify.com/t5/Android/Android-Crash-when-searching-with-an-invalid-URL-escape-code/m-p/5741749#M205319</link>
      <description>&lt;P&gt;The crash only occurs after pressing the search key on the keyboard - the preview is fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some other observations:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"test %00" doesn't crash the app, but gives you a "Something went wrong. Have another go?". Consider making the backend more resilient against nul&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;"test %01" and other control characters don't really affect the search and are inserted directly.&lt;/LI&gt;&lt;LI&gt;Casing of hex characters has no effect.&lt;/LI&gt;&lt;LI&gt;Arbitrary UTF-8 sequences work. test "%E2%80%AE foo" (the famous U+202E) renders as "test oof" as expected and "test %f0%9f%8f%b3%ef%b8%8f%e2%80%8d%f0%9f%8c%88" renders as "test&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":rainbow_flag:"&gt;🏳️‍🌈&lt;/span&gt;"&lt;/LI&gt;&lt;LI&gt;On Android, invalid UTF-8 sequences specified via valid escape codes transform to the U+FFFD replacement character. On desktop, invalid UTF-8 sequences leave the escape codes as-is.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;There's a lot of content that directly contain this replacement character - in particular a "Kittens and Dogs Music" album with ten different songs containing many copies of the character.&lt;/LI&gt;&lt;LI&gt;On desktop, the escape code&amp;nbsp;→ text replacement is done automatically when a valid UTF-8 sequence is made, with a slight delay. On Android the replacement is only done with a full search, and it lossily transforms invalid UTF-8 as described.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 12 Dec 2023 01:04:31 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Android/Android-Crash-when-searching-with-an-invalid-URL-escape-code/m-p/5741749#M205319</guid>
      <dc:creator>kupiakos</dc:creator>
      <dc:date>2023-12-12T01:04:31Z</dc:date>
    </item>
  </channel>
</rss>

