Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#522 closed Bug (fixed)

inconsistency in login string length

Reported by: matt Owned by:
Priority: major Milestone: Piwik 0.4.3
Component: Core Keywords:
Cc: Sensitive: no

Description

Table "piwik_user_dashboard" has got a login-attribute, which is limited to 20 chars.
I've set up an username with more than 20 chars and therefore the login-value was cut to 20 chars and I couldn't change any settings in the dashboard. I went to phpMyAdmin and changed the login-attribute to 60 chars.

Piwik should throw an error if someone tries to setup an user with more than 20 chars or you should raise the char-length in the database.

Solution: we should make sure that login is restricted to the same length in the mysql tables (60 chars), and that it's properly checked against when creating a new user.

Change History (5)

comment:1 Changed 5 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

fixed in [941] all login fields are now consistently restricted to maximum 100 characters string length + bundling DB updates

comment:2 Changed 5 years ago by vipsoft (robocoder)

  • Milestone changed from RobotRock to 1 - Piwik 0.4.3
  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:3 Changed 5 years ago by vipsoft (robocoder)

The change wasn't applied to core/Piwik.php, so fresh installs after 0.2.32 still create 20 character login fields.

comment:4 Changed 5 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [1349]) fixes #522 - inconsistency in login string length

(update script to be addressed in #894)

comment:5 Changed 5 years ago by vipsoft (robocoder)

  • Sensitive unset
  • Summary changed from unconsistency in login string length to inconsistency in login string length
Note: See TracTickets for help on using tickets.