Bug 277571 - mail/snappymail: Fix error while accessing admin page
Summary: mail/snappymail: Fix error while accessing admin page
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: https://github.com/the-djmaze/snappym...
Keywords:
Depends on: 277570
Blocks:
  Show dependency treegraph
 
Reported: 2024-03-08 05:37 UTC by Jesús Daniel Colmenares Oviedo
Modified: 2024-03-08 06:58 UTC (History)
1 user (show)

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


Attachments
mail-snappymail-Fix-error-while-accessing-admin-page.patch (2.32 KB, patch)
2024-03-08 05:37 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-08 05:37:29 UTC
Created attachment 249017 [details]
mail-snappymail-Fix-error-while-accessing-admin-page.patch

Description:

On a fresh installation, the admin page returns a 500 error, indicating
a web server error. The logs reveal what the problem is, which is already
fixed in upstream [1], but until a new version of snappymail is released,
the user will see the following error:

```
RainLoop\Config\Application::SetPassword(): Argument #1 ($oPassword) must be of type SnappyMail\SensitiveString, string given, called in /usr/local/www/snappymail/snapp
ymail/v/2.35.2/app/libraries/RainLoop/Actions.php on line 672
```

[1] https://github.com/the-djmaze/snappymail/issues/1472

QA:

* portlint: OK (looks fine.)
* testport: OK (poudriere: 14.0-RELEASE, amd64, GNUPG LDAP MYSQL PGSQL REDIS SQLITE3 tested)
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-03-08 06:53:34 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=396010cb585aaaf9e3f87038f06760dece7e1fd7

commit 396010cb585aaaf9e3f87038f06760dece7e1fd7
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2024-03-08 05:16:19 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2024-03-08 06:51:21 +0000

    mail/snappymail: Fix error while accessing admin page

    On a fresh installation, the admin page returns a 500 error, indicating
    a web server error. The logs reveal what the problem is, which is already
    fixed in upstream [1], but until a new version of snappymail is released,
    the user will see the following error:

    ```
    RainLoop\Config\Application::SetPassword(): Argument #1 ($oPassword) must be of type SnappyMail\SensitiveString, string given, called in /usr/local/www/snappymail/snapp
    ymail/v/2.35.2/app/libraries/RainLoop/Actions.php on line 672
    ```

    Reference:      https://github.com/the-djmaze/snappymail/issues/1472 [1]
    PR:             277571
    MFH:            2024Q1

 mail/snappymail/Makefile                                      |  2 +-
 ...appymail_v_2.35.2_app_libraries_RainLoop_Actions.php (new) | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-03-08 06:55:36 UTC
A commit in branch 2024Q1 references this bug:

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

commit f39e1ce64c059afb686d4cd8fd4e76e1799345db
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2024-03-08 05:16:19 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2024-03-08 06:54:16 +0000

    mail/snappymail: Fix error while accessing admin page

    On a fresh installation, the admin page returns a 500 error, indicating
    a web server error. The logs reveal what the problem is, which is already
    fixed in upstream [1], but until a new version of snappymail is released,
    the user will see the following error:

    ```
    RainLoop\Config\Application::SetPassword(): Argument #1 ($oPassword) must be of type SnappyMail\SensitiveString, string given, called in /usr/local/www/snappymail/snapp
    ymail/v/2.35.2/app/libraries/RainLoop/Actions.php on line 672
    ```

    Reference:      https://github.com/the-djmaze/snappymail/issues/1472 [1]
    PR:             277571
    MFH:            2024Q1
    (cherry picked from commit 396010cb585aaaf9e3f87038f06760dece7e1fd7)

 mail/snappymail/Makefile                                      |  2 +-
 ...appymail_v_2.35.2_app_libraries_RainLoop_Actions.php (new) | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
Comment 3 Yasuhiro Kimura freebsd_committer freebsd_triage 2024-03-08 06:58:49 UTC
Committed. Thanks!