Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-1720

Error logging in if the project or repository added as a favourite has been deleted

    XMLWordPrintable

Details

    Description

      The following error is thrown when the user who is logging in has added a project as a favourite, that has been deleted.

      2009-07-09 17:39:35,437 ERROR [btpool0-12] org.mortbay.log org.mortbay.log.Slf4jLog-warn - /home
      java.lang.NullPointerException
      	at com.atlassian.fisheye.stars.model.ProjectStar.getName(ProjectStar.java:42)
      	at com.atlassian.fisheye.stars.tags.StarData.<init>(StarData.java:52)
      	at com.atlassian.fisheye.stars.tags.StarWebUtil.getLoggedInUsersStars(StarWebUtil.java:98)
      	at com.atlassian.fisheye.user.action.UserHomePageAction.execute(UserHomePageAction.java:40)
      	at com.atlassian.fisheye.user.action.BaseUserPageAction.initThenExecute(BaseUserPageAction.java:112)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      

      Steps to reproduce:

      1. Login as admin to create an user and a project
      2. Login as the newly created user
      3. Add the project to favourite
      4. Logout the user
      5. Remove the project via Admin > Projects List
      6. Error occurs when the user login again

      The similar problem happens when a repository is deleted.

      2009-07-09 18:04:57,078 ERROR [btpool0-14] org.mortbay.log org.mortbay.log.Slf4jLog-warn - Nested in javax.servlet.jsp.JspException: javax.el.ELException: Problems calling function 'cru:getRepoType':
      javax.el.ELException: Problems calling function 'cru:getRepoType'
      	at com.sun.el.parser.AstFunction.getValue(AstFunction.java:132)
      	at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)
      	at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1001)
      	at org.apache.jsp.tag.web.cru.star.tableRow_tag._jspx_meth_c_set_1(tableRow_tag.java:301)
      	at org.apache.jsp.tag.web.cru.star.tableRow_tag._jspx_meth_c_when_1(tableRow_tag.java:256)
      	at org.apache.jsp.tag.web.cru.star.tableRow_tag._jspx_meth_c_choose_0(tableRow_tag.java:158)
      	at org.apache.jsp.tag.web.cru.star.tableRow_tag.doTag(tableRow_tag.java:125)
      

      Steps to reproduce:

      1. Create a repository
      2. Login as the user and add the repository as favourite
      3. Now, remove the repository from admin page
      4. Somehow, the removed repo still persists via the favourite tab e.g see this screen shot
      5. Clicking the "Manage Favorite" tab leads to this error

      Attachments

        1. delete-repo.png
          delete-repo.png
          106 kB
        2. patch.sql
          0.1 kB
        3. repo.png
          repo.png
          94 kB

        Activity

          People

            alyons Anna Lyons [Atlassian]
            mgchong Ming Giet Chong [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 8h
                8h