Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-43823

SAMIGO - htmStripped should not be used on the view pool

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: OPEN
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 20.1, 21.0 [Tentative]
    • Fix Version/s: None
    • Labels:
      None
    • 20 status:
      Please Merge
    • Test Plan:
      Hide

      1. Go to Tests & Quizzes tool
      2. Click Question Poools tab
      3. Add New Pool
      4. Fill Pool name and click Save
      5. Click on the name of the new pool
      6. Click Add Question
      7. Click File Upload and click save
      8. On Question Text click "Show Rich-Text Editor (and character count)
      9. Paste a latex question. This for example:

      Comprobar que se cumplen las leyes de De Morgan con los siguientes conjuntos borrosos.
      
      $$\mu_a(x)=\left\{
      
      \begin\{array}{ll}
      
            0 & x\le 6 \\
      
            \frac\{x-6}{2} & 7\leq x\leq 11 \\
      
            \frac\{13-x}{2} & 11\le x\leq 13 \\
      
            0 & 13\le x \\
      
      \end\{array} 
      
      \right.$$
      
      $$\mu_b(x)=\left\{
      
      \begin\{array}{ll}
      
            0 & x\le 12 \\
      
            \frac\{x-17}{2} & 12\leq x\leq 14 \\
      
            \frac\{16-x}{2} & 15\le x\leq 26 \\
      
            0 & 20\le x \\
      
      \end\{array} 
      
      \right.$$
      

      10. Click Save
      11. It seems that question is on right format (pool view).
      12. Click Preview
      13. Really question is on wrong format

      Show
      1. Go to Tests & Quizzes tool 2. Click Question Poools tab 3. Add New Pool 4. Fill Pool name and click Save 5. Click on the name of the new pool 6. Click Add Question 7. Click File Upload and click save 8. On Question Text click "Show Rich-Text Editor (and character count) 9. Paste a latex question. This for example: Comprobar que se cumplen las leyes de De Morgan con los siguientes conjuntos borrosos. $$\mu_a(x)=\left\{ \begin\{array}{ll}       0 & x\le 6 \\       \frac\{x-6}{2} & 7\leq x\leq 11 \\       \frac\{13-x}{2} & 11\le x\leq 13 \\       0 & 13\le x \\ \end\{array}  \right.$$ $$\mu_b(x)=\left\{ \begin\{array}{ll}       0 & x\le 12 \\       \frac\{x-17}{2} & 12\leq x\leq 14 \\       \frac\{16-x}{2} & 15\le x\leq 26 \\       0 & 20\le x \\ \end\{array}  \right.$$ 10. Click Save 11. It seems that question is on right format (pool view). 12. Click Preview 13. Really question is on wrong format

      Description

      When an instructor inserts a latex question in a question pool, in question pool view it appears that the question is in the right format
      but if you preview the pool, the question format is really wrong.

      htmlStripped should not be used on the pool view.

      See related links:
      https://github.com/sakaiproject/sakai/commit/0242f0f37c01a6aef886d8cb7f4fb5e27c9b16cc

      https://github.com/sakaiproject/sakai/commit/59d50d89f28acabd76ef6626cbe2015f1435c8df#diff-034795c5bf97630fa92150e777b74694R1488

       

       

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                lgekeler Laura Gekeler
                Reporter:
                jesusmmp Jesus Maria Mendez
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    Git Integration