Importing a form and saving it without a form privilege is failing.

Description

When a form designed with older form builder is imported; while publishing the form there is an error reported on saveFormPrivileges and the form is not getting saved. The error from the log:
ERROR - BaseRestController.handleException(115) |2021-01-19 12:05:43,015| Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.bahmni.module.bahmni.ie.apps.service.impl.BahmniFormPrivilegesServiceImpl.saveFormPrivileges(BahmniFormPrivilegesServiceImpl.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)

Activity

Show:

Buvaneswari Arun October 8, 2021 at 6:31 AM

Tested in QA

Buvaneswari Arun January 28, 2021 at 2:22 AM

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Sprint

Fix versions

Priority

Created January 21, 2021 at 2:22 AM
Updated October 8, 2021 at 6:31 AM
Resolved October 8, 2021 at 6:31 AM