Closed Bug 674162 Opened 13 years ago Closed 13 years ago

Thunderbird 5. Autoconfiguration. Some settings don't work anymore in autoconfig file.

Categories

(Thunderbird :: Account Manager, defect)

All
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: christin.livine, Unassigned)

Details

(Keywords: testcase)

Attachments

(5 files)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0.1) Gecko/20100101 Firefox/5.0.1
Build ID: 20110707182747

Steps to reproduce:

Tested on Windows 2000 SP4 French.
Found in Thunderbird 5.0 and Thunderbird 6.0b1, french and english.
Compared with Thunderbird 3.1.11.

For e-mail with @mail.pf, I'm trying to create an autoconfiguration file for live.mozillamessaging.com (Is it this server ?).
For tests, I'm creating and modifying the file mail.pf.xml in "C:\Program Files\Mozilla Thunderbird\isp\".

- Download the attached file. Copy mail.pf.xml in "C:\Program Files\Mozilla Thunderbird\isp\".
- In "C:\Program Files\Mozilla Thunderbird\isp\", add or modify settings in mail.pf.xml,
- No need connection to the network.
- Open Thunderbird for the first time (or delete all Thunderbird user settings in "C:\Document and settings\xxxxx\Application Data\" and "C:\Document and settings\xxxxx\Local Settings\Application Data\").
- "Import Wizard" window appears. Choose "Don't import anything". Click button "Next >".
- "Mail Account setup" window appears. In " Your name:" box, type abc. In "email" box, type abcdef@mail.pf. No password. Disable "Remember password". Click on button "Continue".
- Text appears: "Configuration found on Thunderbird installation". Click button "Create account".
- A warning message appears : "Programming bug. Assertion failed, see log."


I did more tests.
I modified <outgoingServer> part.
The warning message appears when :
- <username></username> doesn't work. But <username>%EMAILADDRESS%</username> works, or when there is no <username> tag.
- In case there is no <username> tag. In <authentication>. none, NTLM, GSSAPI, client-IP-address settings don't work.
- In case <username>%EMAILADDRESS%</username>. In <authentication>. none, NTLM, GSSAPI, client-IP-address settings work. But normaly, none and client-IP-address settings doen't need <username>%EMAILADDRESS%</username>.

Others settings haven't been tested. And I haven't tested with <incomingServer> part.


A way to continue.
- On warning : "Programming bug. Assertion failed, see log.". Click button OK.
- Click button "Manual config". Detailed settings appears. set the good settings. Click Create account.



Actual results:

A warning message appears : "Programming bug. Assertion failed, see log."


Expected results:

There is no problem on Thuderbird 3.1.11 with the same settings.
Documentation about autoconfiguration.
Mmmh… Official documents are scattered. They should be collected and compiled.

Presentation : https://wiki.mozilla.org/Thunderbird:Autoconfiguration:MozillaWebservicePublish
Presentation : https://wiki.mozilla.org/Thunderbird:Autoconfiguration
Presentation : https://developer.mozilla.org/en/Thunderbird/Autoconfiguration
Autoconfiguration files used when creating account with internet : https://live.mozillamessaging.com/autoconfig/v1.1/
Example : https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat
Example : https://developer.mozilla.org/en/Thunderbird/Autoconfiguration/FileFormat/HowTo
Summary: Thunderbird 5. Autoconfiguration. Some settings don't work. → Thunderbird 5. Autoconfiguration. Some settings don't work anymore in autoconfig file.
(In reply to LIVINE Christin from comment #4)
> Created attachment 548382 [details]
> In this file mail.pf.xml, outgoingServer username is empty. It doesn't work.

I think it can't be empty but I'm not sure. ccing someone who knows for sure.
Keywords: testcase
Correct
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
If outgoingServer username can't be empty, what is the solution for smtp server that don't need authentification ?
Huh.  That's a good question.  Ben?  Any ideas?  (Other than "That's a bad idea, cause it would let everyone send spam through you." ;)
<authentication>client-IP-address</authentication>
or
<authentication>smtp-after-pop</authentication>
see
https://developer.mozilla.org/en/Thunderbird/Autoconfiguration/FileFormat/HowTo
Code *does* consider this:

      if ("username" in oX ||
          // if password-based auth, we need a username,
          // so go there anyways and throw.
          oO.auth == Ci.nsMsgAuthMethod.passwordCleartext ||
          oO.auth == Ci.nsMsgAuthMethod.passwordEncrypted)
        oO.username = sanitize.string(oX.username[0]);

Just read the docs, please :)
(In reply to Ben Bucksch (:BenB) from comment #11)
> <authentication>client-IP-address</authentication>
> or
> <authentication>smtp-after-pop</authentication>
> see
> https://developer.mozilla.org/en/Thunderbird/Autoconfiguration/FileFormat/
> HowTo

None of those settings work if there is no <username> tag, or if <username> is empty.

Finally, I'll write anything in <username> like %EMAILADDRESS%, xxx…
And in Outgoing Server (SMTP), The User Name text field will be disabled and greyed.
For example :
<username>User name not required!</username>
<authentication>none</authentication>
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: