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

ClassCastException in sitestats with a custom single user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 12.7, 19.3, 20.0 [Tentative]
    • Fix Version/s: 20.0 [Tentative]
    • Component/s: Sitestats
    • Labels:
      None
    • Test Plan:
      Hide
      1. Go to Sitestats as an Instructor in a class with more than one user. (It doesn't have to have any activity)
      2. On Reports -> Add
      3. Click Generate report
      4. Click Back
      5. Click Who -> Custom select an individual user.
      6. Click Generate report

      Expected: Report for individual user
      Actual: Stack trace about ClassCastException

      Maybe there's some more ways to reproduce this but this pattern seemed pretty consistent. It doesn't seem to happen if you just select the user the first time, but I might have seen it other ways than this one. It'd be interesting to see what String value gets into this or how this is happening.

      Show
      Go to Sitestats as an Instructor in a class with more than one user. (It doesn't have to have any activity) On Reports -> Add Click Generate report Click Back Click Who -> Custom select an individual user. Click Generate report Expected: Report for individual user Actual: Stack trace about ClassCastException Maybe there's some more ways to reproduce this but this pattern seemed pretty consistent. It doesn't seem to happen if you just select the user the first time, but I might have seen it other ways than this one. It'd be interesting to see what String value gets into this or how this is happening.

      Description

      There's a ClassCastException in sitestats. See test plan for one way that seems to consistently reproduce it. 

      caused by: java.lang.reflect.InvocationTargetException at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection at org.sakaiproject.sitestats.tool.wicket.pages.ReportsEditPage$MultipleSelect.updateModel(ReportsEditPage.java:1316)

       

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bergarvi Bernardo Garcia Vila
                  Reporter:
                  jonespm Matthew Jones
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code