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

Forums: Wrong error message displays when student uploads local file for attachment in a site without resource tool

    XMLWordPrintable

    Details

    • 20 status:
      Please Merge
    • Test Plan:
      Hide
      1. As an instructor, open a course site with Forums tool and without Resources tool.
      2. Create a new forum and new topic, assigning the default contributor permissions (see screenshot) to student.
      3. As a student, open the newly created topic and click "Start a new conversation."
      4. Click "Attachments" button.

      Expected Behavior:

      1. No error message displays when the student clicks the Add attachment button.
      2. No error message displays when the student clicks Link to URL.
      3. An error message DOES display if the student clicks the tab labeled, "Select from Resources"

      Current Behavior: An error message displays under "upload a local file" tab: "Alert: You do not have permission to view this folder." 

      Show
      As an instructor, open a course site with Forums tool and without Resources tool. Create a new forum and new topic, assigning the default contributor permissions (see screenshot) to student. As a student, open the newly created topic and click "Start a new conversation." Click "Attachments" button. Expected Behavior : No error message displays when the student clicks the Add attachment button. No error message displays when the student clicks Link to URL. An error message DOES display if the student clicks the tab labeled, "Select from Resources" Current Behavior : An error message displays under "upload a local file" tab: "Alert: You do not have permission to view this folder." 

      Description

      In a site that doesn't have resources tool and has a forums tool, when a student with default contributor permission setting (see screenshot) starts a new conversation or replies to a conversation and clicks "attachment," a wrong error message displays under the "Upload a Local File" tab- "Alert: You do not have permission to view this folder." - even if the student tries to upload a local file rather than to access any folder in resources tool. 

      The reason for this issue might be that in 19 version, "upload a local file" and "select from resources" are not in separate tabs. Therefore, "Alert: You do not have permission to view this folder" displays on the page where both "upload a local file" and "select from resources" appear when there is no resource tool in a site.

      However, in 20 and 21 versions, "upload a local file" and "select from resources"  are in separate tabs. So the error message should only display under "select from resources" tab, not "upload a local file."

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                fyin2 Fangcong Yin
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    Git Integration