EC-CUBE / EC-CUBE/ec-cube2

郵便番号DB登録 ダウンロードのエラー検出

Open
#1,453 0 comments 0 reactions 0 assignees View on GitHub
bug enhancement
Dominant language
PHP
Stars
92
Forks
97
Avg merge
4d 2h
Merged PRs (30d)
9

Description

LC_Page_Admin_Basis_ZipInstall::lfDownloadZipFileFromJp() が、ダウンロードの失敗を検出していない。
(多分、リダイレクトの追跡も行っていない。)

404 応答の場合、エラーページの HTML を保存して、後続処理で Zip として展開を試みて落ちる。

```
2026/09/14 23:20:34 [/admin/basis/zip_install.php] Fatal error(E_USER_ERROR): /var/www/app/html/../data/downloads/tmp/ken_all.zip をオープンできません。 エラーコード: 19 No error on [/var/www/app/data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php(411)] from 172.18.0.1
login_id = admin(0)[03eb3051]
/var/www/app/html/admin/basis/zip_install.php(28): LC_Page_Admin_Basis_ZipInstall->process
/var/www/app/data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php(90): LC_Page_Admin_Basis_ZipInstall->action
/var/www/app/data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php(155): LC_Page_Admin_Basis_ZipInstall->lfExtractZipFile
/var/www/app/data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php(411): trigger_error
2026/09/14 23:21:38 [/admin/basis/zip_install.php] Fatal error(E_USER_ERROR): /var/www/app/html/../data/downloads/tmp/ken_all.zip をオープンできません。 エラーコード: 19 No error on [/var/www/app/data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php(411)] from 172.18.0.1
```

リダイレクトの追跡を有効化して上で、200 応答以外は、このメソッドでエラーで落とす方が良い。
管理画面なので、可能ならシステムエラーでなく、エラー内容を画面表示する。

#1425 レビュー中に気になった。

Contributor guide

No contributing guide indexed for this repository

Research direction

Read data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php, especially lfDownloadZipFileFromJp() and the extraction path around line 411. Reproduce the postal-code database download failure and inspect how redirects and HTTP responses are handled. Done means redirects are followed, non-200 responses stop this method with useful error information, and the admin screen shows the error when feasible.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.