[Bug] Port 3000 forwards any path containing `/attachments/` to MinIO, so northbound uploads through 3000 fail

オープン 初心者向け
#4,423 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@lhjl-j がすでに取り組んでいます。

2026年11月25日 から。

  • #4443 @lhjl-j による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker, docker-compose, javascript, nodejs

調査の方向性

frontend/server.js から始めます。643-658 行目あたりの添付チェックは handleNorthboundProxy より前に実行され、781-788 行目あたりのルートマッチは /attachments/ を含み /api/ で始まらない任意のパスを MinIO に転送します。multipart の files フィールドをポート 3000 の /nb/v1/chat/attachments/upload に POST して再現し、MinIO XML 400 を確認してください。そのパスが northbound サービスに到達して 200 を返し、静的な /attachments/ パスは引き続き MinIO にプロキシされる状態になったら完了です。

索引モデルが issue の本文から書いたものです。

説明

Nexent Version

v2.8.5

Problem Description

Where: frontend/server.js: line 653 calls handleAttachmentProxy before the northbound proxy; lines 781-787 send every
request whose path contains /attachments/ and does not start with /api/ to MinIO (same check at line 643).

Expected: the upload is handled by the northbound service, as it is through port 5013.

Actual: HTTP 400, Content-Type: application/xml, MinIO's
<Error><Code>InvalidRequest</Code><Message>Invalid Request (request has multiple authentication types, please use one)</Message>….
The same request to port 5013 returns 200.

Reproduction Steps

with a northbound API key, POST http://localhost:3000/nb/v1/chat/attachments/upload (multipart, field files).

Additional Information

Suggestion: match only real static attachment paths (e.g. paths starting with /attachments/), or check after the northbound proxy.

Status on develop (95d7cbf, read 2026-11-24): still present. frontend/server.js calls handleAttachmentProxy (line 658) before
handleNorthboundProxy (line 659), and the route check (lines 786-788, same at 648) is unchanged.

Environment: Nexent v2.8.5, Docker Compose deployment, Windows 11 host with Docker Desktop; reproduced only on the local machine.

This report was drafted with AI assistance (Claude Code); the observations come from our local Nexent v2.8.5 deployment.

主要言語
Python
スター
6.2k
フォーク
785
平均マージ
1日 10時間
マージ済み PR(30日)
123

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ModelEngine-Group/nexent のほかの issue

ModelEngine-Group/nexent の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。