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

Service UserService.getOrganizationUserIds(organizationId) throws Exception

    Details

      Description

      trying to do
      http://localhost:8080/api/secure/jsonws/user/get-organization-user-ids?organizationId=15333
      (OrganizationID exists, doing this as an Administrator + Power User)

      i get :

      Caused by: com.liferay.portal.security.auth.PrincipalException
      at com.liferay.portal.service.permission.OrganizationPermissionImpl.check(OrganizationPermissionImpl.java:39)
      at com.liferay.portal.service.permission.OrganizationPermissionUtil.check(OrganizationPermissionUtil.java:32)
      at com.liferay.portal.service.impl.UserServiceImpl.getOrganizationUserIds(UserServiceImpl.java:677)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAd|#]

      Older Versions (6.0.5) of UserServiceImpl don´t do a permission check against VIEV_MEMBERS and i can´t find VIEW_MEMBERS together with organizations inside the "resourceaction" table in the DB.

      it does´t work using the axis-api and the json api ....

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 20 weeks, 1 day ago

                Packages

                Version Package
                6.2.0 CE M4