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

Stacktrace when browsing through filepicker as admin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 12.6, 19.0, 20.0 [Tentative]
    • Fix Version/s: 19.1, 20.0 [Tentative]
    • Component/s: Content
    • Labels:
      None
    • 19 status:
      Verified
    • 12 status:
      Please Merge
    • Test Plan:
      1. Log in as admin
      2. Access the filepicker (for example, adding an attachment at the announcements tool)
      3. Browse through "Other sites"
      4. Check the logs.

      Description

      If you try to browse through the folders using FilePicker as the admin user, it is throwing an exception in the logs, due to the admin not having a personal folder:

       

      org.sakaiproject.content.tool.FilePickerAction.readAllResources IdUnusedException
      org.sakaiproject.exception.IdUnusedException id: /user/admin/
      at org.sakaiproject.content.impl.BaseContentService.getCollection(BaseContentService.java:2352)
      at org.sakaiproject.content.tool.FilePickerAction.readAllResources(FilePickerAction.java:3144)
      at org.sakaiproject.content.tool.FilePickerAction.prepPage(FilePickerAction.java:2904)
      at org.sakaiproject.content.tool.FilePickerAction.buildSelectAttachmentContext(FilePickerAction.java:778)
      at org.sakaiproject.content.tool.FilePickerAction.buildMainPanelContext(FilePickerAction.java:328)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.sakaiproject.cheftool.VelocityPortletPaneledAction.toolModeDispatch(VelocityPortletPaneledAction.java:399)
      at org.sakaiproject.content.tool.FilePickerAction.toolModeDispatch(FilePickerAction.java:2026)
      at org.sakaiproject.cheftool.ToolServlet.doGet(ToolServlet.java:234)
      at org.sakaiproject.cheftool.VelocityPortletPaneledAction.doGet(VelocityPortletPaneledAction.java:1155)
      ...
      

      Far from a big deal (and doesn't seem to have any ui impact) but it's annoying because it appears everytime a click is made in there.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bergarvi Bernardo Garcia Vila
                Reporter:
                bergarvi Bernardo Garcia Vila
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code