kamax-matrix / mxisd

Federated Matrix Identity Server
GNU Affero General Public License v3.0
224 stars 114 forks source link

Registration - Email Validation process throws error but still validates #42

Closed Rohithzr closed 6 years ago

Rohithzr commented 6 years ago

ok I head over to my riot app and create a new account. First I get an email titled Linking your Email address to your OnePinger account that takes me to a url on my identity server /_matrix/identity/remote/api/v1/validate/requestToken? Then I get another email Your Matrix Validation Token where the link takes me to https://matrix.org/_matrix/identity I verify the account Verification successful! Please return to your Matrix client to continue. I go back to the previous link where it now says Once the validation was successful with the global server, please follow this link to validate it with us. and if I follow this link I get this error {"errcode":"M_UNKNOWN","error":"An internal server error occured. If this error persists, please contact support with reference #1513682314924","success":false}

  1. I want to generate the token on my domain itself and not matrix.org.
  2. I want to eliminate this error.

Please let me know if you need anymore information. Thanks

maxidorius commented 6 years ago
  1. about the error, please provide the log around the reference 1513682314924 (you can do a grep and get the 30 lines before and after).
  2. See the documentation on how to use the 3PID sessions:
Rohithzr commented 6 years ago

Logs reference id 1513686232107

Dec 19 12:23:50 ip-172-31-19-34 mxisd.jar[12942]: .722  INFO [onPool-worker-0] l.s.RecursivePriorityLookupStrategy : Host Internal allowed for recursion: true
Dec 19 12:23:50 ip-172-31-19-34 mxisd.jar[12942]: .722  INFO [onPool-worker-0]  i.k.m.l.provider.DnsLookupProvider : Performing DNS lookup for vishalvr.2595@gmail.com
Dec 19 12:23:50 ip-172-31-19-34 mxisd.jar[12942]: .722  INFO [onPool-worker-0]  i.k.m.l.provider.DnsLookupProvider : Domain name for vishalvr.2595@gmail.com: gmail.com
Dec 19 12:23:50 ip-172-31-19-34 mxisd.jar[12942]: .722  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : gmail.com is not an URL, using as-is
Dec 19 12:23:50 ip-172-31-19-34 mxisd.jar[12942]: .722  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : Discovery Identity Server for gmail.com
Dec 19 12:23:50 ip-172-31-19-34 mxisd.jar[12942]: .722  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : Performing SRV lookup
Dec 19 12:23:50 ip-172-31-19-34 mxisd.jar[12942]: .722  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : Lookup name: _matrix-identity._tcp.gmail.com
Dec 19 12:23:50 ip-172-31-19-34 mxisd.jar[12942]: .723  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : No SRV record for _matrix-identity._tcp.gmail.com
Dec 19 12:23:50 ip-172-31-19-34 mxisd.jar[12942]: .723  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : Performing basic lookup using domain name gmail.com
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .492  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : Usability of https://gmail.com as Identity server: answer status: 404
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .492  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : https://gmail.com is not a usable Identity Server
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .492  INFO [onPool-worker-0] k.m.l.p.RemoteIdentityServerFetcher : Looking up email 3PID vishalvr.2595@gmail.com using https://matrix.org
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .612  INFO [onPool-worker-0] k.m.l.p.RemoteIdentityServerFetcher : Empty 3PID mapping from https://matrix.org
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .612  INFO [onPool-worker-0] k.m.l.p.RemoteIdentityServerFetcher : Looking up email 3PID vishalvr.2595@gmail.com using https://vector.im
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .734  INFO [onPool-worker-0] k.m.l.p.RemoteIdentityServerFetcher : Empty 3PID mapping from https://vector.im
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .734  INFO [onPool-worker-0]  i.k.m.invitation.InvitationManager : No mapping for pending invite @ro_zivo:idigid.com:!PCxVrQnBCfwqiHRfVu:idigid.com:email:vishalvr.2595@gmail.com
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .734  INFO [onPool-worker-0]  i.k.m.invitation.InvitationManager : Searching for mapping created since invite @devmazumdar:idigid.com:!LewPUHCxTbsuttEIyM:idigid.com:email:packetbiodemo@gmail.com was created
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .734  INFO [onPool-worker-0] l.s.RecursivePriorityLookupStrategy : Host Internal allowed for recursion: true
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .734  INFO [onPool-worker-0]  i.k.m.l.provider.DnsLookupProvider : Performing DNS lookup for packetbiodemo@gmail.com
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .734  INFO [onPool-worker-0]  i.k.m.l.provider.DnsLookupProvider : Domain name for packetbiodemo@gmail.com: gmail.com
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .734  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : gmail.com is not an URL, using as-is
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .734  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : Discovery Identity Server for gmail.com
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .734  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : Performing SRV lookup
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .734  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : Lookup name: _matrix-identity._tcp.gmail.com
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .735  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : No SRV record for _matrix-identity._tcp.gmail.com
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .735  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : Performing basic lookup using domain name gmail.com
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .741  INFO [nio-8090-exec-7] k.m.c.i.v.r.RemoteSessionController : Request GET: http://localhost:8090/_matrix/identity/remote/api/v1/validate/check
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .741  INFO [nio-8090-exec-7]   i.k.mxisd.session.SessionMananger : Session 1513686175660 for email:rohit@trumpt.in: Validating remote 3PID session 11266 on https://matrix.org
Dec 19 12:23:51 ip-172-31-19-34 mxisd.jar[12942]: .892  INFO [nio-8090-exec-3]  i.k.m.c.i.v1.SessionRestController : Requested: http://localhost:8090/_matrix/identity/api/v1/3pid/getValidated3pid
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .108 ERROR [nio-8090-exec-7]     i.k.m.c.DefaultExceptionHandler : Reference #1513686232108 - Local 3PID email:rohit@trumpt.in and remote 3PID email:rohit@trumpt.in do not match for session 1513686175660
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .108  INFO [nio-8090-exec-7]     i.k.m.c.DefaultExceptionHandler : Request GET http://localhost:8090/_matrix/identity/remote/api/v1/validate/check - Error M_UNKNOWN: An internal server error occured. If this error persists, please contact support with reference #1513686232107
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .507  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : Usability of https://gmail.com as Identity server: answer status: 404
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .507  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : https://gmail.com is not a usable Identity Server
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .507  INFO [onPool-worker-0] k.m.l.p.RemoteIdentityServerFetcher : Looking up email 3PID packetbiodemo@gmail.com using https://matrix.org
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .628  INFO [onPool-worker-0] k.m.l.p.RemoteIdentityServerFetcher : Empty 3PID mapping from https://matrix.org
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .628  INFO [onPool-worker-0] k.m.l.p.RemoteIdentityServerFetcher : Looking up email 3PID packetbiodemo@gmail.com using https://vector.im
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .754  INFO [onPool-worker-0] k.m.l.p.RemoteIdentityServerFetcher : Empty 3PID mapping from https://vector.im
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .754  INFO [onPool-worker-0]  i.k.m.invitation.InvitationManager : No mapping for pending invite @devmazumdar:idigid.com:!LewPUHCxTbsuttEIyM:idigid.com:email:packetbiodemo@gmail.com
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .754  INFO [onPool-worker-0]  i.k.m.invitation.InvitationManager : Searching for mapping created since invite @devmazumdar:idigid.com:!LewPUHCxTbsuttEIyM:idigid.com:email:support@opensound.com was created
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .754  INFO [onPool-worker-0] l.s.RecursivePriorityLookupStrategy : Host Internal allowed for recursion: true
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .754  INFO [onPool-worker-0]  i.k.m.l.provider.DnsLookupProvider : Performing DNS lookup for support@opensound.com
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .754  INFO [onPool-worker-0]  i.k.m.l.provider.DnsLookupProvider : Domain name for support@opensound.com: opensound.com
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .754  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : opensound.com is not an URL, using as-is
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .754  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : Discovery Identity Server for opensound.com
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .754  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : Performing SRV lookup
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .754  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : Lookup name: _matrix-identity._tcp.opensound.com
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .755  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : No SRV record for _matrix-identity._tcp.opensound.com
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .755  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : Performing basic lookup using domain name opensound.com
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .984  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : https://opensound.com is not a usable Identity Server: java.security.cert.CertificateException: No name matching opensound.com found
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .984  INFO [onPool-worker-0]    i.k.m.matrix.IdentityServerUtils : https://opensound.com is not a usable Identity Server
Dec 19 12:23:52 ip-172-31-19-34 mxisd.jar[12942]: .984  INFO [onPool-worker-0] k.m.l.p.RemoteIdentityServerFetcher : Looking up email 3PID support@opensound.com using https://matrix.org
Dec 19 12:23:53 ip-172-31-19-34 mxisd.jar[12942]: .108  INFO [onPool-worker-0] k.m.l.p.RemoteIdentityServerFetcher : Empty 3PID mapping from https://matrix.org
Dec 19 12:23:53 ip-172-31-19-34 mxisd.jar[12942]: .108  INFO [onPool-worker-0] k.m.l.p.RemoteIdentityServerFetcher : Looking up email 3PID support@opensound.com using https://vector.im
Dec 19 12:23:53 ip-172-31-19-34 mxisd.jar[12942]: .229  INFO [onPool-worker-0] k.m.l.p.RemoteIdentityServerFetcher : Empty 3PID mapping from https://vector.im
Dec 19 12:23:53 ip-172-31-19-34 mxisd.jar[12942]: .229  INFO [onPool-worker-0]  i.k.m.invitation.InvitationManager : No mapping for pending invite @devmazumdar:idigid.com:!LewPUHCxTbsuttEIyM:idigid.com:email:support@opensound.com
Dec 19 12:23:53 ip-172-31-19-34 mxisd.jar[12942]: .229  INFO [onPool-worker-0]  i.k.m.invitation.InvitationManager : Searching for mapping created since invite @devmazumdar:idigid.com:!LewPUHCxTbsuttEIyM:idigi
maxidorius commented 6 years ago

definitely a bug, thanks. Will investigate.