apps-android-commons: Upload error when point (.) in name

Steps to reproduce:

  1. Set FakeGPS (or equivalent) to be near this music venue: https://goo.gl/maps/go8ncPKxnDQgWTAD8
  2. Compile the app using the “structured-data” branch (not sure if needed)
  3. Start the app
  4. Go to “Nearby”
  5. Select the item 渋谷La.mama https://www.wikidata.org/wiki/Q64778538
  6. Try to upload this picture for it: 20200411_171501
  7. Upload error:

Screenshot_20200411-171724_Commons

Notice also the truncated name 渋谷La. I have not experienced this with any other item/picture, there must be something special with this one. Sorry I don’t have a logcat. I have not tried on master either.

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Comments: 25 (16 by maintainers)

Most upvoted comments

Hi @nicolas-raoul , yes, I was able to follow the steps and reproduce the error, and started working on the issue. It might take some more time to conclude. I will try my best.

B-I-N-G-O

{
  "errors": [
    {
      "code": "verification-error",
      "text": "File extension \".mama\" does not match the detected MIME type of the file (image/jpeg).",
      "data": {
        "details": [
          "filetype-mime-mismatch",
          "mama",
          "image/jpeg"
        ]
      },
      "module": "upload"
    }
  ],
  "docref": "See https://commons.wikimedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.",
  "servedby": "mw1281"
}