Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0050919Openbravo ERPA. Platformpublic2022-11-16 14:122023-07-27 12:31
shuehner 
shuehner 
normalminorhave not tried
closedfixed 
5
 
PR23Q4 
Core
No
0050919: Remove obsolete reference for ImageInfo (url-based) it was replaced by ImageInfoBLOB
In 2009 this project added a new image reference (aka ImageInfoBLOB) to store content of image files directly in the database:
http://wiki.openbravo.com/wiki/Projects:Image_Reference_BLOB [^]

Issue 18530 (from 3.0MP9 in 2012) added a modulescript ConvertImages to convert all file-based images (from deployed web/images) folder to be stored as BLOB/bytea in the ad_image.bindarydata column.

That also switched the remaining columns away from the old ad_reference_id=32.
The 3.0 backoffice UI code does not have specific code implemented for those but just "StringUIDefinition".

Checking today:
- No usage to ad_reference_id=32 is found (backoffice,mods/pmods, download of published module)
- No reference to the ImageInfo.html (i.e. from manual html code) in backoffice,mods/pmods/download of published modules

With all that there seems to be no reason to keep that old reference around.
-
No tags attached.
related to defect 00185303.0MP9 closed marvintm Openbravo ERP The image field on product window has an incorrect reference. 
related to defect 0053119 closed shuehner Modules Fix dbconsistency issue indirectly caused by backoffice change in 50919 
related to defect 0053120 closed shuehner Modules Fix dbconsistency issue indirectly caused by backoffice change in 50919 
related to defect 0053121 closed shuehner Modules Fix dbconsistency issue indirectly caused by backoffice change in 50919 
blocks defect 0050924 closed shuehner Openbravo ERP #RecordRangeTad (aka: Selector Registry Range) is unused and should be removed. 
Issue History
2022-11-16 14:12shuehnerNew Issue
2022-11-16 14:12shuehnerAssigned To => shuehner
2022-11-16 14:12shuehnerModules => Core
2022-11-16 14:12shuehnerTriggers an Emergency Pack => No
2022-11-16 15:09hgbotNote Added: 0143709
2022-11-16 17:07shuehnerRelationship addedblocks 0050924
2022-11-23 08:42alostaleRelationship addedrelated to 0018530
2023-02-02 13:47hgbotNote Added: 0146169
2023-07-27 12:31hgbotNote Added: 0152922
2023-07-27 12:31hgbotNote Added: 0152923
2023-07-27 12:31hgbotResolutionopen => fixed
2023-07-27 12:31hgbotStatusnew => closed
2023-07-27 12:31hgbotFixed in Version => PR23Q4
2023-07-27 12:31hgbotNote Added: 0152924
2023-07-27 12:31hgbotNote Added: 0152925
2023-08-01 17:14shuehnerRelationship addedrelated to 0053119
2023-08-01 17:28shuehnerRelationship addedrelated to 0053120
2023-08-01 17:32shuehnerRelationship addedrelated to 0053121

Notes
(0143709)
hgbot   
2022-11-16 15:09   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/765 [^]
(0146169)
hgbot   
2023-02-02 13:47   
Merge Request created: https://gitlab.com/openbravo/ci/backoffice-api/-/merge_requests/41 [^]
(0152922)
hgbot   
2023-07-27 12:31   
Repository: https://gitlab.com/openbravo/ci/backoffice-api [^]
Changeset: 3094ea23f42cf7dfa197af080ecebd11d8372b7a
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 27-07-2023 10:00:05
URL: https://gitlab.com/openbravo/ci/backoffice-api/-/commit/3094ea23f42cf7dfa197af080ecebd11d8372b7a [^]

Related to ISSUE-50919: Accept API-change (to remove obsolete ImageInfo)

Removed:
- row from table AD_REFERENCE- ID: 32
- row from table OBCLKER_UIDEFINITION - ID: 4C51FDC958034C00BF2067AB74E665F5
- row from table AD_MODEL_OBJECT - ID: 800780
- row from table AD_MODEL_OBJECT_MAPPING - ID: 801024
- Java classes:
  - org.openbravo.wad.controls.WADImage
  - org.openbravo.reference.ui.UIImage

---
M java/reference/java.japi.gz
M model/modules/org.openbravo.client.kernel/src-db/database/sourcedata/OBCLKER_UIDEFINITION.xml
M model/src-db/database/sourcedata/AD_MODEL_OBJECT.xml
M model/src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
M model/src-db/database/sourcedata/AD_REFERENCE.xml
---
(0152923)
hgbot   
2023-07-27 12:31   
Merge request merged: https://gitlab.com/openbravo/ci/backoffice-api/-/merge_requests/41 [^]
(0152924)
hgbot   
2023-07-27 12:31   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: e6d6a499806afe92f32d01a0d2e512938f614634
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 27-07-2023 10:31:23
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/e6d6a499806afe92f32d01a0d2e512938f614634 [^]

Fixed ISSUE-50919. Remove obsolete ImageInfo 2.50 selector / reference

That is old style 2.50 selector popup which is related to the old
non-blob image reference with ad_reference_id=32

New ImageInfoBLOB reference was added in 2009 and existing images
auto-converted with the modulescript ConvertImages (issue 18530
in 2012 / 3.0MP9).
    
Remove that selector as obsolete and related element as obsolete:
- Selector Servlet and files + related AD elements, src-wad implementation
- old ad_reference_id=32 (no usage found across Snapshot_Dev + all modules)
- Mark column ad_image.imageurl + m_product.imageurl as deprecated
Extra benefit it removes one of only 3 files left still using the old xsql
deprecated paging feature).

---
M modules/org.openbravo.client.kernel/src-db/database/sourcedata/OBCLKER_UIDEFINITION.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_TEXTINTERFACES.xml
R src-wad/src/org/openbravo/wad/controls/WADImage.html
R src-wad/src/org/openbravo/wad/controls/WADImage.java
R src-wad/src/org/openbravo/wad/controls/WADImage.xml
R src-wad/src/org/openbravo/wad/controls/WADImageXML.html
R src-wad/src/org/openbravo/wad/controls/WADImageXML.xml
R src/org/openbravo/erpCommon/info/ImageInfo.html
R src/org/openbravo/erpCommon/info/ImageInfo.java
R src/org/openbravo/erpCommon/info/ImageInfo.xml
R src/org/openbravo/erpCommon/info/ImageInfo_data.xsql
R src/org/openbravo/reference/ui/UIImage.java
---
(0152925)
hgbot   
2023-07-27 12:31   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/765 [^]