Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【カスタムコンテンツ】ファイル項目を含むエントリーをプレビュー時にエラーとなる #3828

Open
cu-akasakay opened this issue Sep 19, 2024 · 1 comment
Assignees
Labels
Bug バグ

Comments

@cu-akasakay
Copy link
Contributor

概要

フォーラムにて挙げられた内容になります。
https://forum.basercms.net/t/topic/1381

baserCMS version: 5.1.0

エラー内容

pathinfo(): Argument #1 ($path) must be of type string, Laminas\Diactoros\UploadedFile given

ROOT/plugins/baser-core/src/Model/Validation/BcValidation.php at line 278 (edit)

原因について

CustomContentFrontServiceの「setupPreviewForView」でEntityを生成する際、
リクエスト内のデータをそのままセットしているため、ファイル項目がUploadedFileの状態で渡り、
結果的にバリデーション処理側で例外が発生しているようです。

@ryuring ryuring added the Bug バグ label Sep 20, 2024
@ryuring
Copy link
Collaborator

ryuring commented Sep 20, 2024

@HungDV2022 こちら一度確認してもらますか?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug バグ
Projects
None yet
Development

No branches or pull requests

3 participants