Skip to content

Cookie bug fix#20

Open
cccs-kanna-chan wants to merge 2 commits intoServiceCanada:masterfrom
cccs-kanna-chan:cookie-bug-fix
Open

Cookie bug fix#20
cccs-kanna-chan wants to merge 2 commits intoServiceCanada:masterfrom
cccs-kanna-chan:cookie-bug-fix

Conversation

@cccs-kanna-chan
Copy link

What does this pull request (PR) do? / Que fait cette demande « pull » (PR)?

This PR fixes a bug where, when a user's system language was set to french, the lastDateIMShown cookie would contain non-ascii characters (ex. lastDateIMShown=Tue Nov 05 2024 11:09:11 GMT-0500 (heure normale de l’Est)) which breaks the RFC6265 standard, and causes any requests to any server under the *.cyber.gc.ca (all of our apps) to be refused because of invalid headers.

Additional information (optional) / Information additionnelle (optionel)

This PR contains a simple fix where the date stored is converted to a timestamp int which avoids special characters altogether, and also adds "www." in front of the cookie domain, making it only match the exact domain and not the subdomains. For example, in the case of cyber.gc.ca, the cookie will only exist for www.cyber.gc.ca, but not for www.other.apps.cyber.gc.ca

General checklist / Liste de contrôle générale
Make your own list for the purpose of your Pull request. /// Faites votre propre liste en fonction des besoins de votre demande « pull ».

  • Create/update documentation /// Créer/mettre à jour la documentation
  • Build and test PR's code /// Rouler le script de compilation et tester le code de la PR
  • Validate changes against WCAG for accessibility /// Valider les changements avec WCAG pour l'accessibilité
  • Ensure documentation is bilingual /// S'assurer que la documentation soit bilingue

Related issues / Requêtes associées
List issues that are being closed or worked on with this pull request i.e. Closes #8 /// Listez les autres requêtes (« issues » ou PR) qui sont fermées ou traitées avec cette demande de retrait ex. : Closes #8

Screenshots / Captures d'écrans
If applicable, add screenshots to help demonstrate what this PR does. /// Si applicable, ajoutez des captures d'écran pour aider à démontrer ce que cette PR fait.

@cccs-julie
Copy link

Hello, any chances this bug gets fixed/merged?

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

Successfully merging this pull request may close these issues.

2 participants