Closed kwoot closed 6 years ago
Bugzilla Comment ID: 3155 Date: 2011-09-29 11:21:52 From: Oscar González \<ogonzalez@igalia.com>
commit 9687f23032b1d67db46b9d2ce373e5d8c1fe148c Author: Óscar González Fernández ogonzalez@igalia.com Date: Thu Sep 29 12:52:22 2011 +0200
[Bug #1195] Fix bug
When using the owner scenario the allocations must also be switched to
the current scenario. A lazy initialization exception is also avoided
reattaching the resources of the allocation to be removed.
FEA: ItEr75S04BugFixing
Bugzilla Comment ID: 3150 Date: 2011-09-28 16:17:01 From: Manuel Rego Casasnovas \<rego@igalia.com>
Steps to reproduce:
1) Create a project with 1 task 2) Assign one resource to this task 3) Go out of project edition 4) Come back to project Gantt 5) Try to remove the allocation in resource allocation pop-up. When you click in Accept you'll get the following exception
Stacktrace:
java.lang.IllegalStateException: modifications to assignments can't be done if the scenario on which to work on is not explicitly specified at org.navalplanner.business.planner.entities.ResourceAllocation$NoExplicitlySpecifiedScenario.modificationsNotAllowed(ResourceAllocation.java:1677) at org.navalplanner.business.planner.entities.ResourceAllocation$NoExplicitlySpecifiedScenario.detachAssignments(ResourceAllocation.java:1668) at org.navalplanner.business.planner.entities.ResourceAllocation.detach(ResourceAllocation.java:2110) at org.navalplanner.business.planner.entities.Task.removeResourceAllocation(Task.java:291) at org.navalplanner.web.planner.allocation.ResourceAllocationModel.removeDeletedAllocations(ResourceAllocationModel.java:251) at org.navalplanner.web.planner.allocation.ResourceAllocationModel.stepsBeforeDoingAllocation(ResourceAllocationModel.java:224) at org.navalplanner.web.planner.allocation.ResourceAllocationModel.access$000(ResourceAllocationModel.java:76) at org.navalplanner.web.planner.allocation.ResourceAllocationModel$1.execute(ResourceAllocationModel.java:179) at org.navalplanner.web.planner.allocation.ResourceAllocationModel$1.execute(ResourceAllocationModel.java:176) at org.navalplanner.business.common.AdHocTransactionService.runOnReadOnlyTransaction(AdHocTransactionService.java:117) at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy31.runOnReadOnlyTransaction(Unknown Source) at org.navalplanner.web.planner.allocation.ResourceAllocationModel.applyDateChangesNotificationIfNoFlags(ResourceAllocationModel.java:214) at org.navalplanner.web.planner.allocation.ResourceAllocationModel.accept(ResourceAllocationModel.java:176) 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:616) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) at $Proxy152.accept(Unknown Source) at org.navalplanner.web.planner.allocation.FormBinder.accept(FormBinder.java:522) at org.navalplanner.web.planner.allocation.ResourceAllocationController.accept(ResourceAllocationController.java:579) at org.navalplanner.web.planner.taskedition.EditTaskController.accept(EditTaskController.java:285) 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:616) at bsh.Reflect.invokeMethod(Unknown Source) at bsh.Reflect.invokeObjectMethod(Unknown Source) at bsh.Name.invokeMethod(Unknown Source) at bsh.BSHMethodInvocation.eval(Unknown Source) at bsh.BSHPrimaryExpression.eval(Unknown Source) at bsh.BSHPrimaryExpression.eval(Unknown Source) at bsh.Interpreter.eval(Unknown Source) at bsh.Interpreter.eval(Unknown Source) at org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:134) at org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:341) at org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:876) at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:180) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:138) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:517) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:444)
(Original Bugzilla Bug ID: 1195)
Date: 2011-09-28 16:17:01 From: Manuel Rego Casasnovas \<rego@igalia.com> To: Oscar González \<ogonzalez@igalia.com> Version: libreplan-1.2 (1.2.x) Last updated: 2011-09-29 11:21:52
(Note: this issue was migrated automatically with bugzilla2github.py tool )