Skip to content
Snippets Groups Projects
Commit 20ca271a authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: remove setting changes; remove typo

parent ed74f973
No related branches found
No related tags found
1 merge request!65F permission checks
Pipeline #25083 failed
...@@ -67,7 +67,7 @@ MYSQL_DATABASE_NAME=caosdb ...@@ -67,7 +67,7 @@ MYSQL_DATABASE_NAME=caosdb
# User name for connecting to mysql # User name for connecting to mysql
MYSQL_USER_NAME=caosdb MYSQL_USER_NAME=caosdb
# Password for the user # Password for the user
MYSQL_USER_PASSWORD=random1234 MYSQL_USER_PASSWORD=caosdb
# Schema of mysql procedures and tables which is required by this CaosDB instance # Schema of mysql procedures and tables which is required by this CaosDB instance
MYSQL_SCHEMA_VERSION=v5.0 MYSQL_SCHEMA_VERSION=v5.0
...@@ -169,8 +169,8 @@ ADMIN_EMAIL= ...@@ -169,8 +169,8 @@ ADMIN_EMAIL=
BUGTRACKER_URI= BUGTRACKER_URI=
# If set to true MySQL stores transaction benchmarks for all SQL queries. Used for benchmarking and debugging. # If set to true MySQL stores transaction benchmarks for all SQL queries. Used for benchmarking and debugging.
#TRANSACTION_BENCHMARK_ENABLED=FALSE TRANSACTION_BENCHMARK_ENABLED=FALSE
TRANSACTION_BENCHMARK_ENABLED=TRUE #TRANSACTION_BENCHMARK_ENABLED=TRUE
# Location of the configuration file for the CaosDB cache. # Location of the configuration file for the CaosDB cache.
CACHE_CONF_LOC=./conf/core/cache.ccf CACHE_CONF_LOC=./conf/core/cache.ccf
# Set this option to true to lobally disable caching. Used for debugging. # Set this option to true to lobally disable caching. Used for debugging.
......
...@@ -33,7 +33,6 @@ import java.sql.Statement; ...@@ -33,7 +33,6 @@ import java.sql.Statement;
import java.sql.Types; import java.sql.Types;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet; import java.util.HashSet;
import java.util.LinkedList; import java.util.LinkedList;
...@@ -797,8 +796,7 @@ public class Query implements QueryInterface, ToElementable, TransactionInterfac ...@@ -797,8 +796,7 @@ public class Query implements QueryInterface, ToElementable, TransactionInterfac
* @param resultSet * @param resultSet
* @throws SQLException * @throws SQLException
*/ */
public void filterEntitiesWithoutRetrievePermission(final String resultSet) public void filterEntitiesWithoutRetrievePermission(final String resultSet) throws SQLException {
throws SQLException {
if (!filterEntitiesWithoutRetrievePermisions) { if (!filterEntitiesWithoutRetrievePermisions) {
return; return;
} }
...@@ -813,11 +811,14 @@ public class Query implements QueryInterface, ToElementable, TransactionInterfac ...@@ -813,11 +811,14 @@ public class Query implements QueryInterface, ToElementable, TransactionInterfac
* with (acl_id, acl) and a table with (entity_id, acl_id) to reduce the * with (acl_id, acl) and a table with (entity_id, acl_id) to reduce the
* amount of data being transfered. * amount of data being transfered.
*/ */
final Statement stmt = this.getConnection().createStatement() final Statement stmt = this.getConnection().createStatement();
final String query = final String query =
("SELECT entity_n_acl.id, entity_acl.acl from " ("SELECT entity_n_acl.id, entity_acl.acl from "
+ "(select entities.id, entities.acl from entities " + "(select entities.id, entities.acl from entities "
+ "inner join `" + resultSet + " as rs on entities.id=rs.id`) " + "inner join `"
+ resultSet
+ "` as rs on entities.id=rs.id) "
+ "as entity_n_acl " + "as entity_n_acl "
+ "left join entity_acl on entity_n_acl.acl=entity_acl.id;"); + "left join entity_acl on entity_n_acl.acl=entity_acl.id;");
final ResultSet entities_with_acl = stmt.executeQuery(query); final ResultSet entities_with_acl = stmt.executeQuery(query);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment