Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-2185

'Copy folder' fails when targeting same parent folder with different name

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0.patch, 2.5.0, 2.4.1
    • UI
    • None
    • tier/grouper:2.4.0-a47-u25-w5-p6-20190515-rc1

    Description

      When a user with sufficient privileges attempts to create a copy of a folder in the same parent folder with a different name, the UI errors out, believing the user is creating a copy of the folder with the same name:

      Error: Stem exists: uncg:users:jfwillia:BlueFolder, Problem in HibernateSession: HibernateSession (31f8edd8): new, notReadonly, READ_WRITE_NEW, notActiveTransaction, session (7be4aaf), Problem calling method stemCopySubmit on edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2Stem

       

      In the logs:

      2019-06-05 16:21:37,081: [ajp-nio-8009-exec-6] ERROR GrouperUiRestServlet.doGet(311) - - Problem calling reflection from URL: edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2Stem.stemCopySubmitedu.internet2.middleware.grouper.exception.StemAddAlreadyExistsException: Stem exists: uncg:users:jfwillia:BlueFolder,
      Problem in HibernateSession: HibernateSession (31f8edd8): new, notReadonly, READ_WRITE_NEW, notActiveTransaction, session (7be4aaf),
      Problem calling method stemCopySubmit on edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2Stem
      {{ at edu.internet2.middleware.grouper.Stem.internal_addChildStem(Stem.java:2752)}}
      {{ at edu.internet2.middleware.grouper.Stem$14.callback(Stem.java:4176)}}
      {{ at edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:701)}}
      {{ at edu.internet2.middleware.grouper.Stem.internal_copy(Stem.java:4140)}}
      {{ at edu.internet2.middleware.grouper.StemCopy.save(StemCopy.java:131)}}
      {{ at edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2Stem.stemCopySubmit(UiV2Stem.java:558)}}
      {{ 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:498)}}
      {{ at edu.internet2.middleware.grouper.util.GrouperUtil.invokeMethod(GrouperUtil.java:4189)}}
      {{ at edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:4140)}}
      {{ at edu.internet2.middleware.grouper.j2ee.GrouperUiRestServlet.doGet(GrouperUiRestServlet.java:278)}}
      {{ at edu.internet2.middleware.grouper.j2ee.GrouperUiRestServlet.doPost(GrouperUiRestServlet.java:149)}}
      {{ at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)}}
      {{ at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)}}
      {{ at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)}}
      {{ at org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:88)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)}}
      {{ at edu.internet2.middleware.grouper.ui.GrouperUiFilter.doFilter(GrouperUiFilter.java:1127)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)}}
      {{ at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)}}
      {{ at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)}}
      {{ at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)}}
      {{ at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)}}
      {{ at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)}}
      {{ at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)}}
      {{ at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)}}
      {{ at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:341)}}
      {{ at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:478)}}
      {{ at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)}}
      {{ at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798)}}
      {{ at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1441)}}
      {{ at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)}}
      {{ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)}}
      {{ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)}}
      {{ at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)}}
      {{ at java.lang.Thread.run(Thread.java:748)}}

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            jeffrey.williams@at.internet2.edu Jeffrey Williams (uncg.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist