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

Uploading a file to a room caused it to have a info.size of -1 #2141

Closed
Half-Shot opened this issue Sep 20, 2020 · 2 comments · Fixed by #2259
Closed

Uploading a file to a room caused it to have a info.size of -1 #2141

Half-Shot opened this issue Sep 20, 2020 · 2 comments · Fixed by #2259
Assignees
Labels
A-File-Upload T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Milestone

Comments

@Half-Shot
Copy link
Member

The file itself was fine, but the info is wrong. The file was uploaded via the sharing feature from another app.

{
  "content": {
    "body": "2020-09-20 14:17.kmz",
    "file": {
      "hashes": {
        "sha256": "teCKsNkRVo5VAxZu9+/CSbd1V9psNTjbEEeXRJxvUCE"
      },
      "iv": "49Ra2xgOSs8AAAAAAAAAAA",
      "key": {
        "alg": "A256CTR",
        "ext": true,
        "k": "B6xVPtphPdn3NPttOAWmxsjcCC9pUWrTIoFyjZ-ySPw",
        "key_ops": [
          "encrypt",
          "decrypt"
        ],
        "kty": "oct"
      },
      "mimetype": "application/vnd.google-earth.kmz",
      "url": "mxc://half-shot.uk/3194e07c835b6d4fc3430606f7fdf19fc76a68f9",
      "v": "v2"
    },
    "info": {
      "mimetype": "application/vnd.google-earth.kmz",
      "size": -1
    },
    "msgtype": "m.file"
  },
  "room_id": "!vHHXZqTuzXCuldIVQJ:half-shot.uk",
  "type": "m.room.message"
}
@bmarty bmarty added T-Defect Something isn't working: bugs, crashes, hangs and other reported problems A-File-Upload labels Sep 21, 2020
@bmarty bmarty added this to the Sprint 15 milestone Sep 21, 2020
@onurays onurays self-assigned this Oct 1, 2020
@onurays
Copy link
Contributor

onurays commented Oct 14, 2020

I am closing the issue because it is only reproducible on @Half-Shot's main account.

@onurays onurays closed this as completed Oct 14, 2020
@bmarty
Copy link
Member

bmarty commented Oct 14, 2020

To reproduce:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-File-Upload T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants