Aktionen
GX-Abgewiesen #67961
geschlossenAfter updating the shop from <4.1 to >4.1 some configurations are being truncated | Nach einem Update von <4.1 auf >4.1 kann es passieren, dass einige Konfigurationswerte abgeschnitten sind
Status:
Abgewiesen
Priorität:
Hoch
Zugewiesen an:
-
Kategorie:
Updater
Zielversion:
-
Beginn:
Abgabedatum:
% erledigt:
0%
Geschätzter Aufwand:
Steps to reproduce:
Release Notes Langtext:
Beschreibung
We need to check the truncate method which was added to src/gambio_updater/classes/Migration/Configuration/Tables/GmConfigurationTableMigration.php (to truncate the key
value to maximum 255 chars) because it can cause layout problems if it truncates a tag.
Maybe it could be truncating the values as well.
Steps to reproduce:
- Have a 4.0 shop
- Add the code below (gm_value) to the gm_configuration table with the gm_key = GM_HEAD_TRACKING_CODE
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '123456789012345');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=123456789012345&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
<!-- Smartsupp Live Chat script -->
<script type="text/javascript">
var _smartsupp = _smartsupp || {};
_smartsupp.key = '13631c135169001eb0eca9cf209d8c5f535bdd45';
window.smartsupp||(function(d) {
var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
s=d.getElementsByTagName('script')[0];c=d.createElement('script');
c.type='text/javascript';c.charset='utf-8';c.async=true;
c.src='https://www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
})(document);
</script>
- Update your shop to 4.2
- Check your gx_configurations table
select * from *gx_configurations* where `key` = 'gm_configuration/GM_HEAD_TRACKING_CODE';
Expected: the value from the gx_configurations table should be exactly the same as in the gm_configuration table.
Result: the value inside the gx_configurations is being truncated.
Checkliste 0/0
Aktionen
#1
Von Daniel Wu vor mehr als 4 Jahren aktualisiert
- Thema wurde von After updating the shop some configurations are being truncated zu After updating the shop from <4.1 to >4.1 some configurations are being truncated | Nach einem Update von <4.1 auf >4.1 kann es passieren, dass einige Konfigurationswerte abgeschnitten sind geändert
Aktionen
#2
Von Daniel Wu vor mehr als 4 Jahren aktualisiert
- Projekt wurde von 11212 zu GX-Entwicklung geändert
- Kategorie wurde auf Updater gesetzt
- Priorität wurde von Normal zu Hoch geändert
- Zielversion wurde von 547 zu 133 geändert
Aktionen
#3
Von Alexandre Ataides vor mehr als 4 Jahren aktualisiert
- Tracker wurde von GX-Bug zu GX-Abgewiesen geändert
- Status wurde von Gemeldet zu Abgewiesen geändert
- Betroffene Versionen
Unbestimmtwurde gelöscht
Aktionen