Skip to content

Session timeout value has no effect on OC 15 and OC 16 and workaround #6260

Open
@wsmirnow

Description

Opencast configuration etc/org.ops4j.pax.web.cfg has an option to define the user session timeout value in

# Timeout for user sessions in minutes.
org.ops4j.pax.web.session.timeout=240

Setting this value has no effect on Opencast 15 and 16. The root cause are two bugs in underlying framework pax-web. The issues are documented and already fixed in the newer versions but it has to find a way back to Opencast.

How to reproduce

  1. Edit /etc/opencast/org.ops4j.pax.web.cfg and set org.ops4j.pax.web.session.timeout=1 (1 minute session timeout).
  2. Restart Opencast
  3. Login to Opencast by unchecking the remember-me checkbox!
  4. Wait a bit longer then 1 minute.
  5. Your session should be invalid and you should be redirected to the login page.

But this is not the case. There are workarounds available.

Opencast 15 workaround

Run this commands and restart Opencast (updated)

sudo sed -i 's/8.0.22/8.0.29/g' /usr/share/opencast/system/org/apache/karaf/features/standard/4.4.4/standard-4.4.4-features.xml
sudo sed -i 's/8.0.22/8.0.29/g' /etc/opencast/org.apache.karaf.features.cfg

Opencast 16 workaround

Set the value of org.ops4j.pax.web.session.timeout in seconds in /etc/opencast/org.ops4j.pax.web.cfg.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions