Uploaded image for project: 'JTalks Common'
  1. JTalks Common
  2. JTALKSCOMMON-89

SecurityService returns detached user object.

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: common 0.11
    • Fix Version/s: common 0.11
    • Labels:
      None

      Description

      SecurityService.getCurrentUser() returns hibernate detached user instance (just takes pojo from memory). This caused a lot of issues in jcommune.
      Please return not just principal but something like userDao.getByUsername(((User) principal).getUsername());

        Attachments

          Structure

            Activity

              People

              • Assignee:
                ancient_mariner Alex Lysak
                Reporter:
                lamao Vyacheslav Mishcheryakov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 0.1h
                  0.1h

                    Structure Helper Panel