Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-10678

When permission target has more than 10 groups in large scale of security descriptor UI won't load the user page

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 4.7.7
    • Fix Version/s: 4.9.0
    • Component/s: Web REST API, Web UI
    • Labels:
      None

      Description

      In case that you have a lot of permission targets that each one includes a few groups, once you browse to the Admin --> Security --> Users page the page won't load and you will get the below exception:

      Jun 28, 2016 5:44:37 PM com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException
      SEVERE: The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container
      java.lang.OutOfMemoryError: Requested array size exceeds VM limit
      	at java.util.Arrays.copyOf(Arrays.java:3332)
      	at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
      	at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
      	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:421)
      	at java.lang.StringBuilder.append(StringBuilder.java:136)
      	at java.lang.StringBuilder.append(StringBuilder.java:131)
      	at java.util.AbstractCollection.toString(AbstractCollection.java:462)
      	at org.artifactory.rest.common.service.ArtifactoryRestResponse.getObject(ArtifactoryRestResponse.java:129)
      	at org.artifactory.rest.common.service.ArtifactoryRestResponse.getEntity(ArtifactoryRestResponse.java:108)
      	at org.artifactory.rest.common.util.ResponseHandler.buildJerseyResponse(ResponseHandler.java:38)
      	at org.artifactory.rest.common.service.ArtifactoryRestResponse.buildResponse(ArtifactoryRestResponse.java:196)
      	at org.artifactory.rest.common.service.ServiceExecutor.process(ServiceExecutor.java:40)
      	at org.artifactory.rest.common.resource.BaseResource.runService(BaseResource.java:127)
      	at org.artifactory.ui.rest.resource.admin.security.user.UserResource.getUser(UserResource.java:116)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
      	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
      	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
      	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
      	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
      	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
      	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
      	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
      	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
      	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
      	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
      	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
      

        Attachments

          Activity

            People

            • Assignee:
              matang Matan Gotlieb
              Reporter:
              ariels Ariel Seftel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: