int-checks-oracle - Build # 1292 - Unstable:
Check console output at https://ci.openbravo.com/job/int-checks-oracle/1292/ to
view the results.
Committers since last success:
Changes for Build #1292
Inigo Sanchez <[email protected]> null
Fixed issue 28761: A tab will be empty when the user role has readOnly
access
The problem was that if a user role has readOnly access to a particular tab and
this tab is
opened by using "open on tab", an empty tab is displayed. This problem was
because there was
a invalidate cache between a request to the datasource and receipt of the
answer.
The cache invalidation occurred because refreshContents() were called in
"setReadOnlyMode".
This cache invalidation generated a bad behaviour for displaying the tab.
To check this, It has been obtained a trace of the functions that are invoked.
Briefly, after
each call to the DataSource it must be seen as the data arrives (arrives in
fetchRemoteDataReply())
without invalidating cache. It should be noted, in the first call to
DataSource we can find an
invalidateCache (main problem):
*** 2 *** Run invalidateCache() for isc_OBViewGrid_7. (ResultSet.js)
*** 1 *** Call to DataSource: sendDSRequest for isc_OBViewGrid_7.
(DataSource.js)
*** 2 *** Run invalidateCache() for isc_OBViewGrid_7. (ResultSet.js)
*** 1 *** Call to DataSource: sendDSRequest for isc_OBViewGrid_7.
(DataSource.js)
*** 3 *** Run fetchRemoteDataReply() for isc_OBViewGrid_7. (ResultSet.js).
It has been detected that the cache is invalidated. (ResultSet.js)
*** 3 *** Run fetchRemoteDataReply() for isc_OBViewGrid_7. (ResultSet.js)
To avoid this problem, it has been deleted method refresContent() in method
setReadOnlyMode() because
it was not necessary. This action avoids the invalidation of the cache.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
Last 20 lines of the console output:
[...truncated 11831 lines...]
[ "$(jps | grep Bootstrap || true)" != "" ] && echo "Tomcat has fail to stop"
&& exit 1 || true
[ "$i" != "0" ] && secs=$(echo "$i * 5" | bc) && echo "Waiting for $secs secs
for tomcat to stop"
echo
fi
[int-checks-oracle] $ /bin/bash -xe /tmp/hudson1582313043770016087.sh
++ jps
++ grep Bootstrap
++ true
+ '[' '' '!=' '' ']'
POST BUILD TASK : SUCCESS
END OF POST BUILD TASK : 1
Archiving artifacts
Checking ERROR|syntax error at or near|SQL error in query
Recording test results
Build step 'Publish JUnit test result report' changed build result to UNSTABLE
Email was triggered for: Unstable
Sending email for trigger: Unstable
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-builds mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-builds