MemberList long names truncation

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/5/2008 2:10:45 AM
Gravatar
Total Posts 4

MemberList long names truncation

Hi,

I'm using mojoportal 2.2.7.6 on windows with MSSQL backend.

When opening MemberList.aspx I get SqlException because a user with name longer than 50 characters exist. When creating temporary table #PageIndexForUsers in the [mp_Users_SelectPage] body UserName field is only 50 characters long. An exec sql statement fails

exec mp_Users_SelectPage @pageNumber=1, @pageSize=20, @usernameBeginsWith='', @siteId=1

Msg 8152, Level 16, State 13, Procedure mp_Users_SelectPage, Line 39
String or binary data would be truncated.
The statement has been terminated.

(0 row(s) affected)

So the table #PageIndexForUsers should be defined like this

CREATE TABLE #PageIndexForUsers
(
IndexID int IDENTITY (1, 1) NOT NULL,
UserName nvarchar(100) COLLATE DATABASE_DEFAULT,
LoginName nvarchar(50) COLLATE DATABASE_DEFAULT
)

to stay in sync with mp_Users table.

Thanks,

Misha

11/5/2008 7:44:20 AM
Gravatar
Total Posts 18439

Re: MemberList long names truncation

Hi Misha,

Thanks for the bug report and the fix! I just made the same change here so it will be fixed in the next release.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.