Skip to content

Commit 38262c2

Browse files
committed
Merge branch 'dev' of [email protected]:unity-idm/unity.git into dev
2 parents 2c18e7d + b92a6d8 commit 38262c2

File tree

5 files changed

+33
-23
lines changed

5 files changed

+33
-23
lines changed

documentation/src/main/doc/config/storage.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ In mysql console (when logged with admin privileges) execute following commands:
4141
CREATE DATABASE unitydb;
4242
CREATE USER 'unity'@'localhost' IDENTIFIED BY 'unitypass';
4343
GRANT ALTER, CREATE, DELETE, DROP, EXECUTE, INDEX, INSERT, LOCK TABLES,
44-
SELECT, TRIGGER, UPDATE, REFERENCES ON unitydb.* to 'unity'@'localhost';
44+
SELECT, TRIGGER, UPDATE, REFERENCES, CREATE ROUTINE, EXECUTE ON unitydb.* to 'unity'@'localhost';
4545

4646
using the desired database name, username and password. If the database is on a different host then the Unity instance,
4747
change to localhost to a proper host of Unity installation or use +%+ to allow connections from any host.

documentation/src/main/doc/update.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,4 +396,12 @@ The 3.13 release does not include database migration. However, it includes a hea
396396
a major step in preparation for the major release of Unity 4. Taking backup and testing the new release
397397
before deploying it to production is especially advised.
398398

399-
399+
==== From 3.13-3.15 to 3.16
400+
401+
In case of MySQL DB, it is required to assign additional permissions to Unity DB user, before upgrading: CREATE ROUTINE and EXECUTE.
402+
403+
For example:
404+
405+
----
406+
GRANT CREATE ROUTINE, EXECUTE ON * to 'unity'@'localhost';
407+
----

engine/src/main/java/pl/edu/icm/unity/engine/bulk/BulkQueryServiceImpl.java

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -428,28 +428,30 @@ private void buildTree(Collection<String> paths)
428428

429429
private void addGroup(String path)
430430
{
431-
if (!pathToGroupNode.containsKey(path))
431+
if (pathToGroupNode.containsKey(path))
432432
{
433-
String[] parts = path.split("/");
434-
GroupNode current = root;
435-
436-
StringBuilder processedPathBuilder = new StringBuilder();
437-
for (String part : parts)
433+
return;
434+
}
435+
436+
String[] parts = path.split("/");
437+
GroupNode current = root;
438+
StringBuilder processedPathBuilder = new StringBuilder();
439+
for (String part : parts)
440+
{
441+
if (part.isEmpty())
442+
{
443+
continue;
444+
}
445+
processedPathBuilder.append("/").append(part);
446+
String processedPath = processedPathBuilder.toString();
447+
448+
if (!pathToGroupNode.containsKey(processedPath))
438449
{
439-
if (!part.isEmpty())
440-
{
441-
processedPathBuilder.append("/").append(part);
442-
String processedPath = processedPathBuilder.toString();
443-
444-
if (!pathToGroupNode.containsKey(processedPath))
445-
{
446-
GroupNode newNode = new GroupNode(processedPath);
447-
current.addChild(processedPath);
448-
pathToGroupNode.put(processedPath, newNode);
449-
}
450-
current = pathToGroupNode.get(processedPath);
451-
}
450+
GroupNode newNode = new GroupNode(processedPath);
451+
current.addChild(processedPath);
452+
pathToGroupNode.put(processedPath, newNode);
452453
}
454+
current = pathToGroupNode.get(processedPath);
453455
}
454456
}
455457

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@
577577
<dependency>
578578
<groupId>org.postgresql</groupId>
579579
<artifactId>postgresql</artifactId>
580-
<version>42.6.0</version>
580+
<version>42.6.2</version>
581581
</dependency>
582582
<dependency>
583583
<groupId>org.mariadb.jdbc</groupId>

unity-rest-api-docs/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.imunity</groupId>
66
<artifactId>unity-server-parent</artifactId>
7-
<version>3.15.0-SNAPSHOT</version>
7+
<version>3.16.0-SNAPSHOT</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>

0 commit comments

Comments
 (0)