GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Server mode: selected UI language doesn't persist beyond the request that set it · Issue #10347 · pgadmin-org/pgadmin4 Closed Closed Copy link Labels DescriptionDescribe the bug In server mode, data = request.form if 'language' in data: language = data['language'] or language setattr(session, 'PGADMIN_LANGUAGE', language) elif hasattr(session, 'PGADMIN_LANGUAGE'): language = getattr(session, 'PGADMIN_LANGUAGE', language) elif hasattr(request.cookies, 'PGADMIN_LANGUAGE'): language = getattr( request.cookies, 'PGADMIN_LANGUAGE', language )
Confirmed with a quick REPL check against Net effect: elsewhere in the app (e.g. To Reproduce
Expected behavior The selected language should persist for the session/browser (via the Suggested fix Read the cookie/session properly, e.g.: elif 'PGADMIN_LANGUAGE' in session: language = session.get('PGADMIN_LANGUAGE', language) elif 'PGADMIN_LANGUAGE' in request.cookies: language = request.cookies.get('PGADMIN_LANGUAGE', language) and set the session value with Found while re-verifying #5692 (login page language selection) — the login page itself reads the cookie correctly via Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |