Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.0.X, 7.1.X, 7.2.X, Master
-
7.2.x, 7.1.x, 7.0.x
-
Committed
-
3
Description
Currently autoLogin implemented classes are executed from AutoLoginFilter following the order in which they were registered, ignoring their service.ranking
Steps to Reproduce:
- Create and deploy a new AutoLogin with service.ranking 100, for example. Use the following one as an example:
@Component(immediate = true, service = AutoLogin.class, property = { "service.ranking:Integer=100" }) public class MyAutoLogin extends BaseAutoLogin { @Override protected String[] doLogin( HttpServletRequest request, HttpServletResponse response) throws Exception { return null; } }
- Execute the following script to check autologin order:
import com.liferay.portal.kernel.security.auto.login.AutoLogin; import com.liferay.portal.servlet.filters.autologin.AutoLoginFilter; for(AutoLogin autologin: AutoLoginFilter._autoLogins) { out.println(autologin); }
Expected Results:
The new autologin should appear first among the registered ones.
Actual Results:
The new autologin appears in the order that was registered.