<style>
/* Changing the layout to use less space for mobiles */
@media screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) {
#email-body { min-width: 30em !important; }
#email-page { padding: 8px !important; }
#email-banner { padding: 8px 8px 0 8px !important; }
#email-avatar { margin: 1px 8px 8px 0 !important; padding: 0 !important; }
#email-fields { padding: 0 8px 8px 8px !important; }
#email-gutter { width: 0 !important; }
}
</style>
<div id="email-body">
<table id="email-wrap" align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#f0f0f0;color:#000000;width:100%;">
<tr valign="top">
<td id="email-page" style="padding:16px !important;">
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#ffffff;border:1px solid #bbbbbb;color:#000000;width:100%;">
<tr valign="top">
<td bgcolor="#3b4d64" style="background-color:#3b4d64;color:#ffffff;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;line-height:1;"><img src="https://issues.jboss.org/s/en_USbeh5ai-1988229788/6109/58/_/jira-logo-scaled.png" alt="" style="vertical-align:top;" /></td>
</tr><tr valign="top">
<td id="email-banner" style="padding:32px 32px 0 32px;">
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="width:100%;">
<tr valign="top">
<td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;padding:0;">
<div id="email-action" style="padding: 0 0 8px 0;font-size:12px;line-height:18px;">
<a class="user-hover" rel="smikloso" id="email_smikloso" href="https://issues.jboss.org/secure/ViewProfile.jspa?name=smikloso" style="color:#3b73af;">Stefan Miklosovic</a>
edited a comment on <img src="https://issues.jboss.org/images/icons/issuetypes/bug.png" height="16" width="16" border="0" align="absmiddle" alt="Bug"> <a style='color:#3b73af;text-decoration:none;' href='https://issues.jboss.org/browse/AGPUSH-386'>AGPUSH-386</a>
</div>
<div id="email-summary" style="font-size:16px;line-height:20px;padding:2px 0 16px 0;">
<a style='color:#3b73af;text-decoration:none;' href='https://issues.jboss.org/browse/AGPUSH-386'><strong>It is impossible to log in for the second time or with different user simultaneously with unified push web console</strong></a>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td id="email-fields" style="padding:0 32px 32px 32px;">
<table border="0" cellpadding="0" cellspacing="0" style="padding:0;text-align:left;width:100%;" width="100%">
<tr valign="top">
<td id="email-gutter" style="width:64px;white-space:nowrap;"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td colspan="2" style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 16px 0;width:100%;">
<div class="comment-block" style="background-color:#edf5ff;border:1px solid #dddddd;color:#000000;padding:12px;"><p>Yes I am talking about unified push web admin console.</p>
<p>I do not know why I should be forced to use different browser window in order to log in as different user.</p>
<p>Sorry for having possible duplicate issues but anyway:</p>
<p>1) The very first hit of login page after deployment throws exception that I am not authorized. This exception does not make sense to me since I do know I am not logged in yet and hence not authorized to do anything yet. The exception is as follows:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
10:32:28,421 ERROR [org.jboss.weld.Bean] (http--127.0.0.1-8080-1) WELD-000019 Error destroying an instance Managed Bean [class org.jboss.aerogear.unifiedpush.jpa.dao.impl.PushApplicationDaoImpl] with qualifiers [@Any @Default] of org.jboss.aerogear.unifiedpush.jpa.dao.impl.PushApplicationDaoImpl@4c4e6453
10:32:28,422 ERROR [org.jboss.ejb3.invocation] (http--127.0.0.1-8080-1) JBAS014134: EJB Invocation failed on component PushApplicationEndpoint <span class="code-keyword">for</span> method <span class="code-keyword">public</span> javax.ws.rs.core.Response org.jboss.aerogear.unifiedpush.<span class="code-keyword">rest</span>.registry.applications.PushApplicationEndpoint.listAllPushApplications(): javax.ejb.EJBException: org.jboss.aerogear.security.exception.AeroGearSecurityException: Not authorized!
... monster stack trace follows
</pre>
</div></div>
<p>After putting admin:123 another exception is thrown:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
10:33:35,230 ERROR [org.jboss.ejb3.invocation] (http--127.0.0.1-8080-1) JBAS014134: EJB Invocation failed on component AuthenticationEndpoint <span class="code-keyword">for</span> method <span class="code-keyword">public</span> javax.ws.rs.core.Response org.jboss.aerogear.unifiedpush.<span class="code-keyword">rest</span>.security.AuthenticationEndpoint.login(org.jboss.aerogear.unifiedpush.users.Developer): javax.ejb.EJBException: org.jboss.aerogear.security.exception.AeroGearSecurityException: Credential has expired
.... monster stack trace follows
</pre>
</div></div>
<p>Login with various users:</p>
<p>Scenario 1)</p>
<p>Log in as admin in one browser, when trying to log in as admin in the second window, it writes error, looking at error trace it says I am already logged in. So why it does not redirect me directly to the application?</p>
<p>Scenario 2)</p>
<p>Log in as admin in the first window, log in as developer for the first time in the second window, I need to change default password of developer, I do so, I am going to relogin with developer in the second window while I am still logged in as admin in the first one and it says that I am already logged in. How is that possible? I am logged in only as admin, I am not logged in as developer since I just re-enter passwords from to override the default one and I am about to log in as developer for the first time ever.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
11:03:17,714 ERROR [org.jboss.ejb3.invocation] (http--127.0.0.1-8080-1) JBAS014134: EJB Invocation failed on component AuthenticationEndpoint <span class="code-keyword">for</span> method <span class="code-keyword">public</span> javax.ws.rs.core.Response org.jboss.aerogear.unifiedpush.<span class="code-keyword">rest</span>.security.AuthenticationEndpoint.login(org.jboss.aerogear.unifiedpush.users.Developer): javax.ejb.EJBException: org.picketlink.authentication.UserAlreadyLoggedInException: active agent: org.picketlink.idm.model.basic.User@de9fe3a0
</pre>
</div></div>
<p>Regarding submitting wrong password on the screen where I have to change it from the default one:</p>
<p>When I enter two passwords which do not match, error is displayed to me about that. However, when I enter them for the second time, this time both passwords match and I am redirected to re-login page, that error message about non-matching passwords from last screen is still there. I would expect that that message is not visible anymore when I enter these passwords right for the second time.</p>
<p>It is quite unpredictable when it comes to login / logout operations with different users since there is quite a lot combinations to try however my biggest concern, besides bugs in mentioned, is that it does not do what I would expect + errors are thrown to console with monster stack trace about obvious things. I do know that I am not authorized to do something. That error could be described in one line and not spanning multiple screens. Debugging the application is not very convenient with the current behaviour.</p></div>
<div style="color:#505050;padding:4px 0 0 0;"> </div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td><!-- End #email-page -->
</tr>
<tr valign="top">
<td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:10px;line-height:14px;padding: 0 16px 16px 16px;text-align:center;">
This message is automatically generated by JIRA.<br />
If you think it was sent incorrectly, please contact your JIRA administrators<br />
For more information on JIRA, see: <a style='color:#3b73af;' href='http://www.atlassian.com/software/jira'>http://www.atlassian.com/software/jira</a>
</td>
</tr>
</table><!-- End #email-wrap -->
</div><!-- End #email-body -->