Describe the bug
In openEQUELLA all file attachments get an entry added (CONTENT_VIEWED in the event_type column) to the audit_log_entry table whenever an attachment is accessed from the filestore.
A client is having an issue with audit logging for SCORM packages. In particular how the referrer entry in the meta column is functioning.
When a SCORM package is viewed in openEQUELLA it generates a viewscorm.jsp URL (this is openEQUELLA's package viewer). This doesn't get logged as a content view in the audit log table, but the files inside the SCORM package do.
The issue is when a SCORM is accessed from an LMS. An Edalex client (TANZ) adds SCORM packages to their LMS, and wants to track the referrer of all CONTENT_VIEWED events. The first content view event logged for a SCORM package attachment is the entry point (e.g. PRINCE2.zip/index_lms.html) with HTTP referrer being viewscorm.jsp.
The original referrer (e.g. TANZ's Moodle is lost).
What we need to do is either:
Make the hit to the viewscorm.jsp be logged as a CONTENT_VIEWED event inside the audit_log_entry table
or
Modify the first CONTENT_VIEWED entry so the meta column has the referrer of the LMS, not the viewscorm.jsp URL.
To Reproduce
Steps to reproduce the behaviour:
Ensure you have your audit.level (in learningedge-config\plugins\com.tle.web.viewitem\madatory.properties) set to 'NORMAL')
Start a contribution inside openEQUELLA
Add the attached file as a SCORM attachment
Save the item
Using an LMS (eg. Moodle) start a selection session, and add the attachment you added in step 1
Click the attachment in your LMS
View the openEQUELLA audit_log_entry table using the database administration program of your choosing)
The bottom entry should look similar to the following
Notice there is nothing in the meta column indicating that you accessed the attachment via an LMS
Expected behavior
When a user accesses a SCORM package the referrer entry in the meta column of the audit_log_entry table should be the URL of the LMS.
Describe the bug In openEQUELLA all file attachments get an entry added (
CONTENT_VIEWED
in theevent_type
column) to theaudit_log_entry
table whenever an attachment is accessed from the filestore.A client is having an issue with audit logging for SCORM packages. In particular how the referrer entry in the meta column is functioning.
When a SCORM package is viewed in openEQUELLA it generates a
viewscorm.jsp
URL (this is openEQUELLA's package viewer). This doesn't get logged as a content view in the audit log table, but the files inside the SCORM package do.The issue is when a SCORM is accessed from an LMS. An Edalex client (TANZ) adds SCORM packages to their LMS, and wants to track the referrer of all
CONTENT_VIEWED
events. The first content view event logged for a SCORM package attachment is the entry point (e.g.PRINCE2.zip/index_lms.html
) with HTTP referrer beingviewscorm.jsp
.The original referrer (e.g. TANZ's Moodle is lost).
What we need to do is either:
viewscorm.jsp
be logged as aCONTENT_VIEWED
event inside theaudit_log_entry
tableor
CONTENT_VIEWED
entry so the meta column has the referrer of the LMS, not theviewscorm.jsp
URL.To Reproduce
Steps to reproduce the behaviour:
Ensure you have your
audit.level
(inlearningedge-config\plugins\com.tle.web.viewitem\madatory.properties
) set to 'NORMAL')audit_log_entry
table using the database administration program of your choosing)Expected behavior
When a user accesses a SCORM package the referrer entry in the meta column of the
audit_log_entry
table should be the URL of the LMS.Platform:
ContentPackagingSingleSCO_SCORM12.zip