Signup new users automatically doesn't work

This plugin allows you to report an issue in MantisBT by sending an email to a particular mail account

Moderators: Developer, Contributor

Post Reply
che
Posts: 2
Joined: 08 Dec 2011, 21:22

Signup new users automatically doesn't work

Post by che »

but is set to yes.
Please, help to debug it, I really need this feature

Mantis 1.2.8
EmailReporting 0.8.4

(btw, maybe I should use 0.90? But I can't find it)
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Signup new users automatically doesn't work

Post by SL-Gundam »

Please go here and follow the links for the source code: http://www.mantisbt.org/wiki/doku.php/m ... lreporting

MantisBT dev team made a change in 1.2.6 which glitched the user creation process a little bit. It is fixed in 0.9.0-DEV
che
Posts: 2
Joined: 08 Dec 2011, 21:22

Re: Signup new users automatically doesn't work

Post by che »

I went to <path_to_mantis>/plugins, moved existing EmailReporting to EmailReporting.bak, then
git clone https://github.com/mantisbt-plugins/EmailReporting.git

I see in Managing plugins Email Reporting 0.9.0-DEV, but now it become a little bit worse:
- no delete of processed email from the mailbox
- still no auto add new users
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Signup new users automatically doesn't work

Post by SL-Gundam »

run bur_report_mail manually to see if it produces any errors while processing emails

also please give me more information about your environment (webserver, mail server, OS etc.)
MCBurner
Posts: 18
Joined: 14 Nov 2011, 12:56

Re: Signup new users automatically doesn't work

Post by MCBurner »

Hi.

I'm going to add my problem with the email reporting plugin to this thread as it's almost the same. Almost - because it stopped working!

The problem: I've used the plugin very successfull also with auto signup enabled. All bug reports sent via email were picked up, the user account was created if it doesn't exist and the bug report was created.
But it stopped two days ago to do so. And I really can't find the reason. The emails still come to the same box and if I check them - they are all marked as read. And that means - the plugin still picks them up.
But now only emails sent from already known users are successfully created as bug reports.

Any idea? I did no changes to Mantis since last week (no code changes, no plugins, no config changes).

Thanks in advance.

Regards.
My Mantis Installation: MantisBT-Version 1.2.8 - Schema-Version 183
Plugins: Email Reporting 0.8.4 used with WebMail (IMAP)
WebServer OS Linux 2.6.32-37 Ubuntu
PHP Version 5.3.8-nmm1
MySQL Server Version: 5.1.43
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Signup new users automatically doesn't work

Post by SL-Gundam »

The same also applies to you. We need more information about your environment (webserver, mail server, OS, version of MantisBT, version of EmailReporting etc.).
MCBurner
Posts: 18
Joined: 14 Nov 2011, 12:56

Re: Signup new users automatically doesn't work

Post by MCBurner »

I've added some info about my installation to my signature. Hope that helps.

In meantime I found out that the creation of tickets still works if I set the plugin to use the "Enable fallback to default reporter" function. The "Preferred username for new user creations " option is now set to name, but it either doesn't work with "email address" or "email address without domain name". I also can say that there are no new entries in the mantis db tables "mantis_user_table" or "mantis_bug_table". I only wanted to highlight that because in the past I had sometimes problems with tickets created by email because they were assigned to a wrong category and finally not shown in Mantis - but they were in the database.

I could live with the default reporter fallback enabled but this means I can't email to the sender directly from Mantis. Not a good idea.... :-(
My Mantis Installation: MantisBT-Version 1.2.8 - Schema-Version 183
Plugins: Email Reporting 0.8.4 used with WebMail (IMAP)
WebServer OS Linux 2.6.32-37 Ubuntu
PHP Version 5.3.8-nmm1
MySQL Server Version: 5.1.43
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Signup new users automatically doesn't work

Post by SL-Gundam »

This is the same problem as earlier specified in this topic. This is not something that suddenly stopped working

The MantisBT team was nice enough to change the name of some constants in version 1.2.6, namely:
- USERLEN renamed to DB_FIELD_SIZE_USERNAME
- REALLEN renamed to DB_FIELD_SIZE_REALNAME

So it stopped working when you upgraded MantisBT to 1.2.6 or higher

To fix this you need to upgrade EmailReporting to 0.9.0-DEV. Go here to find out how to get that version: http://www.mantisbt.org/wiki/doku.php/m ... lreporting

Keep in mind that thats a development version and so it is not recommended for production environments. So understand the risks before you update EmailReporting
MCBurner
Posts: 18
Joined: 14 Nov 2011, 12:56

Re: Signup new users automatically doesn't work

Post by MCBurner »

SL-Gundam wrote:This is the same problem as earlier specified in this topic. This is not something that suddenly stopped working
That's not correct for my situation. I've never used an older version of Mantis. Since the first day I'm using it it was 1.2.8. And the plugin worked before.
But I'm going to check the 0.9dev version which may solve it.

Regards.
My Mantis Installation: MantisBT-Version 1.2.8 - Schema-Version 183
Plugins: Email Reporting 0.8.4 used with WebMail (IMAP)
WebServer OS Linux 2.6.32-37 Ubuntu
PHP Version 5.3.8-nmm1
MySQL Server Version: 5.1.43
MCBurner
Posts: 18
Joined: 14 Nov 2011, 12:56

Re: Signup new users automatically doesn't work

Post by MCBurner »

Yup - upgrade to 0.9dev also fixed my problem. So I'm now still wondering why it worked before - but there's no need to investigate :-)
Thanks!!
My Mantis Installation: MantisBT-Version 1.2.8 - Schema-Version 183
Plugins: Email Reporting 0.8.4 used with WebMail (IMAP)
WebServer OS Linux 2.6.32-37 Ubuntu
PHP Version 5.3.8-nmm1
MySQL Server Version: 5.1.43
Post Reply