Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-1749

Error 500 on opening Profile page with "/" at the end

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5 Larks
    • Fix Version/s: 2.5 Larks
    • Labels:
      None
    • Sprint:
      2.5 Larks

      Description

      Steps to reproduce:

      1. Open forum as anonym user
      2. Go to user profile page via link like http://qa.jtalks.org/jcommune/user/
        note that there is "/" at the end of a link

      Actual result Error 500 is shown (see exception in attachment)
      Expected result Login page is opened

      java.lang.UnsupportedOperationException: Username is not defined for anonymous user
      	org.jtalks.jcommune.model.entity.AnonymousUser.getUsername(AnonymousUser.java:76)
      	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      

        Attachments

          Structure

            Activity

              People

              • Assignee:
                Pavel Gradobik Pavel Gradobik
                Reporter:
                julik Julia Atlygina
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Structure Helper Panel