[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2015-01-23 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

Fridolin SOMERS fridolyn.som...@biblibre.com changed:

   What|Removed |Added

 CC||fridolyn.som...@biblibre.co
   ||m

--- Comment #15 from Fridolin SOMERS fridolyn.som...@biblibre.com ---
Pushed to 3.14.x will be in 3.14.13

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-12-10 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

Liz Rea l...@catalyst.net.nz changed:

   What|Removed |Added

 CC||l...@catalyst.net.nz

--- Comment #13 from Liz Rea l...@catalyst.net.nz ---
This bug exists in 3.14 as well.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-12-10 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

--- Comment #14 from Liz Rea l...@catalyst.net.nz ---
conveniently, it looks like this patch will go into 3.14 pretty much as is. The
follow up (bug 13050) won't go cleanly, however.

Liz

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-10-09 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

M. de Rooy m.de.r...@rijksmuseum.nl changed:

   What|Removed |Added

   See Also||http://bugs.koha-community.
   ||org/bugzilla3/show_bug.cgi?
   ||id=13050

--- Comment #12 from M. de Rooy m.de.r...@rijksmuseum.nl ---
I agree with Chris and Nick that this query is not very clear and easy to
maintain. Actually we do only need the unique token here (at this time we are
creating a new self-registered borrower without number).
Sending a follow-up on report 13050.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-09-22 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

Galen Charlton gmcha...@gmail.com changed:

   What|Removed |Added

 Status|Pushed to Master|Pushed to Stable
 CC||gmcha...@gmail.com

--- Comment #11 from Galen Charlton gmcha...@gmail.com ---
Pushed to 3.16.x for inclusion in 3.16.4.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-09-03 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

Katrin Fischer katrin.fisc...@bsz-bw.de changed:

   What|Removed |Added

   Keywords||rel_3_16_4_candidate
Version|3.16|master

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-08-21 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

Katrin Fischer katrin.fisc...@bsz-bw.de changed:

   What|Removed |Added

  Attachment #30877|0   |1
is obsolete||

--- Comment #9 from Katrin Fischer katrin.fisc...@bsz-bw.de ---
Created attachment 31037
  --
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=31037action=edit
[PASSED QA] Bug 12371 - Links in every patron self-registration email points to
a single borrower

If multiple registrations are submitted, the first patron to register
will be used for the first patron to click the registration confirmation
link!

Test Plan:
1) Submit 2 new patron registrations
2) Use the confirm link from the 2nd registration
3) Note you end up registering as the first submitted registration
4) Apply the patch
5) Repeat steps 1 and 2
6) Note you are now confirmed correctly

Signed-off-by: Chris Cormack ch...@bigballofwax.co.nz

Test plan appears to work fine, I have a feeling the sql could be
written better but can't come up with it on a Sunday morning

Signed-off-by: Katrin Fischer katrin.fischer...@web.de
Works as described and fixes a critical bug.
Passes tests and QA script.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-08-21 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

Katrin Fischer katrin.fisc...@bsz-bw.de changed:

   What|Removed |Added

 Status|Signed Off  |Passed QA
   Patch complexity|--- |Small patch

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-08-21 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

Tomás Cohen Arazi tomasco...@gmail.com changed:

   What|Removed |Added

 Status|Passed QA   |Pushed to Master
 CC||tomasco...@gmail.com

--- Comment #10 from Tomás Cohen Arazi tomasco...@gmail.com ---
Patch pushed to master.

Thanks Kyle!

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-08-20 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

--- Comment #8 from Kyle M Hall k...@bywatersolutions.com ---
While I agree your solution would work, I think this one is better because it
solves it at the root of the problem. Fixing the issue at the
opacmemberentry.pl level would make it easier to introduce regressions in the
future. Thanks for the input though!

