Issue: Switching between Rules Sets seems faulty, still.

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
JanWinnicki
New user
Posts: 2
Joined: 16 Aug 2021, 10:26

Issue: Switching between Rules Sets seems faulty, still.

#1 Post by JanWinnicki » 24 Aug 2021, 23:43

Can you make ESPEasy not to POST send the whole rule's listing as url each time we try to switch between rules set from 1 to 2,3,4 or forth and back?

When the code is long in rules set 1 (or 2,3,4) and you try to switch the set using the drop down list, the browser (Firefox, Edge,...) gets crazy, logs you out od ESPEasy, refuses to open the page, gives 403 error, and so on. Each time.

As a workaround, we could modify the binary image file before programming ESP with it, like so (change it near <footer> tag?):

Code: Select all

<script>
setTimeout(function(){document.getElementById("set").setAttribute("onchange","window.open('rules?set=' + this.value,'_self')");},500);
</script>
Can you authors please correct html code in the next release of ESPEasy, for RULES section to be more perfect?
Thank you in advance.

I am using: ESP_Easy_mega_20210802_normal_ESP8266_4M1M Aug 2 2021

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Issue: Switching between Rules Sets seems faulty, still.

#2 Post by TD-er » 25 Aug 2021, 00:11

It is already fixed in the current code base.
What I did is when the rules set gets toggled, it will call a single JavaScript line to disable the text field in the form, before submitting the form.
Disabled elements of a form are not sent in the POST (or GET), so it will just switch the rules set.

JanWinnicki
New user
Posts: 2
Joined: 16 Aug 2021, 10:26

Re: Issue: Switching between Rules Sets seems faulty, still.

#3 Post by JanWinnicki » 25 Aug 2021, 14:17

Good to know. Thank you!

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 33 guests