1) Upon login, apply the following license logic
a) If 0 Activated licenses?
ai) Yes - If eval license expired?
ai1) Yes - Display "Evaluation expired" message to user. Text "Your 30 day trial evaluation license has expired. To add a paid license, go to [Activation]. For enterprise license, ...." [Copy the text from ADStudio]
ai2) No - Display "Welcome" message to user. Text "...marketing blurb... To activate an evaluation license, go to [Activation]
bi) No - If license count has been exceeded, display standard license count exceeded error message. (Look at attachment for text.)
3) Do not allow user access to any other screen in the app except the activation tab (& only if I have the appropriate permission) if they do not have an activated license
4) http://10.168.1.17:8081/app/home/project/aquadataserver/issue/1071 - refer to this story for details for how to handle evaluation licenses
|
|
16 KB
|
|
21 KB
|
|
23 KB
|
|
31 KB
ai2) No - Display "Welcome" message to user. Text "...marketing blurb... To activate an evaluation license, go to [Activation]
This Condition is not met
With no Eval and No License - a license exceeded error is displayed
Got the Welcom message when connected to the QA Box
http://10.168.5.212:8082/app/error/license
Got the Welcom message when connected to the QA Box
http://10.168.5.212:8082/app/error/license
Hi Fung,
Given your recent review of licensing code, can u review the implementation for this story.
Hi Fung,
Given your recent review of licensing code, can u review the implementation for this story.
I did the following tests, note that the behavior of test #2 below is different than the one described in the 'Description' section of this issue; other than that, everything else seems to be good.
(1) Upon login, if no licenses activated at all:
The user won't be able to get in, regardless whether this user has an Add/Edit-License permissions or not.
The login page is re-displayed with the following message:
"The product is not activated. Please login as "admin" to add/activate license key(s)"
Only 'admin' user can log onto the server in this case.
(2) No licenses activated and login as 'admin':
Regardless whether the eval license has expired or not, the Welcome page is always displayed:
Welcome
...marketing blurb... To activate an evaluation license, go to 'Activation'
and the admin user can always click the Activation link to proceed.
After Activation tab is displayed, the admin user can click the Activate-License icon to activate
the evaluation license, and then the followings applied:
(a) If the eval license is valid: then the eval license can be activated successfully.
(b) If the eval license has expired: then the following message is displayed:
Your 30 day evaluation period for Aqua Data Server has ended.
If you would like to continue to use Aqua Data Server you may:
....
(3) Upon login, license is activated and license count is less than licensed units:
User can proceed and see his/her home page.
(4) Upon login, license is activated but license count has reached licensed units:
User can proceed with the following message displayed:
License Exceeded
Current: 3
If you are an Aqua Data Server administrator please add license 'here'
(5) After a successful login, and then evaluation license expired while login session is active:
(a) Upon clicking any tab/link/icon/etc., user is always taken to the Welcome page.
(b) Then, if user clicks the Activation link displayed in the Welcome page, the Welcome page is always returned.
I simulated this test case by deactiving the eval license in a different browser.
I cannot just forward the clock time of my desktop computer, say by one month;
if I did that, the user will be taken to the login page in the step 5-a above.
Not sure why use is taken to the login page, though.
I did the following tests, note that the behavior of test #2 below is different than the one described in the 'Description' section of this issue; other than that, everything else seems to be good.
(1) Upon login, if no licenses activated at all:
The user won't be able to get in, regardless whether this user has an Add/Edit-License permissions or not.
The login page is re-displayed with the following message:
"The product is not activated. Please login as "admin" to add/activate license key(s)"
Only 'admin' user can log onto the server in this case.
(2) No licenses activated and login as 'admin':
Regardless whether the eval license has expired or not, the Welcome page is always displayed:
Welcome
...marketing blurb... To activate an evaluation license, go to 'Activation'
and the admin user can always click the Activation link to proceed.
After Activation tab is displayed, the admin user can click the Activate-License icon to activate
the evaluation license, and then the followings applied:
(a) If the eval license is valid: then the eval license can be activated successfully.
(b) If the eval license has expired: then the following message is displayed:
Your 30 day evaluation period for Aqua Data Server has ended.
If you would like to continue to use Aqua Data Server you may:
....
(3) Upon login, license is activated and license count is less than licensed units:
User can proceed and see his/her home page.
(4) Upon login, license is activated but license count has reached licensed units:
User can proceed with the following message displayed:
License Exceeded
Current: 3
If you are an Aqua Data Server administrator please add license 'here'
(5) After a successful login, and then evaluation license expired while login session is active:
(a) Upon clicking any tab/link/icon/etc., user is always taken to the Welcome page.
(b) Then, if user clicks the Activation link displayed in the Welcome page, the Welcome page is always returned.
I simulated this test case by deactiving the eval license in a different browser.
I cannot just forward the clock time of my desktop computer, say by one month;
if I did that, the user will be taken to the login page in the step 5-a above.
Not sure why use is taken to the login page, though.
Specific comments below. It also seems there is one general case that is not implemented: If 0 activated licenses & eval has expired, we should display the eval expired error message instead of the welcome page. This applies to test #2 & to test #5.
>>(1) Upon login, if no licenses activated at all:.....Only 'admin' user can log onto the server in this case.
We should allow any user who is a system administrator to login. Can u verify this is the case? The "admin" column in the system_user table denotes whether the user is a system administrator or not. Also, the error message shouldn't mention "admin" but instead should read "The product is not activated. Please login as a system administrator to add/activate license key(s)."
>>(2) No licenses activated and login as 'admin':... Regardless whether the eval license has expired or not, the Welcome page is always displayed:
Please correct this behavior so that if the eval license has expired, we display the eval expired error message
>>(5) After a successful login, and then evaluation license expired while login session is active:
(a) Upon clicking any tab/link/icon/etc., user is always taken to the Welcome page.
(b) Then, if user clicks the Activation link displayed in the Welcome page, the Welcome page is always returned.
In this scenario, is the user a system administrator?. If so, then in (b), the system administrator should be taken to the Activation page. Hence, if they have purchased licenses, they can then add them. For 5a, ideally we'd be able to display the eval expired message instead of the Welcome page message.
>>I cannot just forward the clock time of my desktop computer, say by one month;
if I did that, the user will be taken to the login page in the step 5-a above.
Not sure why use is taken to the login page, though.
Can u investigate this further as to why the user is being re-directed to the login screen.
Specific comments below. It also seems there is one general case that is not implemented: If 0 activated licenses & eval has expired, we should display the eval expired error message instead of the welcome page. This applies to test #2 & to test #5.
>>(1) Upon login, if no licenses activated at all:.....Only 'admin' user can log onto the server in this case.
We should allow any user who is a system administrator to login. Can u verify this is the case? The "admin" column in the system_user table denotes whether the user is a system administrator or not. Also, the error message shouldn't mention "admin" but instead should read "The product is not activated. Please login as a system administrator to add/activate license key(s)."
>>(2) No licenses activated and login as 'admin':... Regardless whether the eval license has expired or not, the Welcome page is always displayed:
Please correct this behavior so that if the eval license has expired, we display the eval expired error message
>>(5) After a successful login, and then evaluation license expired while login session is active:
(a) Upon clicking any tab/link/icon/etc., user is always taken to the Welcome page.
(b) Then, if user clicks the Activation link displayed in the Welcome page, the Welcome page is always returned.
In this scenario, is the user a system administrator?. If so, then in (b), the system administrator should be taken to the Activation page. Hence, if they have purchased licenses, they can then add them. For 5a, ideally we'd be able to display the eval expired message instead of the Welcome page message.
>>I cannot just forward the clock time of my desktop computer, say by one month;
if I did that, the user will be taken to the login page in the step 5-a above.
Not sure why use is taken to the login page, though.
Can u investigate this further as to why the user is being re-directed to the login screen.
>>>>(1) Upon login, if no licenses activated at all:.....Only 'admin' user can log onto the server in this case.
>> We should allow any user who is a system administrator to login....
Verified, any user who is a system administrator can login and activate the license. The error message has been changed
from
"The product is not activated. Please login as "admin" to add/activate license key(s)"
to
"The product is not activated. Please login as a system administrator to add/activate license key(s)"
Sending www-rep/aquadataserver/src/com/aquafold/aquadataserver/ui/controllers/LoginController.java
Transmitting file data .
Committed revision 16845.
-----------------------------------------------------------
>>>>(2) No licenses activated and login as 'admin':... Regardless whether the eval license has expired or not, the Welcome page is always displayed:
>>Please correct this behavior so that if the eval license has expired, we display the eval expired error message
I studied license related code, after an inactive license file is read into memory, the following attributes contained in the AFLicense object are all null:
licensedUnit
date
daysLeft
This means if an inactive eval license exists, from the AFLicense object, we cannot tell whether this eval license has expired or not until it is activated. Hence, we can only display the Welcome page at this point.
-----------------------------------------------------------
>>>>(5) After a successful login, and then evaluation license expired while login session is active:
>>>>I cannot just forward the clock time of my desktop computer, say by one month;
if I did that, the user will be taken to the login page in the step 5-a above.
Not sure why use is taken to the login page, though.
>> Can u investigate this further as to why the user is being re-directed to the login screen.
This has something to do with expiration of session. I don't know what is the default session timeout defined in tomcat, likely 30 minutes, but definitely not 30 days.
I modified resources/WEB-INF/web.xml and redefined the session timeout to 144000 minutes, i.e. 100 days, by adding the followings:
<session-config>
<session-timeout>144000</session-timeout>
</session-config>
I then re-ran my test, and was able to see the Welcome page after forwarded the clock by 30 days. On the Welcome page, clicking on the Activation link will take user to the Activation page if the user is a system administrator; otherwise, the same Welcome page is returned.
>>>>(1) Upon login, if no licenses activated at all:.....Only 'admin' user can log onto the server in this case.
>> We should allow any user who is a system administrator to login....
Verified, any user who is a system administrator can login and activate the license. The error message has been changed
from
"The product is not activated. Please login as "admin" to add/activate license key(s)"
to
"The product is not activated. Please login as a system administrator to add/activate license key(s)"
Sending www-rep/aquadataserver/src/com/aquafold/aquadataserver/ui/controllers/LoginController.java
Transmitting file data .
Committed revision 16845.
-----------------------------------------------------------
>>>>(2) No licenses activated and login as 'admin':... Regardless whether the eval license has expired or not, the Welcome page is always displayed:
>>Please correct this behavior so that if the eval license has expired, we display the eval expired error message
I studied license related code, after an inactive license file is read into memory, the following attributes contained in the AFLicense object are all null:
licensedUnit
date
daysLeft
This means if an inactive eval license exists, from the AFLicense object, we cannot tell whether this eval license has expired or not until it is activated. Hence, we can only display the Welcome page at this point.
-----------------------------------------------------------
>>>>(5) After a successful login, and then evaluation license expired while login session is active:
>>>>I cannot just forward the clock time of my desktop computer, say by one month;
if I did that, the user will be taken to the login page in the step 5-a above.
Not sure why use is taken to the login page, though.
>> Can u investigate this further as to why the user is being re-directed to the login screen.
This has something to do with expiration of session. I don't know what is the default session timeout defined in tomcat, likely 30 minutes, but definitely not 30 days.
I modified resources/WEB-INF/web.xml and redefined the session timeout to 144000 minutes, i.e. 100 days, by adding the followings:
<session-config>
<session-timeout>144000</session-timeout>
</session-config>
I then re-ran my test, and was able to see the Welcome page after forwarded the clock by 30 days. On the Welcome page, clicking on the Activation link will take user to the Activation page if the user is a system administrator; otherwise, the same Welcome page is returned.
The 3 questions asked on 9/22 are all answered. We can discuss the second question further if needed.
The 3 questions asked on 9/22 are all answered. We can discuss the second question further if needed.
Verified the different scenarios and works fine in build 17112
Verified the different scenarios and works fine in build 17112
Issue #1173 |
| Closed |
| Fixed |
| Resolved |
Completion |
| No due date |
| No fixed build |
| No time estimate |
ai2) No - Display "Welcome" message to user. Text "...marketing blurb... To activate an evaluation license, go to [Activation]
This Condition is not met
With no Eval and No License - a license exceeded error is displayed