Page 1 of 1

Bug in OpenEMM 6.0.1 / RecipientDaoImpl.java

Posted: Mon May 02, 2011 3:42 pm
by sp
The method findByColumn which is also used by the web service has a bug:

When several recipients with the same email are registered the returned customer id will be always zero, the documentation of the method and the web service method state that the first match would be resulted though.

I guess something like "order by customer_id limit 1" in the SQL query or special handling for multiple returned IDs like in the findByKeyColumn method should solve this.

Maybe further versions of OpenEMM have still this bug, so I wanted to let you know.

PS: a silent catch like the one below, without any log output, is not very nice :/.

Code: Select all

            } catch (Exception e) {
                custID = 0;
            }

Re: Bug in OpenEMM 6.0.1 / RecipientDaoImpl.java

Posted: Mon May 02, 2011 4:24 pm
by maschoff
Thanks for notifying us. We will have a look into this issue. In case we can replicate the faulty behaviour we will announce the availability of a bug fix via Twitter.