Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-77140

LTI Custom Parameter not set from Content-Item Message

XMLWordPrintable

    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-77140-401
    • MDL-77140-master
    • Hide

      Prerequisites

      1. Expose your site publicly via something like ngrok
      2. Go to Site admin > Plugins > External tool > Manage tools
      3. Click to configure a tool manually
      4. Set the following:
      5. Save the tool

      TinyMCE test

      1. Login as an admin
      2. Go to Site admin > Plugins > Text editors > Manage editors
      3. Set "TinyMCE editor" as the only enabled editor (close the eye on the rest)
      4. Go to a course
      5. Click to edit an activity
      6. Select "External tool"
      7. Now, from the select on the form page, pick the "Saltire test" tool
      8. Click the "Select content" button
      9. In the modal, where Saltire has loaded, click 'Sample content' in the page header.
      10. Leave the single item selected and scroll down
      11. Click 'Return selection'
      12. Once you see the modal close, Verify the following:
        • The activity name field is set
        • The activity description field (Tiny MCE) is set
        • The custom parameters field is set
        • The secure icon URL field is set

      TinyMCE (legacy) test

      1. Login as an admin
      2. Go to Site admin > Plugins > Text editors > Manage editors
      3. Set "TinyMCE HTML editor (legacy)" as the only enabled editor (close the eye on the rest)
      4. Go to a course
      5. Click to edit an activity
      6. Select "External tool"
      7. Now, from the select on the form page, pick the "Saltire test" tool
      8. Click the "Select content" button
      9. In the modal, where Saltire has loaded, click 'Sample content' in the page header.
      10. Leave the single item selected and scroll down
      11. Click 'Return selection'
      12. Once you see the modal close, Verify the following:
        • The activity name field is set
        • The activity description field (Tiny MCE legacy) is set
        • The custom parameters field is set
        • The secure icon URL field is set

      Atto test

      1. Login as an admin
      2. Go to Site admin > Plugins > Text editors > Manage editors
      3. Set "Atto HTML editor" as the only enabled editor (close the eye on the rest)
      4. Go to a course
      5. Click to edit an activity
      6. Select "External tool"
      7. Now, from the select on the form page, pick the "Saltire test" tool
      8. Click the "Select content" button
      9. In the modal, where Saltire has loaded, click 'Sample content' in the page header.
      10. Leave the single item selected and scroll down
      11. Click 'Return selection'
      12. Once you see the modal close, Verify the following:
        • The activity name field is set
        • The activity description field (Atto) is set
        • The custom parameters field is set
        • The secure icon URL field is set
      Show
      Prerequisites Expose your site publicly via something like ngrok Go to Site admin > Plugins > External tool > Manage tools Click to configure a tool manually Set the following: Name: Saltire test LTI version 1.0/1.1  Tool URL: https://saltire.lti.app/tool Consumer key: jisc.ac.uk Shared secret: secret Supports deep linking: yes (checked) Content selection URL: https://saltire.lti.app/tool Save the tool TinyMCE test Login as an admin Go to Site admin > Plugins > Text editors > Manage editors Set "TinyMCE editor" as the only enabled editor (close the eye on the rest) Go to a course Click to edit an activity Select "External tool" Now, from the select on the form page, pick the "Saltire test" tool Click the "Select content" button In the modal, where Saltire has loaded, click 'Sample content' in the page header. Leave the single item selected and scroll down Click 'Return selection' Once you see the modal close, Verify the following : The activity name field is set The activity description field (Tiny MCE) is set The custom parameters field is set The secure icon URL field is set TinyMCE (legacy) test Login as an admin Go to Site admin > Plugins > Text editors > Manage editors Set "TinyMCE HTML editor (legacy)" as the only enabled editor (close the eye on the rest) Go to a course Click to edit an activity Select "External tool" Now, from the select on the form page, pick the "Saltire test" tool Click the "Select content" button In the modal, where Saltire has loaded, click 'Sample content' in the page header. Leave the single item selected and scroll down Click 'Return selection' Once you see the modal close, Verify the following : The activity name field is set The activity description field (Tiny MCE legacy) is set The custom parameters field is set The secure icon URL field is set Atto test Login as an admin Go to Site admin > Plugins > Text editors > Manage editors Set "Atto HTML editor" as the only enabled editor (close the eye on the rest) Go to a course Click to edit an activity Select "External tool" Now, from the select on the form page, pick the "Saltire test" tool Click the "Select content" button In the modal, where Saltire has loaded, click 'Sample content' in the page header. Leave the single item selected and scroll down Click 'Return selection' Once you see the modal close, Verify the following : The activity name field is set The activity description field (Atto) is set The custom parameters field is set The secure icon URL field is set
    • 1
    • Team Hedgehog Sprint 2.1

      Since an update to Moodle Version 4.1.1 (Build: 20230126) my preconfigured Legacy LTI-Tools don't work any more as expected. The Custom Parameters are not filled from Content-Item Message any more.

      How to reproduce:

      • Preconfigure a LTI-Tool with Deep-Linking (Content-Item Message)
      • On any course create an activity from that preconfigured tool
      • Choose any Content
      • Everything works, but the custom parameters field is not set, although the Content-Item message is correctly received from the lti-provider (I checked network-packets received)
      • Actually besides the title, none of the fields received from content-item message are set.

      The problem occurs with two different lti-providers. I even contacted one of the providers and we double checked, that everything on their end was working correctly.

      I tried with different browsers, operating systems and from different networks. It's consistently not working.

      Could it be, that there was a bug introduced in the latest release?

       

      I hope I used the correct terminology, since my site runs in german and I tried to reverse-translate  moodle terminology.

      Thx,

        1. 41_atto.gif
          41_atto.gif
          700 kB
        2. 41_tmce_legacy.gif
          41_tmce_legacy.gif
          523 kB
        3. 41_tmce.gif
          41_tmce.gif
          842 kB
        4. master_atto.gif
          master_atto.gif
          608 kB
        5. master_tmce_legacy.gif
          master_tmce_legacy.gif
          619 kB
        6. master_tmce.gif
          master_tmce.gif
          766 kB
        7. result_1.png
          result_1.png
          300 kB
        8. resutl_2.png
          resutl_2.png
          323 kB

            jaked Jake Dallimore
            nomisge Simon Gebert
            Huong Nguyen Huong Nguyen
            Paul Holden Paul Holden
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 18 minutes
                5h 18m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.