Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-55929

It is not possible to use Contact object for objects, other then User

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.2.3 CE GA4
    • Fix Version/s: None
    • Component/s: User Management
    • Labels:
      None

      Description

      Most information related to users stored in Contact entity. It is very comfortale to reuse this entity for custom portlets (for example to store there information related to Client). From first look - there are no any strong relations from Contact to User said it is possible to use Contact only for Users.

      But if try to do it - we got exception on updating such Contact entity not related to eny user:

      com.liferay.portal.ModelListenerException: com.liferay.portal.NoSuchUserException: No User exists with the key

      Unknown macro: {contactId=127812}

      at com.liferay.portal.model.ContactListener.onAfterCreate(ContactListener.java:40)
      at com.liferay.portal.model.ContactListener.onAfterCreate(ContactListener.java:1)
      at com.liferay.portal.model.BaseModelListener.onAfterCreate(BaseModelListener.java:1)
      at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:337)
      at ru.emdev.crm.service.impl.CRMContactLocalServiceImpl.addContact(CRMContactLocalServiceImpl.java:128)

      Problem is in com.liferay.portal.model.ContactListener class - it is always tried to synhronize contact changes with LDAP and failed in case contact is not related to any user.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 26 weeks, 6 days ago

                Packages

                Version Package