OFBiz
  1. OFBiz
  2. OFBIZ-4482

findVisits request shows empty entry for user after logout

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: Trunk
    • Fix Version/s: None
    • Component/s: party
    • Labels:
      None

      Description

      When a user login, an entry is shown for the user in https://localhost:8443/partymgr/control/findVisits.
      (refer to snapshot1.png)
      When the user logout, the same entry contains missing values for partyId, userLoginId, New User, and Thru Date columns are empty.
      (refer to snapshot2.png)
      When the same user logs back in, those entries reappears.
      (refer to snapshot3.png)
      Ofbiz seem to be re-using the same visitorId and visitId after a logout.

      My expectation of how it works is that when a user logs out, the missing entries should appear as it had been when the user was logged in and the Thru Date should have be filled with the time of logout.

      When the same user login again, another entry should have been created.

      1. snapshot3.png
        45 kB
        Wai
      2. snapshot2.png
        51 kB
        Wai
      3. snapshot1.png
        52 kB
        Wai

        Activity

        Hide
        Harsh Vijaywargiya added a comment -

        In addition to Arun's comment we can see the different visitId in snapshot1 and snapshot2 i.e. 10091 when user is logged in and 10092 once user is logged out.

        Show
        Harsh Vijaywargiya added a comment - In addition to Arun's comment we can see the different visitId in snapshot1 and snapshot2 i.e. 10091 when user is logged in and 10092 once user is logged out.
        Hide
        Ashish Vijaywargiya added a comment -

        Based on Arun's recent comment this issue can be closed. Thanks wai for creating the issue.

        Show
        Ashish Vijaywargiya added a comment - Based on Arun's recent comment this issue can be closed. Thanks wai for creating the issue.
        Hide
        Arun Patidar added a comment -

        Hello Wai,

        This behaviour looks correct to me. System logs userlogin/party values for registered users only. After logout system treates user as Anonymous user so in this case empty value of userlogin/party makes sense.

        I also noticed that if user logins again then system update same visitor record with value of userlogin/party. So its again seems a right behaviour.

        I think this issue can be close now.

        Show
        Arun Patidar added a comment - Hello Wai, This behaviour looks correct to me. System logs userlogin/party values for registered users only. After logout system treates user as Anonymous user so in this case empty value of userlogin/party makes sense. I also noticed that if user logins again then system update same visitor record with value of userlogin/party. So its again seems a right behaviour. I think this issue can be close now.
        Hide
        Wai added a comment -

        snapshot of findVisits after use login again.

        Show
        Wai added a comment - snapshot of findVisits after use login again.
        Hide
        Wai added a comment -

        snapshot of findVisits after user logout

        Show
        Wai added a comment - snapshot of findVisits after user logout
        Hide
        Wai added a comment -

        snapshot of findVisits request after user login

        Show
        Wai added a comment - snapshot of findVisits request after user login

          People

          • Assignee:
            Ashish Vijaywargiya
            Reporter:
            Wai
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development