Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0038024 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] StoreServer | minor | have not tried | 2018-03-01 15:05 | 2018-03-09 07:25 | |||
Reporter | AugustoMauch | View Status | public | |||||
Assigned To | AugustoMauch | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 6b3145f5c4bb | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | mtaal | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0038024: Fail gracefully when validating a store that has no organizations assigned | |||||||
Description | Right now, if a store with no organizations assigned is validated, the validation fails because of malformed queries: [SynchronizationStoreDataValidationTask] 18785 [pool-3-thread-1] ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: syntax error at or near ")" [SynchronizationStoreDataValidationTask] Position: 219 [SynchronizationStoreDataValidationTask] TableName = AD_User_Roles [SynchronizationStoreDataValidationTask] Creating materialized view for table AD_User_Roles [SynchronizationStoreDataValidationTask] 18808 [pool-3-thread-1] ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: current transaction is aborted, commands ignored until end of transaction block It would be better to detect the lack of organizations in advance and to return with a checked exception | |||||||
Steps To Reproduce | In a multiserver environment: - Create a store server in the Mobile Server window. Don't assign it any organizations in the Organizations by Server tab. - Validate that store: ant -f modules/org.openbravo.replication.symmetricds/build.xml validate.store.data -DmobileServerKey=<mobileServerKey> Check that the log is not very clear. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0102903) hgbot (developer) 2018-03-01 16:03 |
Repository: erp/pmods/org.openbravo.replication.symmetricds Changeset: 6b3145f5c4bbc0bd2492b327da6c59da29b8a394 Author: Augusto Mauch <augusto.mauch <at> openbravo.com> Date: Thu Mar 01 16:02:33 2018 +0100 URL: http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/6b3145f5c4bbc0bd2492b327da6c59da29b8a394 [^] Fixes issue 38024: Fail gracefully validating a store with no organizations It is better to fail gracefully and show a proper error message than to fail because of a malformed query. --- M src/org/openbravo/replication/symmetricds/validation/SynchronizationStoreDataValidator.java --- |
(0103111) mtaal (manager) 2018-03-09 07:25 |
Reviewed |
Issue History | |||
Date Modified | Username | Field | Change |
2018-03-01 15:05 | AugustoMauch | New Issue | |
2018-03-01 15:05 | AugustoMauch | Assigned To | => AugustoMauch |
2018-03-01 15:05 | AugustoMauch | Triggers an Emergency Pack | => No |
2018-03-01 16:03 | hgbot | Checkin | |
2018-03-01 16:03 | hgbot | Note Added: 0102903 | |
2018-03-01 16:03 | hgbot | Status | new => resolved |
2018-03-01 16:03 | hgbot | Resolution | open => fixed |
2018-03-01 16:03 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/6b3145f5c4bbc0bd2492b327da6c59da29b8a394 [^] |
2018-03-01 16:03 | AugustoMauch | Review Assigned To | => mtaal |
2018-03-09 07:25 | mtaal | Note Added: 0103111 | |
2018-03-09 07:25 | mtaal | Status | resolved => closed |
2018-03-14 09:58 | mtaal | Relationship added | has duplicate 0037908 |
Copyright © 2000 - 2009 MantisBT Group |