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

Aperta Adatta ai principianti
#4,423 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@lhjl-j ci sta già lavorando.

Dal 25/11/2026.

  • #4443 di @lhjl-j — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
docker, docker-compose, javascript, nodejs

Direzione di ricerca

Inizia in frontend/server.js: il controllo degli allegati intorno alle righe 643-658 viene eseguito prima di handleNorthboundProxy, e la corrispondenza della rotta intorno alle righe 781-788 inoltra a MinIO qualsiasi percorso che contenga /attachments/ e non inizi con /api/. Riproduci inviando tramite POST un campo multipart files a /nb/v1/chat/attachments/upload sulla porta 3000 e conferma il MinIO XML 400. Fatto quando quel percorso raggiunge il servizio northbound e restituisce 200, con i percorsi statici /attachments/ ancora inoltrati tramite proxy a MinIO.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
6.2k
Fork
785
Merge medio
1g 10h
PR unite (30g)
123

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ModelEngine-Group/nexent

Tutte le issue di ModelEngine-Group/nexent

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.