(In reply to Nick Clemens from comment #7)
 It is possible I am wrong, but I couldn't recreate the problem in testing.
 
 Looking at the code that dmin mentions it appears that opac-memberentry.pl
 passes two variables to the sql query in Letters.pm
 
 It appears that the function in Letters.pm was designed to allow for general
 use in pulling from 'borrower_modifications' using either borrowernumber or
 verification_token.
 
 When trying to pull data by verification_token, opacmemberentry.pl passes
 the verification_token for both variables (borrowernumber compare and
 verification_token compare)
 
 In my testing, when mysql gets a string as a variable to compare to an
 integer (borrowernumber) it will just take the first integer and chop the
 rest of the string, meaning any verification_token that beings with zero
 will compare successfully to borrowernumber zero
 
 It should be possible to leave the original sql in Letters.pm and just
 replace the first variable passed from opacmemberentry.pl  from
 verification_token to 'a' to prevent matching to zero and to force a
 comparison of the tokens.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-08-16 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

Nick Clemens n...@quecheelibrary.org changed:

   What|Removed |Added

 CC||n...@quecheelibrary.org

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-08-16 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

Chris Cormack ch...@bigballofwax.co.nz changed:

   What|Removed |Added

  Attachment #30850|0   |1
is obsolete||

--- Comment #6 from Chris Cormack ch...@bigballofwax.co.nz ---
Created attachment 30877
  --
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30877action=edit
Bug 12371 - Links in every patron self-registration email points to a single
borrower

If multiple registrations are submitted, the first patron to register
will be used for the first patron to click the registration confirmation
link!

Test Plan:
1) Submit 2 new patron registrations
2) Use the confirm link from the 2nd registration
3) Note you end up registering as the first submitted registration
4) Apply the patch
5) Repeat steps 1 and 2
6) Note you are now confirmed correctly

Signed-off-by: Chris Cormack ch...@bigballofwax.co.nz

Test plan appears to work fine, I have a feeling the sql could be
written better but can't come up with it on a Sunday morning

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-08-16 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

Chris Cormack ch...@bigballofwax.co.nz changed:

   What|Removed |Added

 Status|Needs Signoff   |Signed Off

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-08-16 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

--- Comment #7 from Nick Clemens n...@quecheelibrary.org ---
It is possible I am wrong, but I couldn't recreate the problem in testing.

Looking at the code that dmin mentions it appears that opac-memberentry.pl
passes two variables to the sql query in Letters.pm

It appears that the function in Letters.pm was designed to allow for general
use in pulling from 'borrower_modifications' using either borrowernumber or
verification_token.

When trying to pull data by verification_token, opacmemberentry.pl passes the
verification_token for both variables (borrowernumber compare and
verification_token compare)

In my testing, when mysql gets a string as a variable to compare to an integer
(borrowernumber) it will just take the first integer and chop the rest of the
string, meaning any verification_token that beings with zero will compare
successfully to borrowernumber zero

It should be possible to leave the original sql in Letters.pm and just replace
the first variable passed from opacmemberentry.pl  from verification_token to
'a' to prevent matching to zero and to force a comparison of the tokens.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-08-15 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

Kyle M Hall k...@bywatersolutions.com changed:

   What|Removed |Added

 Status|NEW |Needs Signoff

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-08-15 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

--- Comment #4 from Kyle M Hall k...@bywatersolutions.com ---
Created attachment 30850
  --
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30850action=edit
Bug 12371 - Links in every patron self-registration email points to a single
borrower

If multiple registrations are submitted, the first patron to register
will be used for the first patron to click the registration confirmation
link!

Test Plan:
1) Submit 2 new patron registrations
2) Use the confirm link from the 2nd registration
3) Note you end up registering as the first submitted registration
4) Apply the patch
5) Repeat steps 1 and 2
6) Note you are now confirmed correctly

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-08-15 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

Kyle M Hall k...@bywatersolutions.com changed:

   What|Removed |Added

   Assignee|oleon...@myacpl.org |k...@bywatersolutions.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-08-15 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

--- Comment #5 from Kyle M Hall k...@bywatersolutions.com ---
Thanks dmin! Your comments were incredibly helpful for writing this patch!

Kyle

