Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0036506
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminoralways2017-07-17 18:042022-02-01 08:05
ReporterngarciaView Statuspublic 
Assigned ToTriage Platform Base 
PriorityhighResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0036506: Auxiliary Input is not computed if the SQL code has "IN (@#...@)"

DescriptionAuxiliary Input is not computed if the SQL code has "IN (@#...@)"

The problem in the following piece of code of parseSQL function of UIDefinition class:

if (strAux.length() > 3
&& strAux.substring(strAux.length() - 3, strAux.length()).equals(" IN")) {
   strAux = " type=\"replace\" optional=\"true\" after=\"" + strAux1 + "\" text=\"'" + i + "'\"";
Steps To ReproduceAs system admin role:
   Create an auxiliary input (it could be used for display logic):
      Tab: Header - Sales Order
      Validation Code:
@SQL=SELECT 'Y' FROM ad_org org WHERE org.ad_orgtype_id = '1' AND org.ad_org_id IN (@#AD_Org_ID@)

As group admin role:
   Open the Sales Order window
   Check the log shows:

      ERROR org.openbravo.client.application.window.FormInitializationComponent - Error while computing auxiliary input parameter: AUXINP from tab: Header of window: Sales Order
org.postgresql.util.PSQLException: The column index is out of range: 1, number of columns: 0.
    at org.postgresql.core.v3.SimpleParameterList.bind(SimpleParameterList.java:56)
    at org.postgresql.core.v3.SimpleParameterList.setStringParameter(SimpleParameterList.java:118)
    at org.postgresql.jdbc.PgStatement.bindString(PgStatement.java:2144)
    at org.postgresql.jdbc.PgStatement.setString(PgStatement.java:1266)
    at org.postgresql.jdbc.PgStatement.setString(PgStatement.java:1248)
    at org.postgresql.jdbc.PgStatement.setObject(PgStatement.java:1831)
    at org.openbravo.client.application.window.FormInitializationComponent.computeAuxiliaryInput(FormInitializationComponent.java:1886)

As system admin role:
   Change the code of the auxiliary input with:

@SQL=SELECT 'Y' FROM ad_org org WHERE org.ad_orgtype_id = '1' AND org.ad_org_id = @#AD_Org_ID@

As group admin role:
   Open the Sales Order window
   Check the error is not shown in the log this time
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2017-07-17 18:04 ngarcia New Issue
2017-07-17 18:04 ngarcia Assigned To => platform
2017-07-17 18:04 ngarcia Modules => Core
2017-07-17 18:04 ngarcia Triggers an Emergency Pack => No
2017-07-17 18:04 ngarcia Issue Monitored: networkb
2017-07-17 18:06 ngarcia Steps to Reproduce Updated View Revisions
2017-07-17 18:06 ngarcia Steps to Reproduce Updated View Revisions
2017-07-24 15:44 alostale Status new => acknowledged
2022-02-01 08:05 alostale Assigned To platform => Triage Platform Base


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker