Bug 277611 - mail/snappymail: Fix autoconfig
Summary: mail/snappymail: Fix autoconfig
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yasuhiro Kimura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-10 13:29 UTC by Jesús Daniel Colmenares Oviedo
Modified: 2024-03-11 00:11 UTC (History)
0 users

See Also:
yasu: maintainer-feedback+
yasu: merge-quarterly+


Attachments
mail-snappymail-Fix-autoconfig.patch (2.82 KB, patch)
2024-03-10 13:29 UTC, Jesús Daniel Colmenares Oviedo
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesús Daniel Colmenares Oviedo 2024-03-10 13:29:11 UTC
Created attachment 249071 [details]
mail-snappymail-Fix-autoconfig.patch

Description:

When configuring a new domain and hit the Autoconfig button, an
error is occurred due the missing SimpleXML extension.

```
[2024-03-09 07:18:28.749][72d59c31] PHP[WARNING]: file_get_contents(https://autoconfig.disroot.org/.well-known/mail-v1.xml?emailaddress=test%40disroot.org): Failed to o
pen stream: HTTP request failed! HTTP/1.1 403 Forbidden
 /usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Providers/Domain/Autoconfig.php [line:64, code:2]
[2024-03-09 07:18:30.360][72d59c31] PHP[WARNING]: file_get_contents(https://disroot.org/.well-known/autoconfig/mail/config-v1.1.xml): Failed to open stream: HTTP reques
t failed! HTTP/1.1 404 Not Found
 /usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Providers/Domain/Autoconfig.php [line:64, code:2]
[2024-03-09 07:18:31.518][72d59c31] SERVICE[WARNING]: Call to undefined function simplexml_load_string()
```

After installing the simplexml extension, it just shows a bunch of
warnings, but Autoconfig works and configures the parameters
without user intervention.

```
[2024-03-09 07:20:27.683][64f93497] PHP[WARNING]: file_get_contents(https://autoconfig.disroot.org/.well-known/mail-v1.xml?emailaddress=test%40disroot.org): Failed to o
pen stream: HTTP request failed! HTTP/1.1 403 Forbidden
 /usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Providers/Domain/Autoconfig.php [line:64, code:2]
[2024-03-09 07:20:29.426][64f93497] PHP[WARNING]: file_get_contents(https://disroot.org/.well-known/autoconfig/mail/config-v1.1.xml): Failed to open stream: HTTP reques
t failed! HTTP/1.1 404 Not Found
 /usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Providers/Domain/Autoconfig.php [line:64, code:2]
```

QA:

* portlint: OK (looks fine.)
* testport: OK (synth: 14.0-RELEASE, amd64, GNUPG LDAP MYSQL PGSQL REDIS SQLITE3 tested)
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-03-11 00:09:05 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=746736cb56a704b1a915afe15281e5e9e7166cad

commit 746736cb56a704b1a915afe15281e5e9e7166cad
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2024-03-10 13:15:11 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2024-03-11 00:07:28 +0000

    mail/snappymail: Fix autoconfig

    When configuring a new domain and hit the Autoconfig button, an
    error is occurred due the missing SimpleXML extension.

    ```
    [2024-03-09 07:18:28.749][72d59c31] PHP[WARNING]: file_get_contents(https://autoconfig.disroot.org/.well-known/mail-v1.xml?emailaddress=test%40disroot.org): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
     /usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Providers/Domain/Autoconfig.php [line:64, code:2]
    [2024-03-09 07:18:30.360][72d59c31] PHP[WARNING]: file_get_contents(https://disroot.org/.well-known/autoconfig/mail/config-v1.1.xml): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
     /usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Providers/Domain/Autoconfig.php [line:64, code:2]
    [2024-03-09 07:18:31.518][72d59c31] SERVICE[WARNING]: Call to undefined function simplexml_load_string()
    ```

    After installing the simplexml extension, it just shows a bunch of
    warnings, but Autoconfig works and configures the parameters
    without user intervention.

    ```
    [2024-03-09 07:20:27.683][64f93497] PHP[WARNING]: file_get_contents(https://autoconfig.disroot.org/.well-known/mail-v1.xml?emailaddress=test%40disroot.org): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
     /usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Providers/Domain/Autoconfig.php [line:64, code:2]
    [2024-03-09 07:20:29.426][64f93497] PHP[WARNING]: file_get_contents(https://disroot.org/.well-known/autoconfig/mail/config-v1.1.xml): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
     /usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Providers/Domain/Autoconfig.php [line:64, code:2]
    ```
    PR:             277611
    MFH:            2024Q1

 mail/snappymail/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-03-11 00:10:06 UTC
A commit in branch 2024Q1 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=324529adaa73d18db025ae7fb993662536c86e64

commit 324529adaa73d18db025ae7fb993662536c86e64
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2024-03-10 13:15:11 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2024-03-11 00:09:46 +0000

    mail/snappymail: Fix autoconfig

    When configuring a new domain and hit the Autoconfig button, an
    error is occurred due the missing SimpleXML extension.

    ```
    [2024-03-09 07:18:28.749][72d59c31] PHP[WARNING]: file_get_contents(https://autoconfig.disroot.org/.well-known/mail-v1.xml?emailaddress=test%40disroot.org): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
     /usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Providers/Domain/Autoconfig.php [line:64, code:2]
    [2024-03-09 07:18:30.360][72d59c31] PHP[WARNING]: file_get_contents(https://disroot.org/.well-known/autoconfig/mail/config-v1.1.xml): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
     /usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Providers/Domain/Autoconfig.php [line:64, code:2]
    [2024-03-09 07:18:31.518][72d59c31] SERVICE[WARNING]: Call to undefined function simplexml_load_string()
    ```

    After installing the simplexml extension, it just shows a bunch of
    warnings, but Autoconfig works and configures the parameters
    without user intervention.

    ```
    [2024-03-09 07:20:27.683][64f93497] PHP[WARNING]: file_get_contents(https://autoconfig.disroot.org/.well-known/mail-v1.xml?emailaddress=test%40disroot.org): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
     /usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Providers/Domain/Autoconfig.php [line:64, code:2]
    [2024-03-09 07:20:29.426][64f93497] PHP[WARNING]: file_get_contents(https://disroot.org/.well-known/autoconfig/mail/config-v1.1.xml): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
     /usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Providers/Domain/Autoconfig.php [line:64, code:2]
    ```
    PR:             277611
    MFH:            2024Q1

    (cherry picked from commit 746736cb56a704b1a915afe15281e5e9e7166cad)

 mail/snappymail/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 3 Yasuhiro Kimura freebsd_committer freebsd_triage 2024-03-11 00:11:22 UTC
Committed. Thanks!