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

Login into 4.0 version app not working as expected #1108

Closed
AchalaBelokar opened this issue Sep 26, 2023 · 7 comments
Closed

Login into 4.0 version app not working as expected #1108

AchalaBelokar opened this issue Sep 26, 2023 · 7 comments
Assignees
Labels

Comments

@AchalaBelokar
Copy link

AchalaBelokar commented Sep 26, 2023

Describe the bug
some user is not support in 4.0 version
when I am trying to login maha@stccv with version 5.0 I can login successfully.
And when I am trying to login with version 4 It will give me login page
same thing happen with utkarsh@lahi

To Reproduce
Steps to reproduce the behavior:

  1. login with maha@stccv
    2.put password .
  2. Click on submit button
  3. See error

4.0 apk link: https://output.circle-artifacts.com/output/job/1e4fff15-bd9d-49d6-ac1f-21a5427dd0d7/artifacts/0/generic-prerelease-8a56c782cfe48088c0ae79e5ecb080a963cdb81e.apk

Expected behavior
user is able to successfully login to particular user
home page should be shown
Screenshots

az_recorder_20230926_090213.1.mp4
@github-project-automation github-project-automation bot moved this to New Issues in Avni Product Sep 26, 2023
@mahalakshme mahalakshme removed the 5.0.0 label Sep 26, 2023
@mahalakshme mahalakshme moved this from New Issues to Ready in Avni Product Sep 26, 2023
@AchalaBelokar
Copy link
Author

"Log error content:
TypeError: Cannot read property 'getLineage' of null

This error is located at:
in IndividualProfile"

@mahalakshme mahalakshme changed the title some user is not support in 4.0 version Login into 4.0 version app not working as expected Sep 26, 2023
@himeshr himeshr moved this from Ready to In Progress in Avni Product Sep 26, 2023
@himeshr himeshr self-assigned this Sep 26, 2023
@himeshr
Copy link
Contributor

himeshr commented Sep 26, 2023

Erroring out from server side even before it hits anyof the Avni code interceptor filtes like:
AuthenticationFilter.java
MetadataResourceInterceptor.java
TransactionalResourceInterceptor.java

ErrorLog.txt

@himeshr
Copy link
Contributor

himeshr commented Sep 26, 2023

"Log error content: TypeError: Cannot read property 'getLineage' of null

This error is located at: in IndividualProfile"

These logs are not corresponding to this issue. They belong to #1110

@himeshr
Copy link
Contributor

himeshr commented Sep 26, 2023

Root-cause: AVNI_CSRF_ENABLED was enabled, resulting in spring rejecting any protectedURL without CSRF token.
Fixed this by setting, AVNI_CSRF_ENABLED to false in pre-release(to be done in prod as well for a few months)

export AVNI_CSRF_ENABLED=false

@himeshr himeshr closed this as completed Sep 26, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Avni Product Sep 26, 2023
@himeshr himeshr reopened this Sep 26, 2023
@github-project-automation github-project-automation bot moved this from Done to Triaged in Avni Product Sep 26, 2023
@himeshr himeshr moved this from Triaged to QA Ready in Avni Product Sep 26, 2023
@himeshr
Copy link
Contributor

himeshr commented Sep 26, 2023

@AchalaBelokar config change made to fix the issue reported in this card has resulted in Avni-client 4.0 apk being able to sync to avni-server 5.0 version.
Therefore as part of its QA, we should perform detailed regression testing in pre-release environment with 4.0 apk..
4.0 apk link: https://output.circle-artifacts.com/output/job/1e4fff15-bd9d-49d6-ac1f-21a5427dd0d7/artifacts/0/generic-prerelease-8a56c782cfe48088c0ae79e5ecb080a963cdb81e.apk

@AchalaBelokar AchalaBelokar moved this from QA Ready to In QA in Avni Product Sep 26, 2023
@AchalaBelokar AchalaBelokar moved this from In QA to Done in Avni Product Sep 29, 2023
@AchalaBelokar AchalaBelokar moved this from Done to QA Failed in Avni Product Oct 9, 2023
@AchalaBelokar
Copy link
Author

AchalaBelokar commented Oct 9, 2023

This issue is happening with shelter org maha@shelter this is happening with 5.0.1

@ashusvnath
Copy link

ashusvnath commented Oct 9, 2023

@AchalaBelokar : I used the 4.01.0 APK from play store console and I'm able to log into maha@shelter.
I also used the 5.0.1 apk independently and upgraded from 4.01.0. All flows worked. Nowhere was i logged out.

@vinayvenu vinayvenu reopened this Oct 9, 2023
@github-project-automation github-project-automation bot moved this from QA Failed to Triaged in Avni Product Oct 9, 2023
@AchalaBelokar AchalaBelokar moved this from Triaged to QA Ready in Avni Product Oct 10, 2023
@AchalaBelokar AchalaBelokar moved this from QA Ready to Done in Avni Product Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

5 participants