Bug in OpenEMM 6.0.1 / RecipientDaoImpl.java

Use this forum to report bugs and to check for bugfixes and new releases of OpenEMM

Moderator: moderator

sp
Posts: 21
Joined: Mon Apr 12, 2010 2:04 pm

Bug in OpenEMM 6.0.1 / RecipientDaoImpl.java

Post by sp » Mon May 02, 2011 3:42 pm

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;
            }

maschoff
Site Admin
Posts: 2177
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Bug in OpenEMM 6.0.1 / RecipientDaoImpl.java

Post by maschoff » Mon May 02, 2011 4:24 pm

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.
OpenEMM Maintainer

Post Reply