Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-2560

OU search: Causes errors for very long words (>255 characters)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      In modules that use the OU search block, typing in a very long word (qqqqqqqqq... and so on for more than 255 characters) caused an error as it tries to insert them into the full-text search index table (blocks_ousearch_words).

      I will fix this by restricting words to 255 characters and doing the same on search so that you can also search for them. The number will be a constant so it could potentially be reduced much further in future (but that will require upgrade).

        Attachments

          Activity

            People

            • Assignee:
              quen Sam Marshall
              Reporter:
              quen Sam Marshall
              Participants:
              Component watchers:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: