Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0038512 | Openbravo ERP | A. Platform | public | 2018-05-10 09:23 | 2018-05-10 13:42 | |||||||
| Reporter | caristu | |||||||||||
| Assigned To | platform | |||||||||||
| Priority | high | Severity | minor | Reproducibility | have not tried | |||||||
| Status | closed | Resolution | fixed | |||||||||
| Platform | OS | 5 | OS Version | |||||||||
| Product Version | ||||||||||||
| Target Version | Fixed in Version | |||||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | caristu | |||||||||||
| OBNetwork customer | No | |||||||||||
| Web browser | ||||||||||||
| Modules | Core | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0038512: OBQuery can fail using objects from OBContext as parameters | |||||||||||
| Description | OBQuery can fail using objects from OBContext as parameters. | |||||||||||
| Steps To Reproduce | 1) Apply the attached patch (obquery.diff) 2) Log-in 3) Open the About pop-up. The query fails, showing the following error trace: ERROR org.openbravo.erpCommon.ad_forms.About - Error captured: org.hibernate.MappingException: Unknown entity: org.openbravo.model.ad.system.Client at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:694) at org.hibernate.impl.SessionFactoryImpl.getIdentifierType(SessionFactoryImpl.java:781) at org.hibernate.type.EntityType.getIdentifierType(EntityType.java:560) at org.hibernate.type.EntityType.getIdentifierOrUniqueKeyType(EntityType.java:585) at org.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:130) at org.hibernate.param.NamedParameterSpecification.bind(NamedParameterSpecification.java:67) at org.hibernate.loader.hql.QueryLoader.bindParameterValues(QueryLoader.java:571) at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1716) 4) Note that when building the same query (with the same parameter) using OBCriteria, it can be executed properly (see attached obcriteria.diff) | |||||||||||
| Proposed Solution | ||||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships |
| |||||||||||
| Attached Files | https://issues.openbravo.com/file_download.php?file_id=11787&type=bug https://issues.openbravo.com/file_download.php?file_id=11788&type=bug | |||||||||||
| Issue History | ||||||||||||
| Date Modified | Username | Field | Change | |||||||||
| 2018-05-10 09:23 | caristu | New Issue | ||||||||||
| 2018-05-10 09:23 | caristu | Assigned To | => platform | |||||||||
| 2018-05-10 09:23 | caristu | File Added: obquery.diff | ||||||||||
| 2018-05-10 09:23 | caristu | OBNetwork customer | => No | |||||||||
| 2018-05-10 09:23 | caristu | Modules | => Core | |||||||||
| 2018-05-10 09:23 | caristu | Triggers an Emergency Pack | => No | |||||||||
| 2018-05-10 09:25 | caristu | File Added: obcriteria.diff | ||||||||||
| 2018-05-10 09:26 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=17107#r17107 | |||||||||
| 2018-05-10 09:28 | caristu | Relationship added | related to 0037064 | |||||||||
| 2018-05-10 09:31 | caristu | Note Added: 0104443 | ||||||||||
| 2018-05-10 09:31 | caristu | Note Edited: 0104443 | bug_revision_view_page.php?bugnote_id=0104443#r17109 | |||||||||
| 2018-05-10 09:42 | caristu | Type | defect => design defect | |||||||||
| 2018-05-10 09:42 | caristu | Relationship deleted | related to 0037064 | |||||||||
| 2018-05-10 09:42 | caristu | Relationship added | depends on 0037064 | |||||||||
| 2018-05-10 13:42 | caristu | Review Assigned To | => caristu | |||||||||
| 2018-05-10 13:42 | caristu | Note Added: 0104452 | ||||||||||
| 2018-05-10 13:42 | caristu | Status | new => closed | |||||||||
| 2018-05-10 13:42 | caristu | Resolution | open => fixed | |||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||