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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0027370
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2014-08-19 11:472014-09-26 08:52
ReporterOrekariaView Statuspublic 
Assigned ToOrekaria 
PrioritynormalResolutionfixedFixed in Version3.0PR14Q4
StatusclosedFix in branchpiFixed in SCM revision67bb1feb836a
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0027370: Stabilization: When the session is invalidated the backend should not try to retrieve session attributes

DescriptionStability: When the session is invalidated the backend should not try to retrieve session attributes

As of now, when the session is invalidated, all the attributes are trying to be retrieved, adding lines to the console.error that do not report of the real issue, that is, that the session is invalidated
Steps To ReproduceIn the VariablesBase.java file
Find the setSessionValue method
Replace the following code to invalidate the session:

  public void setSessionValue(String attribute, String value) {
    try {
      session.setAttribute(attribute.toUpperCase(), value);
      session.invalidate();
      if (!attribute.equalsIgnoreCase("menuVertical"))
        ...
TagsNo tags attached.
Attached Filesdiff file icon openbravo_24274_24275.diff [^] (3,393 bytes) 2014-08-19 17:41 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0026955 closedOrekaria Retail Modules Sometimes the ad_user_id is sent null to the backend provoking an error 
blocks defect 0027337 acknowledgedRetail Retail Modules Stabilization: No tomcat errors while running the WebPOS 

-  Notes
(0069500)
hgbot (developer)
2014-08-19 12:00

Repository: erp/devel/pi
Changeset: 292e42c687269c52234dcfdbf0e73c9c6a2fff84
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Tue Aug 19 12:00:02 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/292e42c687269c52234dcfdbf0e73c9c6a2fff84 [^]

Fixes issue 27370: If the session is invalidated while retriving session attributes,
- the session will end
- the console log will report that the session was invalidated while retriving attributes

---
M src-core/src/org/openbravo/base/VariablesBase.java
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
---
(0069503)
hgbot (developer)
2014-08-19 12:39

Repository: erp/devel/pi
Changeset: cf2476a790bf9d816043c7262d0e3380db2fe3ad
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Tue Aug 19 12:39:04 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/cf2476a790bf9d816043c7262d0e3380db2fe3ad [^]

Fixes issue 27370: If the session is invalidated while retriving or removing session attributes,
- the session will end
- the console log will properly report that the session was invalidated

Methods involved (setSessionValue was fixed wth the above changeset):
- getSessionValue
- removeSessionValue

---
M src-core/src/org/openbravo/base/VariablesBase.java
---
(0069505)
AugustoMauch (manager)
2014-08-19 13:02

Reopened to update issue fields
(0069519)
hgbot (developer)
2014-08-19 17:35

Repository: erp/devel/pi
Changeset: 53ea1d3637f9fe772f9c4e9182064d7654106e2e
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Tue Aug 19 17:32:35 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/53ea1d3637f9fe772f9c4e9182064d7654106e2e [^]

Related to issue 27370: Backed out rev 24275, changeset: cf2476a790bf
If the session is invalidated while retrieving session attributes...
(getSessionValue, removeSessionValue)

---
M src-core/src/org/openbravo/base/VariablesBase.java
---
(0069520)
hgbot (developer)
2014-08-19 17:35

Repository: erp/devel/pi
Changeset: b6c3c0ad739e7360f711c5c5f84d227e0434e17a
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Tue Aug 19 17:34:25 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b6c3c0ad739e7360f711c5c5f84d227e0434e17a [^]

Related to issue 27370: Backed out rev 24274, changeset: 292e42c68726
If the session is invalidated while retrieving session attributes...
(setSessionValue)

---
M src-core/src/org/openbravo/base/VariablesBase.java
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
---
(0069524)
hudsonbot (developer)
2014-08-19 19:44

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/dfa98e390e6a [^]
Maturity status: Test
(0069530)
Orekaria (administrator)
2014-08-19 20:43
edited on: 2014-08-19 20:45

All int (for the setSessionValue, the get and remove changeset didn't get on time to reach the end of the flow before I back rolled the changesets) and retail tests have passed

.diff added for the inspection of the Platform team

(0069547)
hudsonbot (developer)
2014-08-20 15:14

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/2b6fe7d2babe [^]
Maturity status: Test
(0069550)
hudsonbot (developer)
2014-08-20 15:14

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/2b6fe7d2babe [^]
Maturity status: Test
(0069551)
hudsonbot (developer)
2014-08-20 15:14

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/2b6fe7d2babe [^]
Maturity status: Test
(0069616)
hgbot (developer)
2014-08-22 15:27

Repository: erp/devel/pi
Changeset: 67bb1feb836ae466eb2a2d2417bf8eb3425fa41d
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Tue Aug 19 12:39:04 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/67bb1feb836ae466eb2a2d2417bf8eb3425fa41d [^]

Fixes issue 27370: If the session is invalidated while retriving, changing or removing session attributes,
- the session will end
- the console log will properly report that the session was invalidated

Methods involved (setSessionValue was fixed wth the above changeset):
- getSessionValue
- setSessionValue
- removeSessionValue

---
M src-core/src/org/openbravo/base/VariablesBase.java
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
---
(0069647)
hudsonbot (developer)
2014-08-23 16:30

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/81b875753850 [^]
Maturity status: Test
(0069663)
hgbot (developer)
2014-08-24 06:14

Repository: erp/devel/pi
Changeset: b434c7af3cfd3c4d6d79c54b769c66fe552318cd
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sun Aug 24 06:12:23 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b434c7af3cfd3c4d6d79c54b769c66fe552318cd [^]

Related to issue 27370: If the session is invalidated while setting session attributes,
- the session will end
- the console log will properly report that the session was invalidated
Method affected:
- setSessionValue
Methods not affected any longer:
- getSessionValue
- removeSessionValue

---
M src-core/src/org/openbravo/base/VariablesBase.java
---
(0069669)
hudsonbot (developer)
2014-08-24 15:47

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/0e088398c072 [^]
Maturity status: Test
(0070422)
alostale (manager)
2014-09-26 08:52

code reviewed

test: I couldn't reproduce a real use case for this issue, tested by invalidating sessions arbitrarily, in this cases proper messages appear in the log

- Issue History
Date Modified Username Field Change
2014-08-19 11:47 Orekaria New Issue
2014-08-19 11:47 Orekaria Assigned To => Orekaria
2014-08-19 11:47 Orekaria Triggers an Emergency Pack => No
2014-08-19 11:50 Orekaria Summary Stability: When the session is invalidated the backend should not try to retrieve session attributes => Stabilization: When the session is invalidated the backend should not try to retrieve session attributes
2014-08-19 11:51 Orekaria Relationship added blocks 0026955
2014-08-19 11:51 Orekaria Relationship added blocks 0027337
2014-08-19 11:52 Orekaria Issue Monitored: AugustoMauch
2014-08-19 12:00 hgbot Checkin
2014-08-19 12:00 hgbot Note Added: 0069500
2014-08-19 12:00 hgbot Status new => resolved
2014-08-19 12:00 hgbot Resolution open => fixed
2014-08-19 12:00 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/292e42c687269c52234dcfdbf0e73c9c6a2fff84 [^]
2014-08-19 12:39 hgbot Checkin
2014-08-19 12:39 hgbot Note Added: 0069503
2014-08-19 12:39 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/292e42c687269c52234dcfdbf0e73c9c6a2fff84 [^] => http://code.openbravo.com/erp/devel/pi/rev/cf2476a790bf9d816043c7262d0e3380db2fe3ad [^]
2014-08-19 13:00 AugustoMauch Project Retail Modules => Openbravo ERP
2014-08-19 13:02 AugustoMauch Note Added: 0069505
2014-08-19 13:02 AugustoMauch Status resolved => new
2014-08-19 13:02 AugustoMauch Resolution fixed => open
2014-08-19 13:02 AugustoMauch Modules => Core
2014-08-19 13:02 AugustoMauch Category Web POS => A. Platform
2014-08-19 13:02 AugustoMauch Target Version RR14Q4 =>
2014-08-19 13:02 AugustoMauch Status new => scheduled
2014-08-19 13:02 AugustoMauch fix_in_branch => pi
2014-08-19 13:02 AugustoMauch Status scheduled => resolved
2014-08-19 13:02 AugustoMauch Resolution open => fixed
2014-08-19 17:32 Orekaria Status resolved => new
2014-08-19 17:32 Orekaria Resolution fixed => open
2014-08-19 17:35 hgbot Checkin
2014-08-19 17:35 hgbot Note Added: 0069519
2014-08-19 17:35 hgbot Checkin
2014-08-19 17:35 hgbot Note Added: 0069520
2014-08-19 17:41 Orekaria File Added: openbravo_24274_24275.diff
2014-08-19 19:44 hudsonbot Checkin
2014-08-19 19:44 hudsonbot Note Added: 0069524
2014-08-19 20:43 Orekaria Note Added: 0069530
2014-08-19 20:44 Orekaria Note Edited: 0069530 View Revisions
2014-08-19 20:45 Orekaria Note Edited: 0069530 View Revisions
2014-08-19 20:45 Orekaria Note Edited: 0069530 View Revisions
2014-08-20 15:14 hudsonbot Checkin
2014-08-20 15:14 hudsonbot Note Added: 0069547
2014-08-20 15:14 hudsonbot Checkin
2014-08-20 15:14 hudsonbot Note Added: 0069550
2014-08-20 15:14 hudsonbot Checkin
2014-08-20 15:14 hudsonbot Note Added: 0069551
2014-08-22 02:31 Orekaria fix_in_branch pi =>
2014-08-22 02:31 Orekaria Description Updated View Revisions
2014-08-22 15:27 hgbot Checkin
2014-08-22 15:27 hgbot Note Added: 0069616
2014-08-22 15:27 hgbot Status new => resolved
2014-08-22 15:27 hgbot Resolution open => fixed
2014-08-22 15:27 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/cf2476a790bf9d816043c7262d0e3380db2fe3ad [^] => http://code.openbravo.com/erp/devel/pi/rev/67bb1feb836ae466eb2a2d2417bf8eb3425fa41d [^]
2014-08-22 21:11 Orekaria Status resolved => new
2014-08-22 21:11 Orekaria Resolution fixed => open
2014-08-22 21:11 Orekaria Status new => scheduled
2014-08-22 21:11 Orekaria fix_in_branch => pi
2014-08-23 16:30 hudsonbot Checkin
2014-08-23 16:30 hudsonbot Note Added: 0069647
2014-08-24 06:14 hgbot Checkin
2014-08-24 06:14 hgbot Note Added: 0069663
2014-08-24 15:47 hudsonbot Checkin
2014-08-24 15:47 hudsonbot Note Added: 0069669
2014-09-02 22:18 Orekaria Status scheduled => resolved
2014-09-02 22:18 Orekaria Fixed in Version => 3.0PR14Q4
2014-09-02 22:18 Orekaria Resolution open => fixed
2014-09-23 12:56 mtaal Review Assigned To => alostale
2014-09-26 08:52 alostale Note Added: 0070422
2014-09-26 08:52 alostale Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker