Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

/events/:eventId endpoint allows access to events from before the user joined the room (SYN-593) #1472

Closed
matrixbot opened this issue Jan 13, 2016 · 4 comments

Comments

@matrixbot
Copy link
Member

curl 'https://matrix.org/_matrix/client/api/v1/events/$1416421146527WDCdP:matrix.org?access_token=<redacted>'
{
    "age": 36270900773,
    "content": {
        "body": "can haz invite?",
        "msgtype": "m.text"
    },
    "event_id": "$1416421146527WDCdP:matrix.org",
    "origin_server_ts": 1414157883323,
    "room_id": "!zOmsiVucpWbRRDjSwe:matrix.org",
    "sender": "@&#8203;irc_kegan:matrix.org",
    "stream_ordering": 16594,
    "type": "m.room.message",
    "unsigned": {
        "age": 36270900773
    },
    "user_id": "@&#8203;irc_kegan:matrix.org"
}

(Imported from https://matrix.org/jira/browse/SYN-593)

(Reported by @richvdh)

@matrixbot
Copy link
Member Author

Jira watchers: @erikjohnston @richvdh

@matrixbot
Copy link
Member Author

Were you joined at the time? What was the history visibility?

-- @erikjohnston

@matrixbot
Copy link
Member Author

Yes, I was joined at the time. To be fair, in the above example, the history visibility at the time of the event was unset; however I can also reproduce it on a later event, once the history_visibility was set to invite (but still before I joined the room):

curl 'https://matrix.org/_matrix/client/api/v1/events/$143769525125400gNQaz:matrix.org?access_token=<redacted>'

-- @richvdh

@matrixbot matrixbot changed the title /events/:eventId endpoint allows access to events from before the user joined the room (SYN-593) /events/:eventId endpoint allows access to events from before the user joined the room (https://github.com/matrix-org/synapse/issues/1472) Nov 7, 2016
@matrixbot matrixbot changed the title /events/:eventId endpoint allows access to events from before the user joined the room (https://github.com/matrix-org/synapse/issues/1472) /events/:eventId endpoint allows access to events from before the user joined the room (SYN-593) Nov 7, 2016
@turt2live
Copy link
Member

This should be fixed by #3642

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants