You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2022/12/31 09:21:54 UTC

[ofbiz-plugins] branch trunk updated (e56be8b27 -> 196a01e4e)

This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a change to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


    from e56be8b27 Fixed: PartyId field not populating in timeEntry (OFBIZ-12715)
     new 23b1c3a4c Fixed: Upgrade to gradle 7.6 - support jdk 11 -> 17 (OFBIZ-12400)
     new 196a01e4e Fixed: Unable to add product to cart for specific product (OFBIZ-12105)

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 ecommerce/webapp/ecommerce/images/productAdditionalView.js | 4 ++--
 rest-api/build.gradle                                      | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)


[ofbiz-plugins] 01/02: Fixed: Upgrade to gradle 7.6 - support jdk 11 -> 17 (OFBIZ-12400)

Posted by jl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git

commit 23b1c3a4ca95c92f1059d4eb025cfcb8bc285399
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Tue Dec 6 09:35:44 2022 +0100

    Fixed: Upgrade to gradle 7.6 - support jdk 11 -> 17 (OFBIZ-12400)
    
    > java.lang.IllegalArgumentException: Unsupported class file major version 61
    
    This might require a version upgrade for Jersey to a version that supports Java 17 .
    Jersey seems to repackage ASM for bytecode transformations.
    
    The bundled version does not support Java 17 .
    An upgrade to jersey 2.37 should do the trick
    https://github.com/eclipse-ee4j/jersey/releases/tag/2.37 .
    
    Thanks: Ioan Eugen Stan
---
 rest-api/build.gradle | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/rest-api/build.gradle b/rest-api/build.gradle
index 29c39b692..6bf619eb8 100644
--- a/rest-api/build.gradle
+++ b/rest-api/build.gradle
@@ -23,10 +23,10 @@ project.rootProject.configurations.all {
 }
 
 dependencies {
-    pluginLibsCompile 'org.glassfish.jersey.containers:jersey-container-servlet:2.31' // Compilation issues with 3.0.2: package javax.ws.rs does not exist
-    pluginLibsCompile 'org.glassfish.jersey.media:jersey-media-multipart:2.31'
-    pluginLibsCompile 'org.glassfish.jersey.media:jersey-media-json-jackson:2.31'
-    pluginLibsCompile 'org.glassfish.jersey.inject:jersey-hk2:2.31'
+    pluginLibsCompile 'org.glassfish.jersey.containers:jersey-container-servlet:2.37' // Compilation issues with 3.0.2: package javax.ws.rs does not exist
+    pluginLibsCompile 'org.glassfish.jersey.media:jersey-media-multipart:2.37'
+    pluginLibsCompile 'org.glassfish.jersey.media:jersey-media-json-jackson:2.37'
+    pluginLibsCompile 'org.glassfish.jersey.inject:jersey-hk2:2.37'
     pluginLibsCompile 'io.swagger.core.v3:swagger-jaxrs2:2.2.6'
     pluginLibsCompile 'io.swagger.core.v3:swagger-jaxrs2-servlet-initializer:2.2.6'
     pluginLibsCompile 'io.swagger.core.v3:swagger-annotations:2.2.6'


[ofbiz-plugins] 02/02: Fixed: Unable to add product to cart for specific product (OFBIZ-12105)

Posted by jl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git

commit 196a01e4ee36a0ddfb7e4ffabbad2dcab98d5970
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Sat Dec 31 10:21:36 2022 +0100

    Fixed: Unable to add product to cart for specific product (OFBIZ-12105)
    
    Issue exist for Specfic product only as giant-widget-with-variant-explosion-WG-9943-p
    
    Step to reproduce
    
    1. Open - https://demo-trunk.ofbiz.apache.org/ecomseo
    2. Click on the giant-widget-with-variant-explosion product link.
    3. Select colour and size.
    4. Select unit of measure.
    5. Click on add to cart link.
    
    Actual Result: Unable to product to cart
    Expected Result : Product should be added to cart.
    
    jleroux: error in js console log:
    The use of "getAttributeNode()" is deprecated. Use "getAttribute()" instead.
    This was only a problem in Firefox since a very old version:
    https://bugzilla.mozilla.org/show_bug.cgi?id=690120
    
    Tested without fix on last Edge (ie Chromium) on Win7, works w/ fix too
    
    Thanks: Ashish Sharma for report
---
 ecommerce/webapp/ecommerce/images/productAdditionalView.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ecommerce/webapp/ecommerce/images/productAdditionalView.js b/ecommerce/webapp/ecommerce/images/productAdditionalView.js
index a028a436c..ad746d39b 100644
--- a/ecommerce/webapp/ecommerce/images/productAdditionalView.js
+++ b/ecommerce/webapp/ecommerce/images/productAdditionalView.js
@@ -23,7 +23,7 @@ imgView = {
             allAnchors = document.getElementsByTagName('a');
             if (allAnchors.length) {
                 for (var i = 0; i < allAnchors.length; i++) {
-                    if (allAnchors[i].getAttributeNode('swapDetail') && allAnchors[i].getAttributeNode('swapDetail').value != '') {
+                    if (allAnchors[i].getAttribute('swapDetail') && allAnchors[i].getAttribute('swapDetail').value != '') {
                         allAnchors[i].onmouseover = imgView.showImage;
                         allAnchors[i].onmouseout = imgView.showDetailImage;
                     }
@@ -31,7 +31,7 @@ imgView = {
             }
         }
     },
-    showDetailImage: function() { 
+    showDetailImage: function() {
         var mainImage = document.getElementById('detailImage');
         mainImage.src = document.getElementById('originalImage').value;
         return false;