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

Syllabus: Uncaught TypeError console error when removing an attachment

    XMLWordPrintable

    Details

    • 20 status:
      Verified
    • 19 status:
      Verified
    • 12 status:
      Please Merge
    • Test Plan:
      Hide

      With the browser console open:

      1. Click on Syllabus
      2. Click Add Item
      3. Enter a title and some text
      4. Click Add and Publish OR Add
      5. On the main Syllabus page, click Add Attachment
      6. Click Edit and Edit Details
      7. Click Remove under the attachment -Look in the browser console - are there any errors?
      Show
      With the browser console open: Click on Syllabus Click Add Item Enter a title and some text Click Add and Publish OR Add On the main Syllabus page, click Add Attachment Click Edit and Edit Details Click Remove under the attachment -Look in the browser console - are there any errors?

      Description

      When trying to remove an attachment from Syllabus, there is a console error, but the attachment is removed for all servers except 19 (separate Jira: SAK-43384):

      read:837 Uncaught TypeError: document.forms[0].onsubmit is not a function
      at HTMLAnchorElement.onfocus (read:837)
      onfocus @ read:837

      Server:
      05-Mar-2020 18:46:36.897 WARN [http-nio-20013-exec-15] org.sakaiproject.content.impl.BaseContentService.availabilityCheck availability check for attachment collection /attachment/e85eed2d-d226-4919-8e89-8a2691c2358d/Syllabus/e212b5ef-43ff-420f-8e68-5c14d9992f19/

      05-Mar-2020 18:49:15.898 INFO [http-nio-20013-exec-10] org.sakaiproject.content.impl.DbContentService.removeResource Removing resource (/attachment/e85eed2d-d226-4919-8e89-8a2691c2358d/Syllabus/e212b5ef-43ff-420f-8e68-5c14d9992f19/Salad.png) content: /var/sakai-assets/trunk-mysql/assets

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                bergarvi Bernardo Garcia Vila
                Reporter:
                agschmidt Andrea Schmidt
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration