Send the desktop client's launch file with a Last-Modified date of any server locale

Aperta Adatta ai principianti
#2,012 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

Parti dal gestore /exec?action=Security.generateJnlp e trova dove viene impostato l'header Last-Modified della risposta; cerca con grep generateJnlp e Last-Modified. Formatta la data come data HTTP RFC 1123 in inglese e GMT invece di usare le impostazioni locali predefinite del server. Fatto significa che i link di avvio restituiscono una data GMT inglese valida con impostazioni locali russe/bielorusse e non si verifica né un avviso sull'header né un 500 su Tomcat o sulla porta 7651.

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

Descrizione

Description

The desktop client's launch file, /exec?action=Security.generateJnlp (with or without the p= heap size and VM arguments of a memory limit), carries a Last-Modified header with a date written in the language of the server, not as HTTP requires. On a server whose locale is Russian or Belarusian the header has Cyrillic in it:

Last-Modified: пн, 12 нояб. 1956 10:00:00 GMT
  • Through the web client in Tomcat the file comes with status 200, but Tomcat drops the header and writes a warning with an exception to its log on every download: The HTTP response header [Last-Modified] with value [...] has been removed from the response because it is invalid.
  • From the application server's own HTTP server (port 7651) the request fails with status 500: java.lang.IllegalArgumentException Illegal character found in header.

On other locales the date can have non-ASCII letters too, so whether a launch link fails can depend on the link and the locale.

Reason

A server set up for Russian or Belarusian users gets an error in the log for every desktop client launch, and the 500 on the application server's HTTP server makes the launch link look broken. Java Web Start also loses the date it needs to tell whether the launch file has changed.

Fix

The launch file's Last-Modified header is an HTTP date in English, in GMT, whatever the server's locale is, and every launch link is answered without an error.

Lingua principale
Java
Stelle
214
Fork
46
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 lsfusion/platform

Tutte le issue di lsfusion/platform

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.