Skip to content

v7.2.9

Latest

Choose a tag to compare

@snoro snoro released this 28 Nov 15:40
f06d2d3

Important: please check your backups. With some combinations of the mysqldump client and the database server, backups were saved without the database while the backup was shown as a success. For example: the MariaDB client tools from 11.4 with a MySQL 8 server that uses its self-signed certificate, or with a MariaDB server without TLS. In these backups the .sql files are 0 bytes. Restoring such a backup empties the database.

  • Open a backup zip and look at table_definition.sql. If it is 0 bytes, the database is not in that backup.
  • Do not restore such a backup.
  • On MySQL 8 with local_infile OFF (MySQL's default), a restore in 7.2.8 and earlier could empty tables partway. On such a server, do not restore with 7.2.8 or earlier; update to 7.2.9 first.
  • Update to 7.2.9, take a new backup, and check it the same way. If the backup fails, 7.2.9 shows the reason and a hint (see the manual: https://exment.net/docs/backup.html).

Fixes for v7.2.8, mainly to make backups safe.

  1. Backup and restore (#2352)
    • A backup whose mysqldump fails, or writes an empty file, now fails with the reason (the output of the client, with the password masked). For a TLS mismatch between the client and the server it gives a hint (MariaDB client: skip-ssl-verify-server-cert in my.cnf; MySQL client: ssl-mode).
    • A restore checks every .sql file and the connection of the mysql client before it changes anything. If a check fails, it stops with "Nothing was restored: the database was not changed." A failed import stops the restore and says it stopped midway.
    • Restoring an empty (0-byte) backup zip now stops with the same message. Before, it said success but restored nothing.
    • On MySQL 8 with local_infile OFF (MySQL's default), a restore in 7.2.8 and earlier could empty tables partway: LOAD DATA LOCAL INFILE failed after the tables were replaced. 7.2.9 checks this before it changes anything and shows a hint (local_infile=1 in the server's my.cnf, or the .env option EXMENT_DB_RESTORE_OPTIONS).
    • A failed scheduled backup is written to the log, and the next run tries again.
    • New .env settings: EXMENT_DB_DUMP_OPTIONS (added to mysqldump) and EXMENT_DB_RESTORE_OPTIONS (added to mysql), e.g. --skip-ssl-verify-server-cert or --ssl-mode=DISABLED.
    • exment:backup, exment:restore and exment:total-update end with 1 when they fail.
    • docker-exment: the PHP image has a client setting so that its MariaDB client connects to the stack's MySQL and MariaDB (docker-exment #25). Please get the latest docker-exment and rebuild the PHP image.
  2. Updates
    • When the newest version can't be installed with composer update alone (for example 7.3, which needs exment-admin-core 2.x), the dashboard, the system page and exment:update say so, with a link to the steps in the manual (#2352).
    • The update from the screen (system/call_update), which did not work, is removed (#2352).
  3. Bug fixes
    • Kanban, a board read per column ("Cards loaded per column"): filters and the keyword search run on the server, so the counts and "load more" cover all the matching records (#2344, GitHub #2185). Its help text is updated (#2346).
    • Chart legends show the Y item instead of "undefined" (#2344).
    • Notifications to a user or organization column work when the person who saves can't see that user or organization (#2344).
    • Plugin names in plugin messages are shown as text (#2344).
    • PHP 8.4: deprecation notices (implicitly nullable types) are fixed; OAuth client errors are logged as warnings (#2344).
    • The login user's button and page say "API keys & MCP" (#2325). The site's API keys page (/api_keys) has its own heading (#2346).
    • CI: PHP 8.4 lint, and tests when composer, phpstan or phpunit settings change (#2344, #2351).

日本語:
重要:バックアップを確かめてください。 mysqldump のクライアントとデータベースの組み合わせによっては、バックアップが「成功」と出ても、データベースが入っていないことがありました。たとえば、MariaDB 11.4 以降のクライアントのツールと、自己署名の証明書を使う MySQL 8、または TLS のない MariaDB の組み合わせです。このバックアップでは .sql のファイルが 0 バイトです。このバックアップでリストアすると、データベースが空になります。

  • バックアップの zip を開いて、table_definition.sql の大きさを見てください。0 バイトなら、そのバックアップにはデータベースが入っていません。
  • そのバックアップでリストアしないでください。
  • MySQL 8 で local_infile が OFF の環境(MySQL の初期値)では、7.2.8 までのリストアで、途中でテーブルが空になることがありました。この環境では、7.2.8 までのリストアは使わず、7.2.9 に上げてから行ってください。
  • 7.2.9 にアップデートして、バックアップを取り直し、同じように確かめてください。失敗したときは、7.2.9 が理由とヒントを出します(マニュアル:https://exment.net/docs/ja/backup.html)。

v7.2.8 の不具合を直す版です。おもに、バックアップを安全にしました。

  • バックアップ:mysqldump が失敗したとき、または空のファイルしかできないとき、バックアップを失敗にして理由を出します(パスワードは伏せます)。クライアントとサーバーの TLS の設定が合わないときは、ヒントも出します(#2352)。
  • リストア:データベースを変える前に、すべての .sql のファイルと、mysql のクライアントがつながるかを確かめます。だめなときは「リストアはしていません。データベースは変わっていません。」と出して止まります(#2352)。
  • 空(0 バイト)のバックアップの zip でリストアしたとき、同じお知らせを出して止まるようにしました。前は「成功」と出て、何も戻していませんでした。
  • MySQL 8 で local_infile が OFF のとき(MySQL の初期値)、7.2.8 までのリストアでは、テーブルを入れかえたあとで LOAD DATA LOCAL INFILE が失敗し、途中でテーブルが空になることがありました。7.2.9 では、データベースを変える前にこれを確かめて、ヒントを出します(サーバーの my.cnf に local_infile=1、または .env の EXMENT_DB_RESTORE_OPTIONS)。
  • 自動のバックアップが失敗したときは、ログに出して、次の回にもう一度取ります(#2352)。
  • .env に EXMENT_DB_DUMP_OPTIONS(mysqldump に足すオプション)と EXMENT_DB_RESTORE_OPTIONS(mysql に足すオプション)を足しました(#2352)。
  • docker-exment:PHP のイメージの MariaDB のクライアントが、スタックの MySQL・MariaDB につながるようにしました(docker-exment #25)。最新の docker-exment を取って、PHP のイメージを作り直してください。
  • アップデート:いちばん新しい版(たとえば 7.3)が composer update だけでは入らないとき、ダッシュボード・システムの画面・exment:update でお知らせし、マニュアルの手順へのリンクを出します。動かなくなっていた画面からの更新(system/call_update)はなくしました(#2352)。
  • カンバン(列ごとに読みこむボード):絞りこみとキーワードの検索をサーバーで行い、件数と「もっと読む」が当てはまるデータ全部になるようにしました。ヘルプの文も直しました(#2344・#2346、GitHub #2185)。
  • グラフの凡例に「undefined」と出ていたのを直しました(#2344)。
  • 保存する人から見えないユーザー・組織が入った列にも、通知が届くようにしました(#2344)。
  • プラグインのメッセージで、プラグインの名前を文字のまま出すようにしました(#2344)。
  • PHP 8.4 の非推奨の警告を直しました(#2344)。
  • ログインユーザーのボタンと画面の名前を「API キー・MCP」にしました(#2325)。サイトの API キーの画面(/api_keys)の見出しを直しました(#2346)。
  • CI の直し(#2344・#2351)。

How to update: composer update and php artisan exment:update. Then take a new backup and check it.