-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
luci-app-acme: DNS API store all params #7510
Conversation
This, in its present form, does not fix the bug. The data race is still present. Test: CF Key: 1 |
7d1052d
to
ba232d3
Compare
ba232d3
to
c5d330f
Compare
When handling credentials, you’ll need to pull apart the variable and value, to determine whether an incoming variable already exists, and if so, replace it. |
The |
Not quite. It checks to see whether an identical k+v exist in the set at add time, but not whether an identical k already exists with a different v. Such a check is necessary if a user changes their credentials for a provider. |
it splits the
And saves to a map Then when any field was changed, we get the creds values
And and put the updated list back to the
|
applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js
Outdated
Show resolved
Hide resolved
f0c3df4
to
b715976
Compare
Previously only one DNS API field was stored. Get the current creds list, alter it and save. Fix openwrt#7504 Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
b715976
to
0aa3836
Compare
Please merge it, I made another PR on top of the branch. |
Merged. Good work! |
Fix #7504