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

Đang mở Phù hợp với người mới
#2,012 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
backend

Hướng nghiên cứu

Bắt đầu từ handler /exec?action=Security.generateJnlp và tìm nơi header Last-Modified của response được đặt; grep tìm generateJnlp và Last-Modified. Định dạng ngày thành ngày HTTP RFC 1123 bằng tiếng Anh và GMT thay vì dùng locale mặc định của server. Hoàn thành nghĩa là các liên kết khởi chạy trả về một ngày GMT tiếng Anh hợp lệ dưới các locale tiếng Nga/tiếng Belarus và không có cảnh báo header hay 500 xảy ra trên Tomcat hoặc cổng 7651.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Java
Star
214
Fork
46
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của lsfusion/platform

Tất cả issue của lsfusion/platform

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.