Skip to content

eTag headers not being set #140

Description

@garemoko

It looks like we're not setting etag headers when making PUT requests to the Agent profile API. This is preventing the plugin from working with LRSs that pass the ADL conformance test suite e.g. Watershed.

image

Relevant code is here:

https://github.com/garemoko/moodle-mod_tincanlaunch/blob/e7799fd82e533c95ba9df7b9e083f6c5b613b32d/locallib.php#L332-L358

I'm not clear on whether this is an issue with TinCanPHP or the plugin. Either way, we need to be setting the If-None-Match header in cases where the document is not found. I.e. an else statement here: https://github.com/garemoko/moodle-mod_tincanlaunch/blob/e7799fd82e533c95ba9df7b9e083f6c5b613b32d/locallib.php#L350

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions