# This is the first portion of the Docker image tag
# that is published to the ONAP registry.
-PORTAL_VERSION=3.4.0
+PORTAL_VERSION=3.5.0
# This is used during builds and in docker-compose;
# it is never published to the ONAP registry.
-FROM mariadb:10.4.14
+FROM mariadb:10.5.5
ARG DB_SCRIPT_DIR=${DB_SCRIPT_DIR}
<parent>
<groupId>org.onap.portal</groupId>
<artifactId>onap-portal-parent</artifactId>
- <version>3.4.0</version>
+ <version>3.5.0</version>
</parent>
<artifactId>portal-be-common</artifactId>
EPRole updateRoleInactive = roleList.get(0);
updateRoleInactive.setActive(false);
dataAccessService.saveDomainObject(updateRoleInactive, null);
+
+ /**
+ * Newly Added - Deleting User Role association as this role is not present in AAF and got removed from AAF directly
+ */
+ deleteUserRoleAssociation(updateRoleInactive, app);
}
}
} catch (Exception e) {
}
}
}
+
+ /**
+ * Delete User Role Association mapping in Portal DB - In case of particular role is already removed from AAF directly.
+ * @param epRole
+ */
+ private void deleteUserRoleAssociation(EPRole epRole, EPApp app) {
+ Session localSession = sessionFactory.openSession();
+ Query query = null;
+ try {
+ String sql = "DELETE FROM FN_USER_ROLE where role_id=" +epRole.getId() + " AND app_id=" +app.getId();
+ logger.debug(EELFLoggerDelegate.debugLogger,"deleteUserRoleAssociation: sql :"+ sql);
+ query = localSession.createSQLQuery(sql);
+ query.executeUpdate();
+ } catch (Exception e) {
+ logger.error(EELFLoggerDelegate.errorLogger, "deleteUserRoleAssociation: failed", e);
+ } finally {
+ localSession.close();
+ }
+ }
@Override
@SuppressWarnings("unchecked")
<parent>
<groupId>org.onap.portal</groupId>
<artifactId>onap-portal-parent</artifactId>
- <version>3.4.0</version>
+ <version>3.5.0</version>
</parent>
<artifactId>portal-be-os</artifactId>
<parent>
<groupId>org.onap.portal</groupId>
<artifactId>onap-portal-parent</artifactId>
- <version>3.4.0</version>
+ <version>3.5.0</version>
</parent>
<artifactId>portal-FE-os</artifactId>
<parent>
<groupId>org.onap.portal</groupId>
<artifactId>widget-ms-parent</artifactId>
- <version>3.4.0</version>
+ <version>3.5.0</version>
</parent>
<artifactId>common-widgets</artifactId>
<parent>
<groupId>org.onap.portal</groupId>
<artifactId>onap-portal-parent</artifactId>
- <version>3.4.0</version>
+ <version>3.5.0</version>
</parent>
<artifactId>widget-ms-parent</artifactId>
<groupId>org.onap.portal</groupId>
<artifactId>widget-ms</artifactId>
- <version>3.4.0</version>
+ <version>3.5.0</version>
<packaging>jar</packaging>
<name>widget-microservice</name>
<groupId>org.onap.portal</groupId>
<artifactId>onap-portal-parent</artifactId>
- <version>3.4.0</version>
+ <version>3.5.0</version>
<packaging>pom</packaging>
<name>portal</name>
<groupId>org.onap.portal</groupId>
<artifactId>portal-FE-os</artifactId>
- <version>3.4.0</version>
+ <version>3.5.0</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sonar.tests>src</sonar.tests>
<sonar.sourceEncoding>UTF-8</sonar.sourceEncoding>
<sonar.nodejs.executable>${project.basedir}\node\</sonar.nodejs.executable>
- <epsdk.version>3.4.0-SNAPSHOT</epsdk.version>
+ <epsdk.version>3.4.0-SNAPSHOT</epsdk.version>
</properties>
--- /dev/null
+distribution_type: container
+container_release_tag: 3.4.0
+project: portal
+ref: 10d101e44b4164744d381946893cd71a78353631
+containers:
+ - name: portal-app
+ version: 3.4.0-STAGING-latest
+ - name: portal-sdk
+ version: 3.4.0-STAGING-latest
+ - name: portal-wms
+ version: 3.4.0-STAGING-latest
+ - name: portal-db
+ version: 3.4.0-STAGING-latest
\ No newline at end of file
--- /dev/null
+distribution_type: container
+container_release_tag: 3.4.1
+project: portal
+ref: 10d101e44b4164744d381946893cd71a78353631
+containers:
+ - name: portal-app
+ version: 3.4.0-STAGING-latest
+ - name: portal-sdk
+ version: 3.4.0-STAGING-latest
+ - name: portal-wms
+ version: 3.4.0-STAGING-latest
+ - name: portal-db
+ version: 3.4.0-STAGING-latest
\ No newline at end of file
# because they are used in Jenkins, whose plug-in doesn't support
major=3
-minor=4
+minor=5
patch=0
base_version=${major}.${minor}.${patch}