Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-1630

NPE thrown when creating a review from JIRA when not logged into Crucible as post parameters are not passed on after you are redirected to Login

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Medium
    • None
    • 1.6.6
    • User management
    • JIRA 3.13.2
      Fisheye plugin 2.2.2

      Though it shouldn't really matter

    Description

      The error that is thrown is:

      2009-05-26 11:41:39,524 ERROR [btpool0-601] org.mortbay.log sun.reflect.NativeMethodAccessorImpl-invoke0 - Nested in javax.servlet.ServletException: java.lang.NullPointerException:
      java.lang.NullPointerException
      	at com.cenqua.crucible.actions.create.CreateReviewFromChangesetAction.execute(CreateReviewFromChangesetAction.java:147)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      

      Steps to reproduce

      1) Log out of Crucible completely
      2) Go into a JIRA issue and from the fisheye tab attempt to create a review via the "Create crucible review for all x changesets in" link.
      3) You will be directed to the crucible login page
      4) Enter your details and when you click submit, you will get a 500 error NullPointerException and if you check your fisheye-error.log you will see the above error
      5) Repeat step two and this time it will succeed as you are logged in.

      What is happening is the post parameters that are sent to Crucible are lost when you are redirected to login. Once you login, crucible attempts to redirect to the action you were trying to do before logging in, however without the post parameters you first passed.

      I.E.

      JIRA Issue > Create Review > Redirect to Crucible Login > Successful login > Redirect back to Create Review

      The post parameters passed from JIRA Issue > Create Review are not passed on, or lost between Successful login > Redirect back to Create Review.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pkamal Partha
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: