Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 6.2.10 EE GA1
    • Fix Version/s: None
    • Labels:
      None

      Description

      hi, i downloaded the mail portlet and added it by dropping the lpkg file into the deploy folder. after creating an account, i was able to see the inbox. but i can't send mails. when i look into the log files i see

      No Account exists with the primary key 0
      

      so i tried to debug it. i found the method

      MailManager.sendMessage(long accountId, ...)
      

      the method is called from the send_message.jsp file.
      the accountId (along with a few other parameters) is retrieved by

      UploadPortletRequest uploadPortletRequest = PortalUtil.getUploadPortletRequest(liferayPortletRequest);
      long accountId = ParamUtil.getLong(uploadPortletRequest, "accountId");
      

      the request is coming from the compose.jsp file.
      the problem seems to be that the liferayPortletRequest has no parameters at all. so the accountId is set the default 0. messageId, to, from, ... all just have their defaults.
      thanks for any help

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              melody.wu Melody Wu
              Reporter:
              bkopinits bernd kopinits
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 25 weeks, 4 days ago

                  Packages

                  Version Package