question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🐛 Bug]: Firefox ProfilesIni.readProfiles() does not handle files written in UTF-16 (?)

See original GitHub issue

What happened?

Firefox ProfilesIni.readProfiles() does not handle files written in UTF-16, I think. The following line ignores the encoding bytes at the front of the file.

https://github.com/SeleniumHQ/selenium/blob/d40b1a8504003abc71f7d5f2baedc99f51f8f65a/java/src/org/openqa/selenium/firefox/ProfilesIni.java#L60

How can we reproduce the issue?

The following code returns `null` even though the profile is correct.


   new ProfilesIni().
      getProfile("nathan");


### Relevant log output

```shell
Not applicable

Operating System

Windows 11

Selenium version

Java 3.141.59

What are the browser(s) and version(s) where you see this issue?

Firefox 97.0.2

What are the browser driver(s) and version(s) where you see this issue?

GeckDriver 0.30.0 win64

Are you using Selenium Grid?

No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
diemolcommented, Oct 17, 2022

I will close this but happy to reopen in case more information is provided.

0reactions
github-actions[bot]commented, Nov 17, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What causes the profiles.ini file to become unusable?
I started firefox, and got a message saying my profile could not load. ... was a permission problem (read/write/owner) with profiles.ini.
Read more >
Firefox won't start - can not find profile. Continually happens ...
Every time I start Firefox, the application gives me the error that it is missing the profile. I can got to the windows...
Read more >
How to run Firefox when your profile is missing or inaccessible
It may be missing or inaccessible it usually means that Firefox can't find or access the profile folder. This article explains what to...
Read more >
Firefox doesn't start if installs.ini or profiles.ini attribute is set to ...
The purpose is to always have the same default profile. Is the profile.ini file has a read-write access the selected profile is the...
Read more >
What does "Locked=1" in profiles.ini do? | Firefox Support Forum
As can be seen under the default profile listing is the locked=1 line or setting. So does this lock the profile so no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found