* [pve-devel] [PATCH manager/proxmox-backup 0/2] fix #7149: ui: prohibit realm update on login
@ 2025-12-18 12:42 Dominik Rusovac
2025-12-18 12:42 ` [pve-devel] [PATCH proxmox-backup 1/1] " Dominik Rusovac
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Dominik Rusovac @ 2025-12-18 12:42 UTC (permalink / raw)
To: pve-devel; +Cc: Dominik Rusovac
The bug relates to PBS, but mentions that the same problem persisted for PVE,
which I could reproduce.
So, I fixed the bug for both products by the making the realm selection during
user creation not stateful, after talking to Dominik Csapak (thx btw).
proxmox-backup:
Dominik Rusovac (1):
fix #7149: ui: prohibit realm update on login
www/window/UserEdit.js | 1 +
1 file changed, 1 insertion(+)
pve-manager:
Dominik Rusovac (1):
fix #7149: ui: prohibit realm update on login
www/manager6/dc/UserEdit.js | 1 +
1 file changed, 1 insertion(+)
Summary over all repositories:
2 files changed, 2 insertions(+), 0 deletions(-)
--
Generated by murpp 0.9.0
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 6+ messages in thread* [pve-devel] [PATCH proxmox-backup 1/1] fix #7149: ui: prohibit realm update on login 2025-12-18 12:42 [pve-devel] [PATCH manager/proxmox-backup 0/2] fix #7149: ui: prohibit realm update on login Dominik Rusovac @ 2025-12-18 12:42 ` Dominik Rusovac 2025-12-18 12:42 ` [pve-devel] [PATCH pve-manager " Dominik Rusovac ` (2 subsequent siblings) 3 siblings, 0 replies; 6+ messages in thread From: Dominik Rusovac @ 2025-12-18 12:42 UTC (permalink / raw) To: pve-devel; +Cc: Dominik Rusovac The realm selection during user creation is no longer stateful. Hence, as desired, adding a new user does not affect the realm on the login page. Signed-off-by: Dominik Rusovac <d.rusovac@proxmox.com> --- www/window/UserEdit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/window/UserEdit.js b/www/window/UserEdit.js index a11507a7..9d9fc9c7 100644 --- a/www/window/UserEdit.js +++ b/www/window/UserEdit.js @@ -80,6 +80,7 @@ Ext.define('PBS.window.UserEdit', { bind: { value: '{realm}', }, + stateful: false, // realm is not saved between page reloads cbind: { hidden: '{!isCreate}', disabled: '{!isCreate}', -- 2.47.3 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* [pve-devel] [PATCH pve-manager 1/1] fix #7149: ui: prohibit realm update on login 2025-12-18 12:42 [pve-devel] [PATCH manager/proxmox-backup 0/2] fix #7149: ui: prohibit realm update on login Dominik Rusovac 2025-12-18 12:42 ` [pve-devel] [PATCH proxmox-backup 1/1] " Dominik Rusovac @ 2025-12-18 12:42 ` Dominik Rusovac 2026-01-27 18:47 ` Thomas Lamprecht 2025-12-19 8:23 ` [pve-devel] [PATCH manager/proxmox-backup 0/2] " Dominik Csapak 2026-01-13 10:27 ` [pve-devel] applied-series: " Fabian Grünbichler 3 siblings, 1 reply; 6+ messages in thread From: Dominik Rusovac @ 2025-12-18 12:42 UTC (permalink / raw) To: pve-devel; +Cc: Dominik Rusovac The realm selection during user creation is no longer stateful. Hence, as desired, adding a new user does not affect the realm on the login page. Signed-off-by: Dominik Rusovac <d.rusovac@proxmox.com> --- www/manager6/dc/UserEdit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/manager6/dc/UserEdit.js b/www/manager6/dc/UserEdit.js index 7541816b..84d9cfa8 100644 --- a/www/manager6/dc/UserEdit.js +++ b/www/manager6/dc/UserEdit.js @@ -99,6 +99,7 @@ Ext.define('PVE.dc.UserEdit', { column1.splice(1, 0, { xtype: 'pmxRealmComboBox', name: 'realm', + stateful: false, // realm is not saved between page reloads fieldLabel: gettext('Realm'), allowBlank: false, matchFieldWidth: false, -- 2.47.3 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [pve-devel] [PATCH pve-manager 1/1] fix #7149: ui: prohibit realm update on login 2025-12-18 12:42 ` [pve-devel] [PATCH pve-manager " Dominik Rusovac @ 2026-01-27 18:47 ` Thomas Lamprecht 0 siblings, 0 replies; 6+ messages in thread From: Thomas Lamprecht @ 2026-01-27 18:47 UTC (permalink / raw) To: Proxmox VE development discussion, Dominik Rusovac stumbled upon this when writing the debian/changelog for a new package version bump: subjet is rather misleading, this does not update anything on login, a side-effect of this change is that the pre-selected realm saved in the browser state, which is then also selected on login. But after this patch, a realm update is still not prohibited for when a user changes the realm on login, unlike your subject suggests, and that is a good thing, as doing so would introduce a regression. A better subject would have been: "ui: user create: do not change pre-selected realm in browser state" or: "ui: realm selector: do no leak changes on user create to local users default" or: "ui: do not set realm selected on user create as default realm of logged-in user" plus prefixing the "fix #..." is naturally fine in our current documented style. Just to give a few example of what I would prefer due to being much clearer in what this commit does, there isn't one right style On 18/12/2025 13:42, Dominik Rusovac wrote: > The realm selection during user creation is no longer stateful. Hence, Wording the commit message in this form makes it sound like the realm selection was changed to not be stateful in a *previous* commit and that caused some regression or the like that this commit fixes. Rather just use the present tense, as a commit changes (from its own POV) something in its present, past things is rather useful to describe the status quo before this commit, or other commits that came before it in the commit log chain. > as desired, adding a new user does not affect the realm on the login > page. Besides some potential language improvements I'd find something like: "Make the authentication realm selector from the user creation dialogue stateless. This avoids odd effects for the logged in user, as we use that browser-local saved state for the pre-selected realm on a fresh login. So if, e.g., a @pam user created and @pve user, on the next login that @pam user suddenly had the @pve realm pre-selected." more telling. Noting his all in such detail because git commit messages are quite important, and while they most often are really fine to be relatively short, they definitively should not be confusing and suggest different changes that what's in them. That can throw one of during checking the git log, bisecting or also when writing changelogs and not looking closely, and then that might leak from that even in the release nodes and proliferate even to various other parts (nowadays some LLM might even pick it up and invent some further BS on top of it...). Anyhow, should have been caught on review, so no fault from your side, but please try to keep this somewhat in mind for future commits/patches. > Signed-off-by: Dominik Rusovac <d.rusovac@proxmox.com> > --- > www/manager6/dc/UserEdit.js | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/www/manager6/dc/UserEdit.js b/www/manager6/dc/UserEdit.js > index 7541816b..84d9cfa8 100644 > --- a/www/manager6/dc/UserEdit.js > +++ b/www/manager6/dc/UserEdit.js > @@ -99,6 +99,7 @@ Ext.define('PVE.dc.UserEdit', { > column1.splice(1, 0, { > xtype: 'pmxRealmComboBox', > name: 'realm', > + stateful: false, // realm is not saved between page reloads > fieldLabel: gettext('Realm'), > allowBlank: false, > matchFieldWidth: false, _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [pve-devel] [PATCH manager/proxmox-backup 0/2] fix #7149: ui: prohibit realm update on login 2025-12-18 12:42 [pve-devel] [PATCH manager/proxmox-backup 0/2] fix #7149: ui: prohibit realm update on login Dominik Rusovac 2025-12-18 12:42 ` [pve-devel] [PATCH proxmox-backup 1/1] " Dominik Rusovac 2025-12-18 12:42 ` [pve-devel] [PATCH pve-manager " Dominik Rusovac @ 2025-12-19 8:23 ` Dominik Csapak 2026-01-13 10:27 ` [pve-devel] applied-series: " Fabian Grünbichler 3 siblings, 0 replies; 6+ messages in thread From: Dominik Csapak @ 2025-12-19 8:23 UTC (permalink / raw) To: Proxmox VE development discussion, Dominik Rusovac Looks good to me, consider both patches Reviewed-by: Dominik Csapak <d.csapak@proxmox.com> Tested-by: Dominik Csapak <d.csapak@proxmox.com> On 12/18/25 1:42 PM, Dominik Rusovac wrote: > The bug relates to PBS, but mentions that the same problem persisted for PVE, > which I could reproduce. > > So, I fixed the bug for both products by the making the realm selection during > user creation not stateful, after talking to Dominik Csapak (thx btw). > > > proxmox-backup: > > Dominik Rusovac (1): > fix #7149: ui: prohibit realm update on login > > www/window/UserEdit.js | 1 + > 1 file changed, 1 insertion(+) > > > pve-manager: > > Dominik Rusovac (1): > fix #7149: ui: prohibit realm update on login > > www/manager6/dc/UserEdit.js | 1 + > 1 file changed, 1 insertion(+) > > > Summary over all repositories: > 2 files changed, 2 insertions(+), 0 deletions(-) > _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
* [pve-devel] applied-series: [PATCH manager/proxmox-backup 0/2] fix #7149: ui: prohibit realm update on login 2025-12-18 12:42 [pve-devel] [PATCH manager/proxmox-backup 0/2] fix #7149: ui: prohibit realm update on login Dominik Rusovac ` (2 preceding siblings ...) 2025-12-19 8:23 ` [pve-devel] [PATCH manager/proxmox-backup 0/2] " Dominik Csapak @ 2026-01-13 10:27 ` Fabian Grünbichler 3 siblings, 0 replies; 6+ messages in thread From: Fabian Grünbichler @ 2026-01-13 10:27 UTC (permalink / raw) To: Proxmox VE development discussion; +Cc: Dominik Rusovac with Dominik C.'s R/T-b, thanks! On December 18, 2025 1:42 pm, Dominik Rusovac wrote: > The bug relates to PBS, but mentions that the same problem persisted for PVE, > which I could reproduce. > > So, I fixed the bug for both products by the making the realm selection during > user creation not stateful, after talking to Dominik Csapak (thx btw). > > > proxmox-backup: > > Dominik Rusovac (1): > fix #7149: ui: prohibit realm update on login > > www/window/UserEdit.js | 1 + > 1 file changed, 1 insertion(+) > > > pve-manager: > > Dominik Rusovac (1): > fix #7149: ui: prohibit realm update on login > > www/manager6/dc/UserEdit.js | 1 + > 1 file changed, 1 insertion(+) > > > Summary over all repositories: > 2 files changed, 2 insertions(+), 0 deletions(-) > > -- > Generated by murpp 0.9.0 > > > _______________________________________________ > pve-devel mailing list > pve-devel@lists.proxmox.com > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel > > > _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-01-27 18:47 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2025-12-18 12:42 [pve-devel] [PATCH manager/proxmox-backup 0/2] fix #7149: ui: prohibit realm update on login Dominik Rusovac 2025-12-18 12:42 ` [pve-devel] [PATCH proxmox-backup 1/1] " Dominik Rusovac 2025-12-18 12:42 ` [pve-devel] [PATCH pve-manager " Dominik Rusovac 2026-01-27 18:47 ` Thomas Lamprecht 2025-12-19 8:23 ` [pve-devel] [PATCH manager/proxmox-backup 0/2] " Dominik Csapak 2026-01-13 10:27 ` [pve-devel] applied-series: " Fabian Grünbichler
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.