Skip to content

Conversation

@meenal06
Copy link
Contributor

@meenal06 meenal06 commented Jul 3, 2021

No description provided.

meenal06 added 2 commits July 3, 2021 16:22
Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com>
Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com>
@meenal06
Copy link
Contributor Author

meenal06 commented Jul 3, 2021

Hi @kegsay any idea why I am getting 404 on the pushers/set endpoint 😕 ?

=== CONT  TestChangePassword/Pushers_created_with_a_different_access_token_are_deleted_on_password_change
    account_change_password_test.go:123: MatchResponse got status 404 want 200 - http://localhost:55058/_matrix/client/r0/pushers/set => 404 page not found
2021/07/03 16:19:32 ============================================


2021/07/03 16:19:32 528d8bc2fe8a1f7124c4e8549e5fc1d4991ac4bc9b2f2b21c65cb9cb31935f18 : Server logs:
time="2021-07-03T10:49:31.997154700Z" level=info msg="Dendrite version 0.3.11" func="NewBaseDendrite\n\t" file=" [/build/setup/base.go:112]"
time="2021-07-03T10:49:32.039419700Z" level=info msg="Enabling MSC" func="Enable\n\t" file=" [/build/setup/mscs/mscs.go:31]" context=missing msc=msc2836
time="2021-07-03T10:49:32.042551600Z" level=info msg="Enabling MSC" func="Enable\n\t" file=" [/build/setup/mscs/mscs.go:31]" context=missing msc=msc2946
time="2021-07-03T10:49:32.044654400Z" level=info msg="Enabling MSC" func="Enable\n\t" file=" [/build/setup/mscs/mscs.go:31]" context=missing msc=msc2444
time="2021-07-03T10:49:32.047311700Z" level=info msg="Enabling MSC" func="Enable\n\t" file=" [/build/setup/mscs/mscs.go:31]" context=missing msc=msc2753
time="2021-07-03T10:49:32.050819800Z" level=info msg="Starting external Monolith listener on :8008" func="func2\n\t" file=" [/build/setup/base.go:427]"
time="2021-07-03T10:49:32.051471900Z" level=info msg="Starting external Monolith listener on :8448" func="func2\n\t" file=" [/build/setup/base.go:427]"
time="2021-07-03T10:49:32.103925300Z" level=trace msg="Incoming request" func="RequestWithLogging\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:123]" req.id=lQzvwoH8SHQD req.method=GET req.path=/_matrix/client/versions
time="2021-07-03T10:49:32.104470400Z" level=trace msg="Responding (203 bytes)" func="respond\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:173]" code=200 req.id=lQzvwoH8SHQD req.method=GET req.path=/_matrix/client/versions
time="2021-07-03T10:49:32.110632800Z" level=trace msg="Incoming request" func="RequestWithLogging\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:123]" req.id=q7rIl8IpLzpR req.method=POST req.path=/_matrix/client/r0/register
time="2021-07-03T10:49:32.111287900Z" level=info msg="Processing registration request" func="Register\n\t" file=" [/build/clientapi/routing/register.go:526]" auth.type=m.login.dummy req.id=q7rIl8IpLzpR req.method=POST req.path=/_matrix/client/r0/register session_id="" username=test_change_password_user
time="2021-07-03T10:49:32.121604000Z" level=info msg=PerformDeviceCreation func="PerformDeviceCreation\n\t" file=" [/build/userapi/internal/api.go:115]" device_id="<nil>" display_name="<nil>" localpart=test_change_password_user req.id=q7rIl8IpLzpR req.method=POST req.path=/_matrix/client/r0/register
time="2021-07-03T10:49:32.134324700Z" level=info msg="Sending device list update message to []" func="onMessage\n\t" file=" [/build/federationsender/consumers/keychange.go:132]"
time="2021-07-03T10:49:32.139230800Z" level=info msg="Produced to key change topic 'DendriteOutputKeyChangeEvent'" func="ProduceKeyChanges\n\t" file=" [/build/keyserver/producers/keychange.go:72]" num_key_changes=1 user_id="@test_change_password_user:hs1"
time="2021-07-03T10:49:32.139684300Z" level=trace msg="Responding (148 bytes)" func="respond\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:173]" code=200 req.id=q7rIl8IpLzpR req.method=POST req.path=/_matrix/client/r0/register
time="2021-07-03T10:49:32.142531900Z" level=trace msg="Incoming request" func="RequestWithLogging\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:123]" req.id=BwXcMlGSkU1I req.method=POST req.path=/_matrix/client/r0/login
time="2021-07-03T10:49:32.145587200Z" level=info msg=PerformDeviceCreation func="PerformDeviceCreation\n\t" file=" [/build/userapi/internal/api.go:115]" device_id="<nil>" display_name="<nil>" localpart=test_change_password_user req.id=BwXcMlGSkU1I req.method=POST req.path=/_matrix/client/r0/login
time="2021-07-03T10:49:32.156759100Z" level=info msg="Sending device list update message to []" func="onMessage\n\t" file=" [/build/federationsender/consumers/keychange.go:132]"
time="2021-07-03T10:49:32.165801300Z" level=info msg="Produced to key change topic 'DendriteOutputKeyChangeEvent'" func="ProduceKeyChanges\n\t" file=" [/build/keyserver/producers/keychange.go:72]" num_key_changes=1 user_id="@test_change_password_user:hs1"
time="2021-07-03T10:49:32.166919600Z" level=trace msg="Responding (148 bytes)" func="respond\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:173]" code=200 req.id=BwXcMlGSkU1I req.method=POST req.path=/_matrix/client/r0/login
time="2021-07-03T10:49:32.169855500Z" level=trace msg="Incoming request" func="RequestWithLogging\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:123]" req.id=VuHhPjyvGirD req.method=POST req.path=/_matrix/client/r0/account/password
time="2021-07-03T10:49:32.176794600Z" level=info msg=PerformDeviceDeletion func="PerformDeviceDeletion\n\t" file=" [/build/userapi/internal/api.go:127]" devices="[]" req.id=VuHhPjyvGirD req.method=POST req.path=/_matrix/client/r0/account/password user_id="@test_change_password_user:hs1"
time="2021-07-03T10:49:32.186350500Z" level=info msg="Sending device list update message to []" func="onMessage\n\t" file=" [/build/federationsender/consumers/keychange.go:132]"
time="2021-07-03T10:49:32.193333400Z" level=info msg="Produced to key change topic 'DendriteOutputKeyChangeEvent'" func="ProduceKeyChanges\n\t" file=" [/build/keyserver/producers/keychange.go:72]" num_key_changes=1 user_id="@test_change_password_user:hs1"
time="2021-07-03T10:49:32.193726500Z" level=trace msg="Responding (2 bytes)" func="respond\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:173]" code=200 req.id=VuHhPjyvGirD req.method=POST req.path=/_matrix/client/r0/account/password
time="2021-07-03T10:49:32.196225300Z" level=trace msg="Incoming request" func="RequestWithLogging\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:123]" req.id=1ma1hVLsumaC req.method=POST req.path=/_matrix/client/r0/login
time="2021-07-03T10:49:32.197941900Z" level=trace msg="Responding (101 bytes)" func="respond\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:173]" code=403 req.id=1ma1hVLsumaC req.method=POST req.path=/_matrix/client/r0/login
time="2021-07-03T10:49:32.201223500Z" level=trace msg="Incoming request" func="RequestWithLogging\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:123]" req.id=KcgSZM1kL9Rc req.method=POST req.path=/_matrix/client/r0/login
time="2021-07-03T10:49:32.202740900Z" level=info msg=PerformDeviceCreation func="PerformDeviceCreation\n\t" file=" [/build/userapi/internal/api.go:115]" device_id="<nil>" display_name="<nil>" localpart=test_change_password_user req.id=KcgSZM1kL9Rc req.method=POST req.path=/_matrix/client/r0/login
time="2021-07-03T10:49:32.214354200Z" level=info msg="Sending device list update message to []" func="onMessage\n\t" file=" [/build/federationsender/consumers/keychange.go:132]"
time="2021-07-03T10:49:32.221509600Z" level=info msg="Produced to key change topic 'DendriteOutputKeyChangeEvent'" func="ProduceKeyChanges\n\t" file=" [/build/keyserver/producers/keychange.go:72]" num_key_changes=1 user_id="@test_change_password_user:hs1"
time="2021-07-03T10:49:32.221934400Z" level=trace msg="Responding (148 bytes)" func="respond\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:173]" code=200 req.id=KcgSZM1kL9Rc req.method=POST req.path=/_matrix/client/r0/login
time="2021-07-03T10:49:32.224896600Z" level=trace msg="Incoming request" func="RequestWithLogging\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:123]" req.id=8R3qLqXlQhqW req.method=GET req.path=/_matrix/client/r0/account/whoami
time="2021-07-03T10:49:32.225665100Z" level=trace msg="Responding (44 bytes)" func="respond\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:173]" code=200 req.id=8R3qLqXlQhqW req.method=GET req.path=/_matrix/client/r0/account/whoami
time="2021-07-03T10:49:32.228592300Z" level=trace msg="Incoming request" func="RequestWithLogging\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:123]" req.id=yzuT5E7TvpZh req.method=GET req.path=/_matrix/client/r0/account/whoami
time="2021-07-03T10:49:32.229025800Z" level=trace msg="Responding (53 bytes)" func="respond\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:173]" code=401 req.id=yzuT5E7TvpZh req.method=GET req.path=/_matrix/client/r0/account/whoami
time="2021-07-03T10:49:32.231439200Z" level=trace msg="Incoming request" func="RequestWithLogging\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:123]" req.id=7uU1t0BRg52H req.method=POST req.path=/_matrix/client/r0/login
time="2021-07-03T10:49:32.234044600Z" level=info msg=PerformDeviceCreation func="PerformDeviceCreation\n\t" file=" [/build/userapi/internal/api.go:115]" device_id="<nil>" display_name="<nil>" localpart=test_change_password_user req.id=7uU1t0BRg52H req.method=POST req.path=/_matrix/client/r0/login
time="2021-07-03T10:49:32.245347700Z" level=info msg="Sending device list update message to []" func="onMessage\n\t" file=" [/build/federationsender/consumers/keychange.go:132]"
time="2021-07-03T10:49:32.252479000Z" level=info msg="Produced to key change topic 'DendriteOutputKeyChangeEvent'" func="ProduceKeyChanges\n\t" file=" [/build/keyserver/producers/keychange.go:72]" num_key_changes=1 user_id="@test_change_password_user:hs1"
time="2021-07-03T10:49:32.253316800Z" level=trace msg="Responding (148 bytes)" func="respond\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:173]" code=200 req.id=7uU1t0BRg52H req.method=POST req.path=/_matrix/client/r0/login
time="2021-07-03T10:49:32.256321500Z" level=trace msg="Incoming request" func="RequestWithLogging\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:123]" req.id=lFH7fgezSRBf req.method=POST req.path=/_matrix/client/r0/account/password
time="2021-07-03T10:49:32.264958900Z" level=trace msg="Responding (2 bytes)" func="respond\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:173]" code=200 req.id=lFH7fgezSRBf req.method=POST req.path=/_matrix/client/r0/account/password
time="2021-07-03T10:49:32.267574500Z" level=trace msg="Incoming request" func="RequestWithLogging\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:123]" req.id=RRHt3wG8Tz0U req.method=GET req.path=/_matrix/client/r0/account/whoami
time="2021-07-03T10:49:32.268029400Z" level=trace msg="Responding (44 bytes)" func="respond\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:173]" code=200 req.id=RRHt3wG8Tz0U req.method=GET req.path=/_matrix/client/r0/account/whoami
time="2021-07-03T10:49:32.270721800Z" level=trace msg="Incoming request" func="RequestWithLogging\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:123]" req.id=6ofJVo8dMN8G req.method=POST req.path=/_matrix/client/r0/login
time="2021-07-03T10:49:32.273331100Z" level=info msg=PerformDeviceCreation func="PerformDeviceCreation\n\t" file=" [/build/userapi/internal/api.go:115]" device_id="<nil>" display_name="<nil>" localpart=test_change_password_user req.id=6ofJVo8dMN8G req.method=POST req.path=/_matrix/client/r0/login
time="2021-07-03T10:49:32.285417100Z" level=info msg="Sending device list update message to []" func="onMessage\n\t" file=" [/build/federationsender/consumers/keychange.go:132]"
time="2021-07-03T10:49:32.294458200Z" level=info msg="Produced to key change topic 'DendriteOutputKeyChangeEvent'" func="ProduceKeyChanges\n\t" file=" [/build/keyserver/producers/keychange.go:72]" num_key_changes=1 user_id="@test_change_password_user:hs1"
time="2021-07-03T10:49:32.294922000Z" level=trace msg="Responding (148 bytes)" func="respond\n\t" file=" [/go/pkg/mod/github.com/matrix-org/util@v0.0.0-20200807132607-55161520e1d4/json.go:173]" code=200 req.id=6ofJVo8dMN8G req.method=POST req.path=/_matrix/client/r0/login
2021/07/03 16:19:32 ============== 528d8bc2fe8a1f7124c4e8549e5fc1d4991ac4bc9b2f2b21c65cb9cb31935f18 : END LOGS ==============

Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com>
@meenal06
Copy link
Contributor Author

