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

Windows 8.1 #2

Closed
RoChess opened this issue Oct 5, 2018 · 5 comments
Closed

Windows 8.1 #2

RoChess opened this issue Oct 5, 2018 · 5 comments
Assignees
Labels

Comments

@RoChess
Copy link

RoChess commented Oct 5, 2018

Noticed something weird that Windows 8.1 user-agent strings are not parsed.

Examples of those that seem to fail:

Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36
Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

I can provide more details if needed.

@RoChess
Copy link
Author

RoChess commented Oct 6, 2018

Found issue.

For Windows 8.1 with "Windows NT 6.3" userAgent, the ua-parser sets Major to an "8.1" float when it should be Major "8" integer and Minor "1" integer.

Code on our side does an int() conversion on Major and fails.

@igoree igoree self-assigned this Oct 8, 2018
@igoree igoree added the bug label Oct 8, 2018
@thyn
Copy link
Owner

thyn commented Oct 9, 2018

Created ticket

ua-parser/uap-core#351

@RoChess
Copy link
Author

RoChess commented Oct 9, 2018

Hi thyn,

Thank you for the ticket.

Issue also exists for "XP" which should be put in as 6.0, or "Vista" as 6.1, and help me if people still use it, but I wouldn't bother with Windows ME or 95/98/98SE :)

We modified our table to store as nvarchar(20) for now on OsMajor instead of an int(), as showing "Windows 6.0" will probably be confusing for people. They will instantly recognize "XP", so maybe an OsFriendly output alongside OsMajor/OsMinor would fix that, but just thinking out loud here.

@igoree igoree assigned FlipSs and unassigned igoree Oct 18, 2018
@thyn
Copy link
Owner

thyn commented Nov 26, 2018

karma-runner/karma#3201

@thyn
Copy link
Owner

thyn commented Sep 24, 2019

was fixed about a year ago

@thyn thyn closed this as completed Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants