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

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

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java
領域
backend

調査の方向性

/exec?action=Security.generateJnlp ハンドラーから始めて、レスポンスの Last-Modified ヘッダーが設定される場所を見つけてください。generateJnlp と Last-Modified を grep してください。日付は、サーバーのデフォルトロケールを使うのではなく、英語および GMT の RFC 1123 HTTP 日付としてフォーマットしてください。完了とは、ロシア語/ベラルーシ語ロケールで起動リンクが有効な英語の GMT 日付を返し、Tomcat でもポート 7651 でもヘッダー警告や 500 が発生しないことを意味します。

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

説明

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.

主要言語
Java
スター
214
フォーク
46
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

lsfusion/platform のほかの issue

lsfusion/platform の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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