This object is in archive! 

Locus Actions: cyrillic letters

Evgeny Kurshev shared this problem 10 years ago
Solved

https://files.melda.ru/hidden/locus-actions/

Link №1 "Error cyrillic letters".


In web server logs:


1) GET /hidden/locus-actions/%D1%8D%D1%8E%D1%8F.xml

2) GET /hidden/locus-actions/???.zip

Firs request is ok, but second must be "эюя.zip", not "???.zip"

Replies (6)

photo
1

May you check latest requests? You should see correct requests from Locus.


Anyway downloaded file is not a valid zip file, right?


If this is correct, then issue is fixed. Thank you

photo
1

Apache log:

  1. 84.246.166.203 - - [07/Oct/2014:17:49:50 +0400] "GET /hidden/locus-actions/ HTTP/1.1" 200 421 "http://help.locusmap.eu/responses/locus-actions-error-with-extract-deletesource-refreshmap" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0"
  2. 84.246.166.203 - - [07/Oct/2014:17:50:44 +0400] "GET /hidden/locus-actions HTTP/1.1" 301 252 "-" "Mozilla/5.0 (Android; Mobile; rv:32.0) Gecko/32.0 Firefox/32.0"
  3. 84.246.166.203 - - [07/Oct/2014:17:50:44 +0400] "GET /hidden/locus-actions/ HTTP/1.1" 200 421 "-" "Mozilla/5.0 (Android; Mobile; rv:32.0) Gecko/32.0 Firefox/32.0"
  4. 84.246.166.203 - - [07/Oct/2014:17:53:40 +0400] "GET /hidden/locus-actions/Locus.Custom.Maps.xml HTTP/1.1" 200 341 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0"
  5. 84.246.166.203 - - [07/Oct/2014:17:54:14 +0400] "GET /hidden/locus-actions/Locus.Custom.Maps.xml HTTP/1.1" 200 341 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"
  6. 84.246.166.203 - - [07/Oct/2014:17:54:14 +0400] "GET /hidden/locus-actions/Locus.Custom.Maps.zip HTTP/1.1" 200 15396 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"
  7. 84.246.166.203 - - [07/Oct/2014:17:58:00 +0400] "GET /hidden/locus-actions/Locus.Custom.Maps.zip HTTP/1.1" 200 15396 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0"
  8. 84.246.166.203 - - [07/Oct/2014:17:59:02 +0400] "GET /hidden/locus-actions/Locus.Custom.Maps.xml HTTP/1.1" 200 341 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"
  9. 84.246.166.203 - - [07/Oct/2014:17:59:03 +0400] "GET /hidden/locus-actions/Locus.Custom.Maps.zip HTTP/1.1" 200 15396 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"
  10. 84.246.166.203 - - [07/Oct/2014:18:46:40 +0400] "GET /hidden/locus-actions/Locus.Custom.Maps.xml HTTP/1.1" 200 341 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"
  11. 84.246.166.203 - - [07/Oct/2014:18:46:41 +0400] "GET /hidden/locus-actions/Locus.Custom.Maps.zip HTTP/1.1" 200 15396 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"
  12. 84.246.166.203 - - [07/Oct/2014:18:47:09 +0400] "GET /hidden/locus-actions/Locus.Custom.Maps.xml HTTP/1.1" 200 341 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"
  13. 84.246.166.203 - - [07/Oct/2014:18:48:51 +0400] "GET /hidden/locus-actions/Locus.Custom.Maps.zip HTTP/1.1" 200 15396 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"
  14. 84.246.166.203 - - [07/Oct/2014:18:52:17 +0400] "GET /hidden/locus-actions/Locus.Custom.Maps.xml HTTP/1.1" 200 341 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"
  15. 84.246.166.203 - - [07/Oct/2014:18:52:33 +0400] "GET /hidden/locus-actions/Locus.Custom.Maps.zip HTTP/1.1" 200 15396 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"
  16. 84.246.166.203 - - [07/Oct/2014:19:01:15 +0400] "GET /hidden/locus-actions/Locus.Custom.Maps.xml HTTP/1.1" 200 341 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0"
  17. 84.246.166.203 - - [07/Oct/2014:19:08:44 +0400] "GET /hidden/locus-actions/Locus.Custom.Maps.xml HTTP/1.1" 200 341 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"
  18. 84.246.166.203 - - [07/Oct/2014:19:08:44 +0400] "GET /hidden/locus-actions/Locus.Custom.Maps.zip HTTP/1.1" 200 15396 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"
  19. 84.246.166.203 - - [07/Oct/2014:19:09:05 +0400] "GET /hidden/locus-actions/%D1%8D%D1%8E%D1%8F.xml HTTP/1.1" 200 319 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"
  20. 84.246.166.203 - - [07/Oct/2014:19:09:06 +0400] "GET /hidden/locus-actions/???.zip HTTP/1.1" 200 421 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"
  21. 84.246.166.203 - - [07/Oct/2014:19:20:10 +0400] "GET /hidden/locus-actions/%D1%8D%D1%8E%D1%8F.xml HTTP/1.1" 200 319 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"
  22. 84.246.166.203 - - [07/Oct/2014:19:20:10 +0400] "GET /hidden/locus-actions/???.zip HTTP/1.1" 200 421 "-" "Locus/3.3.0 (Linux; U; Android; en-us)"

Hm. Request is still "???.zip".

Code - 200, size - 421.

This is index file of this serder directory - same as https://files.melda.ru/hidden/locus-actions/

So, it's look like, Locus really do request with question sign. In this way, server parse request as:

url: https://files.melda.ru/hidden/locus-actions/???.zip

scheme: https

server: files.melda.ru

path: /hidden/locus-actions/

divider between path and query string: ?

query string: ??.zip

Real file name is "эюя.zip". Size - 15396. It's real zip archive.

And needed request to server must be encoded in uriencode.

Not https://files.melda.ru/hidden/locus-actions/эюя.zip

But https://files.melda.ru/hidden/locus-actions/hidden/locus-actions/%D1%8D%D1%8E%D1%8F.zip

Now, I added new link "Сyrillic letters - uriencode in xml" to https://files.melda.ru/hidden/locus-actions/

It links to эюя2.xml, that contains "%D1%8D%D1%8E%D1%8F.zip" in source field, but not "эюя.zip". And this link really works.


So, we need decision: who must do uriencode of source field - Locus or xml author?

photo
1

Hmm this will be more complicated.


Url you provide in XML is of course correct and it's on Locus to encode it to proper format. Unfortunately I have some serious problems with doing this and because I don't want to break some already existing code, do encoding, for now, on your side. Thanks you.

photo
1

I think, it will be good to add info about this (that url in xml must be uriencoded) to wiki: http://docs.locusmap.eu/doku.php?id=manual:customization:locus_actions

I can't do it - "This page is read only."

photo
1

Hello Evgeny,

as a side effect of one major change in the app, an issue should be (finally) solved.

Menion

photo
1

Yes, it really works! Thanks!


(now, as earlier, waiting for http://help.locusmap.eu/topic/external-bluetooth-controller-more-commands - Ceterum censeo Carthaginem delendam esse! Sorry :)

Replies have been locked on this page!