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

[BUG] Duplicate responses stored due to configuration changes #117

Open
asm4 opened this issue Mar 18, 2022 · 0 comments
Open

[BUG] Duplicate responses stored due to configuration changes #117

asm4 opened this issue Mar 18, 2022 · 0 comments

Comments

@asm4
Copy link

asm4 commented Mar 18, 2022

Version used: 2.21.1
Devices/Android version reproduced on: Pixel 3a API 31

Hello all,
I am seeing an issue where survey responses are being recorded twice for some users. To debug what was happening I used Proxyman to see the requests that were being sent from the device and I can easily reproduce the bug.
We have a follow up question after the initial 1-5 rating. If there are any configuration changes during runtime between the submission of the first survey question and the submission of the follow up question, it results in a duplicated value stored in wootric. It appears that this is because the unique_link that is sent with the request is different after the configuration change.

First question POST:
[...]score=5&account_id=5492&end_user_id=388574083&survey%5Bchannel%5D=mobile&priority=0&survey%5Bunique_link%5D=bab116ccef062076746356e7fd8327701f9346340c034f8faa94178608329948&os_name=Android&os_version=12&sdk_version=android-2.21.1
Second question POST (after screen rotate):
[...]score=5&account_id=5492&end_user_id=388574083&survey%5Bchannel%5D=mobile&text=duplicate&priority=0&survey%5Bunique_link%5D=aeda2bcb581733945a154d43b6b4df41159598128ef7a15e2007096c306cf734&os_name=Android&os_version=12&sdk_version=android-2.21.1

Screen Shot 2022-03-18 at 11 32 05 AM

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

No branches or pull requests

1 participant