(In reply to dmin from comment #3)
 (In reply to dmin from comment #2)
  The problem comes from the borrowernumber for new registrants (who haven't 
  been added to the borrowers table yet) being 0 and the query on line 591 of 
  Letters.pm:
 
 ($table eq 'borrower_modifications') ? SELECT * FROM $table WHERE
 borrowernumber = ? OR verification_token = ?
 
 Since all new, unverified borrowers have the same borrower number, the
 Boolean expression to match on always matches on the borrower # and doesn't
 look at the token.  Since, in the detault notice, the only field used in the
 letter OPAC_REG_VERIFY is the token, it's not immediately obvious that it
 grabbed the wrong record from the table.  
 
 A workaround, which does not appear to impact any other is to alter the
 query to ensure the token is checked if the borrower number is 0.  There is
 probably a better way than this, but it as worked for me:
 
 ($table eq 'borrower_modifications') ? SELECT * FROM $table WHERE
 (borrowernumber = 0 OR borrowernumber = ?) AND verification_token =?
 
 I'm not familiar with how to propose a patch properly, but this is a small
 change in a single line of a module, so I thought I should share.  If this
 should have gone in the comments, sorry, I'm new to all this.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-08-14 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

dmin dmin...@gmail.com changed:

   What|Removed |Added

   Priority|P5 - low|P1 - high
 CC||dmin...@gmail.com
Version|3.14|3.16
   Severity|enhancement |critical

--- Comment #2 from dmin dmin...@gmail.com ---
When two (or mote) patrons are unverified, this issue causes all of the patrons
to receive a verification email with the same token.  

If this link is used by the patron who is not associated with the token in the
borrower_modifications table, the user name and password for the borrower who
is associated with that token are displayed, providing access to the account
and personal details of another patron.  

This represents a critical privacy issue with self-registrations.

This issue is known to affect 3.16.X (did not use self-registration in 3.14.X.

Additonally, our borrower_modifications table always shows borrower # as 0,
since borrower number is not generated until the patron is added to the
borrowers table in opac-registration-verify.pl using AddMember_OPAC.

It appears the issue is stemming from the section of opac-memberentry.pl where
the verification email is generated (as all tokens in the
borrower_modifications table are unique) and only the token in the email is
incorrect.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-08-14 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

Katrin Fischer katrin.fisc...@bsz-bw.de changed:

   What|Removed |Added

 CC||katrin.fisc...@bsz-bw.de,
   ||k...@bywatersolutions.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-08-14 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

--- Comment #3 from dmin dmin...@gmail.com ---
(In reply to dmin from comment #2)
 The problem comes from the borrowernumber for new registrants (who haven't 
 been added to the borrowers table yet) being 0 and the query on line 591 of 
 Letters.pm:

($table eq 'borrower_modifications') ? SELECT * FROM $table WHERE
borrowernumber = ? OR verification_token = ?

Since all new, unverified borrowers have the same borrower number, the Boolean
expression to match on always matches on the borrower # and doesn't look at the
token.  Since, in the detault notice, the only field used in the letter
OPAC_REG_VERIFY is the token, it's not immediately obvious that it grabbed the
wrong record from the table.  

A workaround, which does not appear to impact any other is to alter the query
to ensure the token is checked if the borrower number is 0.  There is probably
a better way than this, but it as worked for me:

($table eq 'borrower_modifications') ? SELECT * FROM $table WHERE
(borrowernumber = 0 OR borrowernumber = ?) AND verification_token =?

I'm not familiar with how to propose a patch properly, but this is a small
change in a single line of a module, so I thought I should share.  If this
should have gone in the comments, sorry, I'm new to all this.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 12371] Links in every patron self-registration email points to a single borrower

2014-07-21 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12371

M. de Rooy m.de.r...@rijksmuseum.nl changed:

   What|Removed |Added

 CC||m.de.r...@rijksmuseum.nl

--- Comment #1 from M. de Rooy m.de.r...@rijksmuseum.nl ---
Barton: Do you have a borrower with borrowernumber 0 then? You should not have.
This just appears to say that there is no borrower yet. Did the self
registration email reach the correct address?

Note that I reached this report after having a funny experience with
selfregistration too. Apparently, there still was a pending self registration
in the database, I entered a new one but received the credentials of the other
user instead (on the email address of the last added registration). Cannot
reproduce it (at least rightaway..)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/