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

[BUG] Can't save Rules when an admin password is defined #5200

Open
ericdlr opened this issue Dec 30, 2024 · 8 comments
Open

[BUG] Can't save Rules when an admin password is defined #5200

ericdlr opened this issue Dec 30, 2024 · 8 comments

Comments

@ericdlr
Copy link

ericdlr commented Dec 30, 2024

When an admin password is defined and the system ask for it when saving the "Rules", all I get in the console is:

[18:21:06]03:07:21.876Info   : EVENT: Login#Failed
[18:21:06]03:07:21.889Info   : EVENT: Login#Failed
[18:21:12]03:07:28.162Info   : EVENT: Login#Failed
[18:21:12]03:07:28.169Info   : EVENT: Login#Failed
[18:21:12]03:07:28.176Info   : EVENT: Login#Failed
[18:21:12]03:07:28.188Info   : EVENT: Login#Failed
[18:21:16]03:07:32.362Info   : EVENT: Login#Failed
[18:21:16]03:07:32.369Info   : EVENT: Login#Failed
[18:21:16]03:07:32.377Info   : EVENT: Login#Failed
[18:21:16]03:07:32.385Info   : EVENT: Login#Failed

Even if I enter the correct login. And the browser is asking again for the password. Sometimes I get multiple login failed entry for a single entry of the password.
In order to save the rules, I have to disable the admin password, save the rules and redefined an admin password.

This happens with an ESP8266 on a NodeMCU v1 ESP-12F board with the following build:

  • ESP_Easy_mega_20241222_normal_ESP8266_4M1M_VCC Dec 22 2024

And with an ESP-01F with the following build:

  • ESP_Easy_mega_20241222_normal_ESP8266_1M_VCC Dec 22 2024
@TD-er
Copy link
Member

TD-er commented Dec 30, 2024

That's really strange as there has nothing changed regarding this code as far as I know.
At least not on ESP8266.

Have you tried another build to make sure this isn't caused by some update of the browser or some browser plugin which may prevent you from fetching the JavaScript code used to upload the rules file?

Do you have any 'special' characters in your password?

@chromoxdor
Copy link
Contributor

chromoxdor commented Dec 30, 2024

This must be an older problem. I had the same issues with a much older build until i disabled the password.

@TD-er
Copy link
Member

TD-er commented Dec 31, 2024

What browser is used? Safari?

@chromoxdor
Copy link
Contributor

chromoxdor commented Dec 31, 2024

Not sure what browsers i tested back then. I will dig a bit deeper when i am home since it seems to be still a thing.

@ericdlr
Copy link
Author

ericdlr commented Dec 31, 2024

I tried with Chrome and it worked. It seems to be a Safari thing. I'm on Sequoia and Safari v18.3.
In Safari's Settings, under the Security tab, the "WebContent: Enable Javascript" box is checked.
So there may be something else blocking JavaScript.

@ericdlr
Copy link
Author

ericdlr commented Dec 31, 2024

Changing 'chrome' to 'Chrome'

@TD-er
Copy link
Member

TD-er commented Dec 31, 2024

Maybe Safari does have some extra protections like "if not HTTPS and login required then no JavaScript" or something like that.

@chromoxdor
Copy link
Contributor

I start to investigate the issue.
I think rules are not the only problem.
Uploading a file is also impossible. And this is not limited to Safari (also chrome and firefox). Can sombody confirm?

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

No branches or pull requests

3 participants