Re: Logout link in wicket interface

2017-09-14 Thread Dan Haywood
Implemented in ISIS-1713, which will be in Isis 1.15.1 (along with
reverting back to Wicket 7.7.0 to avoid the pagestore issues in Wicket
7.8.0)


On Wed, 13 Sep 2017 at 12:21 Hessel Bakker  wrote:

> Thank you Martin, Dan,
>
> I will raise a Jira ticket to do just that. Much obliged.
>
> Kind regards,
> Hessel Bakker
>
> On Tue, Sep 12, 2017 at 8:56 AM, Dan Haywood
>  wrote:
> > Thanks, Martin.
> > Hessel, do you want to raise a JIRA ticket for this improvement?
> > Thx
> > Dan
> >
> > On Tue, 12 Sep 2017, 07:53 Martin Grigorov  wrote:
> >
> >> Hi Hessel,
> >>
> >> On Mon, Sep 11, 2017 at 2:13 PM, Hessel Bakker 
> >> wrote:
> >>
> >> > Hi all,
> >> >
> >> > In our setup monitoring is being done on (among others) the wicket web
> >> > interface of our hosts.
> >> >
> >> > I am now trying to include a logout step as well, because otherwise
> >> > the sessions stay alive until a timeout is reached, resulting in a log
> >> > file pile-up on the server.
> >> >
> >> > In order to do this, I am looking for a viable logout link. To
> >> > illustrate, this is the link used for the login part:
> >> > http://{HOST.NAME}:8080/{$APP_STATUS}/wicket/signin?-1.
> >> > IFormSubmitListener-signInPanel-signInForm.
> >> >
> >> > When I inspect the menu for logout, the resulting link is:
> >> > http://{HOST.NAME}:8080/{$APP_STATUS}/wicket/entity?3-1.
> >> > ILinkListener-theme-header-tertiaryMenuBar-logoutLink,
> >> >
> >>
> >> I guess the problem is because of "?3" - '3' is the page id and is
> dynamic
> >> depending on your current nagivation.
> >>
> >>
> >>
> >> > which doesn't produce a logout when called by the monitoring system.
> >> >
> >> > I would like to be able to have the monitoring solution (which is
> >> > Zabbix) logout. Can anyone point me in the right direction? Thanks in
> >> > advance.
> >> >
> >>
> >> To make the url stable you (or Isis in a future version) will have to
> >> introduce a special page that will invalidate the session.
> >> This page should do the same as
> >>
> >>
> https://github.com/apache/isis/blob/b66fb6e662a4273a00f94fea07725f813121d8e8/core/viewer-wicket-ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/actionmenu/serviceactions/TertiaryActionsPanel.java#L90-L92
> >> in
> >> its constructor. It can even use "throw
> >> RestartResponseException(SignInPage.class)" instead of
> >> "setResponsePage(SignInPage.class)".
> >> Then in YourApplication.java, in #init() method do something like:
> >> mountPage("logout", LogoutPage.class)
> >> And in your logout step you can use "http://{HOST.NAME <
> http://host.name/>
> >> }:8080/{$APP_STATUS}/wicket/logout".
> >>
> >>
> >> >
> >> > Kind regards,
> >> > Hessel Bakker
> >> >
> >>
>


Re: Logout link in wicket interface

2017-09-13 Thread Hessel Bakker
Thank you Martin, Dan,

I will raise a Jira ticket to do just that. Much obliged.

Kind regards,
Hessel Bakker

On Tue, Sep 12, 2017 at 8:56 AM, Dan Haywood
 wrote:
> Thanks, Martin.
> Hessel, do you want to raise a JIRA ticket for this improvement?
> Thx
> Dan
>
> On Tue, 12 Sep 2017, 07:53 Martin Grigorov  wrote:
>
>> Hi Hessel,
>>
>> On Mon, Sep 11, 2017 at 2:13 PM, Hessel Bakker 
>> wrote:
>>
>> > Hi all,
>> >
>> > In our setup monitoring is being done on (among others) the wicket web
>> > interface of our hosts.
>> >
>> > I am now trying to include a logout step as well, because otherwise
>> > the sessions stay alive until a timeout is reached, resulting in a log
>> > file pile-up on the server.
>> >
>> > In order to do this, I am looking for a viable logout link. To
>> > illustrate, this is the link used for the login part:
>> > http://{HOST.NAME}:8080/{$APP_STATUS}/wicket/signin?-1.
>> > IFormSubmitListener-signInPanel-signInForm.
>> >
>> > When I inspect the menu for logout, the resulting link is:
>> > http://{HOST.NAME}:8080/{$APP_STATUS}/wicket/entity?3-1.
>> > ILinkListener-theme-header-tertiaryMenuBar-logoutLink,
>> >
>>
>> I guess the problem is because of "?3" - '3' is the page id and is dynamic
>> depending on your current nagivation.
>>
>>
>>
>> > which doesn't produce a logout when called by the monitoring system.
>> >
>> > I would like to be able to have the monitoring solution (which is
>> > Zabbix) logout. Can anyone point me in the right direction? Thanks in
>> > advance.
>> >
>>
>> To make the url stable you (or Isis in a future version) will have to
>> introduce a special page that will invalidate the session.
>> This page should do the same as
>>
>> https://github.com/apache/isis/blob/b66fb6e662a4273a00f94fea07725f813121d8e8/core/viewer-wicket-ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/actionmenu/serviceactions/TertiaryActionsPanel.java#L90-L92
>> in
>> its constructor. It can even use "throw
>> RestartResponseException(SignInPage.class)" instead of
>> "setResponsePage(SignInPage.class)".
>> Then in YourApplication.java, in #init() method do something like:
>> mountPage("logout", LogoutPage.class)
>> And in your logout step you can use "http://{HOST.NAME 
>> }:8080/{$APP_STATUS}/wicket/logout".
>>
>>
>> >
>> > Kind regards,
>> > Hessel Bakker
>> >
>>


