[Bug]: Link expiry date picker doesn't accept typing in a new year

Đang mở
#66,697 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
62/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, php
Lĩnh vực
frontend

Hướng nghiên cứu

Start by tracing the public share link advanced settings to the share-date-picker and native-datetime-picker--input components mentioned in the report. Reproduce typing a year such as 2028 in the YYYY field and compare it with entering a day or month. Done means the year field accepts the typed year correctly; the issue does not name a test or source file.

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

Mô tả

0. Needs triage 34-feedback bug
⚠️ This issue respects the following points: ⚠️
  • This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
  • This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
  • I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
  • I agree to follow Nextcloud's Code of Conduct.
  • I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description

When typing a new year into the share-date-picker/native-datetime-picker--input the result is completely off. I'm typing 2028 there.

nc-date-bug

Note that the sequence isn't even 1902, 1900 but 1901 here. So, the typing seems to affect more than just the lat Y digit.

Steps to reproduce
  1. For any uploaded file, create a public share link.
  2. Enter the advanced settings, enable the expiry date and click the DD or MM field there.
  3. Type a new day or month number => works as expected
  4. Click the YYYY field and type 2028 or whichever year is higher than the default value.
Expected behavior

YYYY can be updated by typing in the new value.

Nextcloud Server version

34

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

It's a hosted version by Hetzner (34.0.5) and I can't provide admin-level details, I'm sorry.
No item in v34.0.6's release notes ) seems to address this, though.

Also, I asked someone to test it on "v35, (hub 26)" and they reported not seeing this problem.

Ngôn ngữ chính
PHP
Star
37.6k
Fork
5.4k
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
623

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 nextcloud/server

Tất cả issue của nextcloud/server

Issue tương tự

Thêm issue về PHP

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.