View Issue Details

IDProjectCategoryView StatusLast Update
0014815mantisbtinstallationpublic2017-04-30 14:48
ReporterYKN Assigned Todregad  
PriorityurgentSeveritytrivialReproducibilityalways
Status closedResolutionunable to reproduce 
PlatformMicrosoftOSWindows server 2003OS Version2003 server
Product Version1.2.11 
Summary0014815: first time login unable to login as adminstrator/root
Description

Mantis v-1.2.11
PHP V 5.3.15
MS SQL 2005

I have installed the configured all the 3 products sucessfully.
But I am unable to log in as administrator with default password as root for the first time.

http://localhost/mantis/login_page.php
The attached screen shot describes the error.

Steps To Reproduce

http://localhost/mantis/login_page.php
The attached screen shot describes the error.

TagsNo tags attached.
Attached Files
error.JPG (80,941 bytes)   
error.JPG (80,941 bytes)   

Activities

dregad

dregad

2012-10-11 09:07

developer   ~0033161

I think the only way you can get this error is if you have an 'administrator' user with an id of 0 (zero). Since the installer creates this record with an id of 1, I'm not sure how this could happen. I suggest you check with mysql to confirm.

That being said, this warning message is displayed in a non-standard way, I'll have a look into improving that.

As a side note, you should also fix the timezone system warning.

YKN

YKN

2012-10-12 00:33

reporter   ~0033171

Last edited: 2012-10-12 00:38

The 'id' column of mantis_user_table has value = 1 for administrator user, as visible in the screen shot attached. Then also we are getting the same error.

I also would like to add that even before I can try to log in the error message appears. Which means that when the Mantis login page opens on the browser, page is looking for the administrator user and brings up the error.

dregad

dregad

2012-10-12 07:52

developer   ~0033176

mantis_user_table has value = 1 for administrator user, as visible in the screen shot attached

There is no screenshot.

when the Mantis login page opens on the browser, page is looking for the administrator

This is correct and normal, it's done as part of a security check to verify if the default administrator password has been changed

Looking at the code (login_page.php line 192), the only possibility of this error occuring, is if the user ID of the 'administrator' account is 0. Based on that, assuming you have checked the user table in the right database, I can think of only one alternative: are you using customized MantisBT code ?

grangeway

grangeway

2012-10-12 16:13

reporter   ~0033180

This is due to to running MSSQL.

The current 1.2 release does not support MSSQL IMO

Paul

dregad

dregad

2012-10-12 19:14

developer   ~0033187

This is due to to running MSSQL.

So you're saying that user_get_id_by_name('administrator') fails to return the user ID on mssql ?

The current 1.2 release does not support MSSQL IMO

I know there are issues with it (several of which are in fact fixed in later releases of ADOdb), but that's really basic use...

I don't have access to MSSQL so can't test anyway

grangeway

grangeway

2012-10-12 21:01

reporter   ~0033189

Last edited: 2012-10-12 21:02

if your running mssql or sqlsrv [forget which] - pretty sure odbc_mssql works in this csae. OR, that's working with a mantis patched adodb library.

I know I saw this case when originally doing the mssql stuff years ago with stock drivers in certain setup's

This is hence why we'd be better stating that MSSQL is broken [IMO at least] and fixing it properly with some test setup in place for the next mantis release, rather then poking at the edges

YKN

YKN

2012-10-13 04:43

reporter   ~0033190

Hi guys looking at the thread, I get to feel that Mantisbt can not be installed with MS SQL server database.... is this true?

Please suggest is there is any work around? Is there any other older version of Mantisbt that I need to try?

It would be helpful for me if I can get any references of those who may have successfully have deployed on MS SQL database. I could interact with them to get any help.

dregad

dregad

2012-10-13 08:50

developer   ~0033191

It will be difficult for me to help further. I don't think grangeway is interested in supporting/fixing 1.2 as he's focusing on a new version even though I believe he's the only core dev with good knowledge of mssql.

That said, I know of a few people who use Mantis successfully on mssql, but I am not sure which version, which driver, and if they have patched Mantis or the underlying adodb library to achieve that.

I suggest you search the tracker, check out the Forums, mailing list and IRC for support - if you're lucky someone will be able to help.

You can also try to use a more recent of adodb (see 0013713) or if all else fails, fallback to using MySQL.

If you manage to fix the problem, it would be nice of you to report your findings here.

dregad

dregad

2017-04-28 02:42

developer   ~0056731

5 years later I assume you've either resolved the problem or given up on it...

Related Changesets

MantisBT: master-1.2.x c4b12ce2

2012-10-11 02:36

dregad


Details Diff
Use standard error message

The warning message displayed by user_get_field() when called with user
ID '0' (aka NO_USER) was not standard. Now referencing message
ERROR_USER_BY_ID_NOT_FOUND instead.

Affects 0014815
Affected Issues
0014815
mod - core/user_api.php Diff File

MantisBT: master 5cd0e5c5

2012-10-11 02:36

dregad


Details Diff
Use standard error message

The warning message displayed by user_get_field() when called with user
ID '0' (aka NO_USER) was not standard. Now referencing message
ERROR_USER_BY_ID_NOT_FOUND instead.

Affects 0014815
Affected Issues
0014815
mod - core/user_api.php Diff File