Re: Logout link in wicket interface

2017-09-11 Thread Dan Haywood
Thanks, Martin.
Hessel, do you want to raise a JIRA ticket for this improvement?
Thx
Dan

On Tue, 12 Sep 2017, 07:53 Martin Grigorov  wrote:

> Hi Hessel,
>
> On Mon, Sep 11, 2017 at 2:13 PM, Hessel Bakker 
> wrote:
>
> > Hi all,
> >
> > In our setup monitoring is being done on (among others) the wicket web
> > interface of our hosts.
> >
> > I am now trying to include a logout step as well, because otherwise
> > the sessions stay alive until a timeout is reached, resulting in a log
> > file pile-up on the server.
> >
> > In order to do this, I am looking for a viable logout link. To
> > illustrate, this is the link used for the login part:
> > http://{HOST.NAME}:8080/{$APP_STATUS}/wicket/signin?-1.
> > IFormSubmitListener-signInPanel-signInForm.
> >
> > When I inspect the menu for logout, the resulting link is:
> > http://{HOST.NAME}:8080/{$APP_STATUS}/wicket/entity?3-1.
> > ILinkListener-theme-header-tertiaryMenuBar-logoutLink,
> >
>
> I guess the problem is because of "?3" - '3' is the page id and is dynamic
> depending on your current nagivation.
>
>
>
> > which doesn't produce a logout when called by the monitoring system.
> >
> > I would like to be able to have the monitoring solution (which is
> > Zabbix) logout. Can anyone point me in the right direction? Thanks in
> > advance.
> >
>
> To make the url stable you (or Isis in a future version) will have to
> introduce a special page that will invalidate the session.
> This page should do the same as
>
> https://github.com/apache/isis/blob/b66fb6e662a4273a00f94fea07725f813121d8e8/core/viewer-wicket-ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/actionmenu/serviceactions/TertiaryActionsPanel.java#L90-L92
> in
> its constructor. It can even use "throw
> RestartResponseException(SignInPage.class)" instead of
> "setResponsePage(SignInPage.class)".
> Then in YourApplication.java, in #init() method do something like:
> mountPage("logout", LogoutPage.class)
> And in your logout step you can use "http://{HOST.NAME 
> }:8080/{$APP_STATUS}/wicket/logout".
>
>
> >
> > Kind regards,
> > Hessel Bakker
> >
>


Re: Logout link in wicket interface

2017-09-11 Thread Martin Grigorov
Hi Hessel,

On Mon, Sep 11, 2017 at 2:13 PM, Hessel Bakker  wrote:

> Hi all,
>
> In our setup monitoring is being done on (among others) the wicket web
> interface of our hosts.
>
> I am now trying to include a logout step as well, because otherwise
> the sessions stay alive until a timeout is reached, resulting in a log
> file pile-up on the server.
>
> In order to do this, I am looking for a viable logout link. To
> illustrate, this is the link used for the login part:
> http://{HOST.NAME}:8080/{$APP_STATUS}/wicket/signin?-1.
> IFormSubmitListener-signInPanel-signInForm.
>
> When I inspect the menu for logout, the resulting link is:
> http://{HOST.NAME}:8080/{$APP_STATUS}/wicket/entity?3-1.
> ILinkListener-theme-header-tertiaryMenuBar-logoutLink,
>

I guess the problem is because of "?3" - '3' is the page id and is dynamic
depending on your current nagivation.



> which doesn't produce a logout when called by the monitoring system.
>
> I would like to be able to have the monitoring solution (which is
> Zabbix) logout. Can anyone point me in the right direction? Thanks in
> advance.
>

To make the url stable you (or Isis in a future version) will have to
introduce a special page that will invalidate the session.
This page should do the same as
https://github.com/apache/isis/blob/b66fb6e662a4273a00f94fea07725f813121d8e8/core/viewer-wicket-ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/actionmenu/serviceactions/TertiaryActionsPanel.java#L90-L92
in
its constructor. It can even use "throw
RestartResponseException(SignInPage.class)" instead of
"setResponsePage(SignInPage.class)".
Then in YourApplication.java, in #init() method do something like:
mountPage("logout", LogoutPage.class)
And in your logout step you can use "http://{HOST.NAME 
}:8080/{$APP_STATUS}/wicket/logout".


>
> Kind regards,
> Hessel Bakker
>


Logout link in wicket interface

2017-09-11 Thread Hessel Bakker
Hi all,

In our setup monitoring is being done on (among others) the wicket web
interface of our hosts.

I am now trying to include a logout step as well, because otherwise
the sessions stay alive until a timeout is reached, resulting in a log
file pile-up on the server.

In order to do this, I am looking for a viable logout link. To
illustrate, this is the link used for the login part:
http://{HOST.NAME}:8080/{$APP_STATUS}/wicket/signin?-1.IFormSubmitListener-signInPanel-signInForm.

When I inspect the menu for logout, the resulting link is:
http://{HOST.NAME}:8080/{$APP_STATUS}/wicket/entity?3-1.ILinkListener-theme-header-tertiaryMenuBar-logoutLink,
which doesn't produce a logout when called by the monitoring system.

I would like to be able to have the monitoring solution (which is
Zabbix) logout. Can anyone point me in the right direction? Thanks in
advance.

Kind regards,
Hessel Bakker