Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

SDK sets default locale for JVM #1466

Closed as not planned
Closed as not planned

Description

Version

What package version of the SDK are you using.
4.14.2

Describe the bug

Very strange localization issues appeared in our production application, like formatting dates in Chinese, Portuguese etc. Incidentally, soon after rolling out our Teams app which is part of our backend monolith. Turns out the SDK sets the default locale since #1074 with Locale.setDefault() which is JVM global.

To Reproduce

Steps to reproduce the behavior:

  1. Send a message to a bot with locale other than en_US
  2. Default locale changes, verify with Locale.getDefault()

Expected behavior

Locale.setDefault() is not run by the SDK as it's JVM-wide.

Screenshots

If applicable, add screenshots to help explain your problem
image
.

Additional context

Add any other context about the problem here.
Happens in BotAdapter.java here.

Activity

  1. added
    bug
    needs-triage
    on Apr 30, 2022
  2. added
    customer-reported
    Bot Services
    and removed
    needs-triage
    on May 2, 2022
  3. anishprasad01 commented on May 2, 2022

    @anishprasad01

    Hi Gergely Gombos (@gombosg),

    Thank you for the report.

    Unfortunately, at this time there are no updates scheduled for the Java SDK, barring any major security fixes that need to be addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Bot Servicesbugcustomer-reported

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions