Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0003748Openbravo ERPC. Securitypublic2008-06-05 16:382008-06-25 17:53
cromero 
cromero 
normalminoralways
closedfixed 
5
 
2.35MP6 
No
Core
No
0003748: Error: AccessTableNoView in two reports in Sale
Related to bug:
0002987

Description:
Sales Dimensional Report and Invoice (customer) Dimensional Report seem to
not have permission to be showed independently if the user has or not
permission.
It only happens in Postgre

Environment:
FF2
2.35 MP4
Postgre 8.2

Steps:
1.Log in as Big Bazaar Admin
2.Go to Sales Management > Analysis tools > Sales Dimensional Report.
Error: AccessTableNoView message appears.

This problem is due to the different interpretation of a Boolean that drivers do.
For Oracle, if the value returned is different of 0, then it is true.
For PostgreSQL, if the value returned is different of 1, then it is false.

In this case, the problem is that the report has more than 1 permission,
so the returned 2 is interpreted as a FALSE in PostgreSQL and TRUE in Oracle.

The solution will be to modify the sqlc method when returning a boolean to return always a boolean and not a number.
No tags attached.
blocks defect 0002987 closed cromero  Error: AccessTableNoView in two reports in Sales 
Issue History
2008-06-24 13:49cromeroTarget Version => 2.35
2008-06-24 13:50cromeroFixed in Version2.35 => 2.35MP6
2008-06-25 17:53plujanStatusresolved => closed

Notes
(0007337)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:44)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1985519 [^]
(0004187)
cromero   
2008-06-05 16:44   
(edited on: 2008-06-12 09:27)
Logged In: YES
user_id=1500614
Originator: YES

Fixed in the 2.3x branch in revision 4850