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

Store user login session after updates #585

Open
dmpr0 opened this issue Nov 13, 2024 · 3 comments
Open

Store user login session after updates #585

dmpr0 opened this issue Nov 13, 2024 · 3 comments
Assignees
Milestone

Comments

@dmpr0
Copy link
Contributor

dmpr0 commented Nov 13, 2024

Description

Every time the development team updates the main/production version of osmand.net, users are required to log in again.
This disrupts the user experience and can be quite frustrating. Is there a way to preserve user sessions across updates or, alternatively, reduce the frequency of updates on the main site?

@vshcherb vshcherb modified the milestones: 4.9-web, 5.0-web Nov 14, 2024
@vshcherb
Copy link
Member

Better to use redis like db with expired row than postgresql

@RZR-UA
Copy link
Contributor

RZR-UA commented Nov 25, 2024

Redis-related crash (admin area) to fix:

PS. redis @ prod is disabled temporarily.

Caused by: org.springframework.core.serializer.support.SerializationFailedException: Failed to serialize object using DefaultSerializer; nested exception is java.io.NotSerializableException: net.osmand.server.api.repo.DeviceSubscriptionsRepository$SupporterDeviceSubscription
        at org.springframework.core.serializer.support.SerializingConverter.convert(SerializingConverter.java:64)
        at org.springframework.core.serializer.support.SerializingConverter.convert(SerializingConverter.java:33)
        at org.springframework.data.redis.serializer.JdkSerializationRedisSerializer.serialize(JdkSerializationRedisSerializer.java:94)
        at org.springframework.data.redis.core.AbstractOperations.rawHashValue(AbstractOperations.java:186)
        at org.springframework.data.redis.core.DefaultHashOperations.putAll(DefaultHashOperations.java:209)
        at org.springframework.data.redis.core.DefaultBoundHashOperations.putAll(DefaultBoundHashOperations.java:187)
        at org.springframework.session.data.redis.RedisIndexedSessionRepository$RedisSession.saveDelta(RedisIndexedSessionRepository.java:811)
        at org.springframework.session.data.redis.RedisIndexedSessionRepository$RedisSession.save(RedisIndexedSessionRepository.java:799)
        at org.springframework.session.data.redis.RedisIndexedSessionRepository$RedisSession.access$000(RedisIndexedSessionRepository.java:686)
        at org.springframework.session.data.redis.RedisIndexedSessionRepository.save(RedisIndexedSessionRepository.java:415)

@RZR-UA
Copy link
Contributor

RZR-UA commented Nov 25, 2024

Redis is back. @alisa911, please add serialVersionUID to all other Repositories.

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

4 participants