Grails 3.3.9 spring security 3.2.3 spring security ui 3.1.2无法更改用户数据

Grails 3.3.9 spring security 3.2.3 spring security ui 3.1.2无法更改用户数据,grails,spring-security,Grails,Spring Security,使用Grails 3.3.9上的Spring Security core 3.2.3,我可以在BootStrap.groovy中添加一个用户,例如: User u1 = new User(username: 'testuser1', password: 'finkaroney', email: 'any@any.com') Role sur = Role.findByAuthority('ROLE_USER') u1.save(flush: true) UserRole.create(u1, s

使用Grails 3.3.9上的Spring Security core 3.2.3,我可以在BootStrap.groovy中添加一个用户,例如:

User u1 = new User(username: 'testuser1', password: 'finkaroney', email: 'any@any.com')
Role sur = Role.findByAuthority('ROLE_USER')
u1.save(flush: true)
UserRole.create(u1, sur, true)
现有用户也可以顺利登录和注销

使用SpringSecurityUI3.1.2的界面,我可以列出用户、角色等

但是,对于S2UI 3.1.2,我不能:

  • 添加用户
  • 删除用户
  • 修改用户的参数,例如enabled、accountExpired等
当我尝试做这些事情时,通常会在浏览器窗口的右上角弹出一条消息

例如,如果我试图删除一个用户,我会看到这个弹出窗口

Oops! That may not have been deleted. Either the form was submitted twice or possible CSRF attempt. Be careful what you click.
testuser1 may not have been updated. Either the form was submitted twice or possible CSRF attempt. Be careful what you click.
或者,如果我试图说用户过期,我会看到这个弹出窗口

Oops! That may not have been deleted. Either the form was submitted twice or possible CSRF attempt. Be careful what you click.
testuser1 may not have been updated. Either the form was submitted twice or possible CSRF attempt. Be careful what you click.
果然,在第一种情况下,用户没有被删除,在第二种情况下,用户没有过期

运行Grails的窗口中没有崩溃或任何其他相关消息


这个应用程序已经完成了几个主要和次要的Grails和Groovy版本,所以如果有什么地方出现了问题,我也不会感到惊讶。但是我不知道从哪里开始,也不知道如何开始寻找这种问题。

经过大量的检查和诅咒,我注意到就在今天,我的gradle.properties中报告的Grails版本被设置为3.3.3,而不是3.3.9。纠正了这一点后,我的UI现在可以正确地更改和删除用户