Skip to content

macOS operating system version tags don't seem to work after 10.5.7 #6640

Closed

Description

@wegry

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/browser

SDK Version

7.27.0

Framework Version

React 17.2

Link to Sentry event

https://sentry.io/organizations/streak/issues/3808761614/?environment=production&project=4504322969763840&query=is%3Aunresolved+plan%3Apaid+os%3A%22Mac+OS+X+10.15.7%22&referrer=issue-stream&statsPeriod=1h

Steps to Reproduce

  1. Trigger an error from macOS version newer than 10.5.7, e.g. macOS 13.2.
  2. Current user agent string includes legacy version number "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Safari/605.1.15"
  3. Log Event

Expected Result

Maybe there's a way to still get the true OS version besides user agent strings? Otherwise maybe something like macOS after 10.5.7 might make sense.

Actual Result

Sentry reports the operating system is macOS 10.5.7.

Activity

  1. mydea commented on Jan 4, 2023

    @mydea
    Member

    Yeah, that seems to be the case.
    Apparently, OSX is stuck on 10.15.7, and Windows is stuck on 10.0. On Ubuntu, I get no version at all.

    We should adjust this to show as >= 10.15.7 or >= 10.0, probably. We'll look into it!

  2. self-assigned this
    on Mar 3, 2023
  3. AbhiPrasad commented on Mar 20, 2023

    @AbhiPrasad
    Contributor
  4. Ostefanini commented on Apr 13, 2023

    @Ostefanini

    Hello, I've got a question, why did you choose to show an approximate information instead of fetching the exact operating system version ? it there a technical reason ?

  5. AbhiPrasad commented on Apr 13, 2023

    @AbhiPrasad
    Contributor

    @Ostefanini With more modern browser have deprecated the user agent, which led to them freezing the OS value.

    We switched to supporting user agent client hints, the new API browser want people using, but that doesn't give OS information automatically to help with privacy and fight against fingerprinting.

  6. Ostefanini commented on Apr 13, 2023

    @Ostefanini

    Thanks for this !
    Which version should I use on packages @sentry/react and @sentry/browser for getting the approximated information ?

  7. AbhiPrasad commented on Apr 13, 2023

    @AbhiPrasad
    Contributor

    The latest version (7.47.0) should give you all you need @Ostefanini - but please reach out if you see something that seems weird.

  8. Ostefanini commented on Apr 13, 2023

    @Ostefanini

    Here is what I get:
    image

  9. AbhiPrasad commented on Apr 13, 2023

    @AbhiPrasad
    Contributor

    @Ostefanini if you go down to headers (near the bottom of your page), what do you see there?
    image

  10. Ostefanini commented on Apr 13, 2023

    @Ostefanini
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
    
  11. AbhiPrasad commented on Apr 13, 2023

    @AbhiPrasad
    Contributor

    that seems like a frozen user agent. @TBS1996 do you have more context about what is going on here, since you added this functionality.

  12. Ostefanini commented on Apr 13, 2023

    @Ostefanini

    The version of my web-app is: Sentry 22.3.0

  13. AbhiPrasad commented on Apr 13, 2023

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions