Commit 2af65c29 authored by Asier Lostalé's avatar Asier Lostalé Committed by Carlos Aristu
Browse files

fixes BUG-46520: DataSourceSecurity fails on Tomcat9

fetchShouldBeAllowedOnlyIfRoleIsGranted test was creating an invalid
request by adding some parameters with special characters and not
ecoding them. Tomcat 9 is stricter parsing URLs than previous version,
not allowing this case.

Fixed by removing those parameters that were causing problems as they
were not ncessary.
parent 6ab16ce4
......@@ -11,7 +11,7 @@
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo SLU
* All portions are Copyright (C) 2016-2018 Openbravo SLU
* All portions are Copyright (C) 2016-2021 Openbravo SLU
* All Rights Reserved.
* Contributor(s): ______________________________________.
************************************************************************
......@@ -105,9 +105,7 @@ public class DataSourceSecurity extends BaseDataSourceTestDal {
private enum JSONObjectURL {
// Move node in Account Tree
MOVEMENT_NODE("?_skinVersion=Default&_create=true&Constants_FIELDSEPARATOR=$&_new=true"
+ "&_contextUrl=http://localhost:8080/openbravo&Constants_IDENTIFIER=_identifier"
+ "&_startRow=0&_endRow=200&referencedTableId=188&parentRecordId=56E65CF592BD4DAF8A8A879810646266&tabId=132"
+ "&_selectedProperties=['searchKey','name','elementLevel','accountType','showValueCondition','summaryLevel']"
+ "&@FinancialMgmtElement.client@=23C59575B9CF467C9620760EB255B389"
+ "&@FinancialMgmtElement.id@=56E65CF592BD4DAF8A8A879810646266"
+ "&@FinancialMgmtElement.organization@=B843C30461EA4501935CB1D125C9C25A&@FinancialMgmtElement.type@=A"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment