CATAPULT icon indicating copy to clipboard operation
CATAPULT copied to clipboard

False violation when Initialized is called in a batch of statements

Open ysrn opened this issue 3 years ago • 0 comments

When sending a batch of statements (as in an array of more than one statement) with Initialized being the first of them, a false violation is produced: 9.3.0.0-4 - The "Initialized" verb MUST be the first statement (cmi5 allowed or defined).

The issue is in player/service/plugins/routes/lrs.js, which inspects each element of the statements array for: (! session.is_initialized && st.verb.id !== VERB_INITIALIZED_ID). Since is_initialized is only set later on, this code ends up outputting a false violation once it hits the second element of the array and beyond.

ysrn avatar Nov 03 '21 07:11 ysrn