meenal06 commented Jul 3, 2021

@kegsay never mind looks like the pushers endpoint is not implemented in the Dendrite homeserver

Copy link
Member

@kegsay kegsay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move these tests into a new file tests/account_change_password_pushers_test.go and then add a blacklist build tag for Dendrite. Thanks!

meenal06 added 2 commits July 6, 2021 00:06
Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com>
Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com>
Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com>
@meenal06 meenal06 requested a review from kegsay July 6, 2021 13:27
Signed-off-by: Meenal Trivedi <meenaltrivedi6102@gmail.com>
@meenal06 meenal06 requested a review from kegsay July 8, 2021 17:22
@meenal06
Copy link
Contributor Author

meenal06 commented Jul 8, 2021

@kegsay please review, I have done all the requested changes !

match.JSONKeyPresent("pushers"),
match.JSONArrayEach("pushers", func(val gjson.Result) error {
if len(val.Array()) != 0 {
return fmt.Errorf("expected array length to be zero: %v", val.Raw)
Copy link
Member

@kegsay kegsay Jul 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to do the same trick here with pushersSize++.

@meenal06 meenal06 requested a review from kegsay July 10, 2021 07:20
@meenal06
Copy link
Contributor Author

@kegsay please merge

@kegsay kegsay merged commit adae8c1 into matrix-org:master Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants