AlistGo / AlistGo/alist

从手机上传到本机存储的文件修改时间异常

Abierto
#8,002 2 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
Go
Estrellas
50.2k
Forks
7.9k
Merge medio
7 d 21 h
PR fusionados (30 d)
6

Descripción

### Please make sure of the following things

- [x] I have read the [documentation](https://alist.nn.ci).
我已经阅读了[文档](https://alist.nn.ci)。

- [x] I'm sure there are no duplicate issues or discussions.
我确定没有重复的issue或讨论。

- [x] I'm sure it's due to `AList` and not something else(such as [Network](https://alist.nn.ci/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host) ,`Dependencies` or `Operational`).
我确定是`AList`的问题,而不是其他原因(例如[网络](https://alist.nn.ci/zh/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host),`依赖`或`操作`)。

- [x] I'm sure this issue is not fixed in the latest version.
我确定这个问题在最新版本中没有被修复。

### AList Version / AList 版本

3.42.0

### Driver used / 使用的存储驱动

本机存储

### Describe the bug / 问题描述

使用手机浏览器(via,chrome等)上传到Windows本机存储的文件修改时间均显示为‎ "2185‎/‎7‎/‎22‎ ‏‎7:34:33"
![Image](https://github.com/user-attachments/assets/97ddaf52-1afd-4349-a8f0-26fba9944809)

### Reproduction / 复现链接

使用手机浏览器上传任意文件(Stream/Form)

### Config / 配置

{
"force": false,
"site_url": "",
"cdn": "",
"jwt_secret": "ap7zITMTBWSydS7W",
"token_expires_in": 48,
"database": {
"type": "sqlite3",
"host": "",
"port": 0,
"user": "",
"password": "",
"name": "",
"db_file": "data\\data.db",
"table_prefix": "x_",
"ssl_mode": "",
"dsn": ""
},
"meilisearch": {
"host": "http://localhost:7700",
"api_key": "",
"index_prefix": ""
},
"scheme": {
"address": "0.0.0.0",
"http_port": 1145,
"https_port": -1,
"force_https": false,
"cert_file": "",
"key_file": "",
"unix_file": "",
"unix_file_perm": ""
},
"temp_dir": "data\\temp",
"bleve_dir": "data\\bleve",
"dist_dir": "",
"log": {
"enable": true,
"name": "data\\log\\log.log",
"max_size": 50,
"max_backups": 30,
"max_age": 28,
"compress": false
},
"delayed_start": 0,
"max_connections": 0,
"max_concurrency": 64,
"tls_insecure_skip_verify": true,
"tasks": {
"download": {
"workers": 5,
"max_retry": 1,
"task_persistant": false
},
"transfer": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"upload": {
"workers": 5,
"max_retry": 0,
"task_persistant": false
},
"copy": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"decompress": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"decompress_upload": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"allow_retry_canceled": false
},
"cors": {
"allow_origins": [
"*"
],
"allow_methods": [
"*"
],
"allow_headers": [
"*"
]
},
"s3": {
"enable": false,
"port": 5246,
"ssl": false
},
"ftp": {
"enable": false,
"listen": ":5221",
"find_pasv_port_attempts": 50,
"active_transfer_port_non_20": false,
"idle_timeout": 900,
"connection_timeout": 30,
"disable_active_mode": false,
"default_transfer_binary": false,
"enable_active_conn_ip_check": true,
"enable_pasv_conn_ip_check": true
},
"sftp": {
"enable": false,
"listen": ":5222"
},
"last_launched_version": "v3.42.0"
}

### Logs / 日志

DEBU[2025-02-16 11:27:43]/source/server/middlewares/auth.go:72 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:ivan PwdHash:b760f07b601858432b9ee91a663499ae955e1c8c081a1b746cc02ec485d626ca PwdTS:1739674660 Salt:NsJgweeXXG32QNET Password: BasePath:/ Role:2 Disabled:false Permission:16383 OtpSecret: SsoID: Authn:}
DEBU[2025-02-16 11:27:43]/source/internal/op/path.go:25 github.com/alist-org/alist/v3/internal/op.GetStorageAndActualPath() use storage: /Ivan
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:165 github.com/alist-org/alist/v3/internal/op.Get() op.Get /Desktop/ubn_sc.pdf
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:108 github.com/alist-org/alist/v3/internal/op.List() op.List /Desktop
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:165 github.com/alist-org/alist/v3/internal/op.Get() op.Get /Desktop
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:120 github.com/alist-org/alist/v3/internal/op.List() list dir: &{ID: Path:C:\Users\Ivan\Desktop Name:Desktop Size:0 Modified:2025-02-16 11:23:02.4631245 +0800 CST Ctime:2025-02-13 16:50:13.3487142 +0800 CST IsFolder:true HashInfo:null}
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:226 github.com/alist-org/alist/v3/internal/op.Get() cant find obj with name: ubn_sc.pdf
DEBU[2025-02-16 11:27:43]/source/internal/op/path.go:25 github.com/alist-org/alist/v3/internal/op.GetStorageAndActualPath() use storage: /Ivan
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:165 github.com/alist-org/alist/v3/internal/op.Get() op.Get /Desktop/ubn_sc.pdf
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:108 github.com/alist-org/alist/v3/internal/op.List() op.List /Desktop
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:165 github.com/alist-org/alist/v3/internal/op.Get() op.Get /Desktop
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:120 github.com/alist-org/alist/v3/internal/op.List() list dir: &{ID: Path:C:\Users\Ivan\Desktop Name:Desktop Size:0 Modified:2025-02-16 11:23:02.4631245 +0800 CST Ctime:2025-02-13 16:50:13.3487142 +0800 CST IsFolder:true HashInfo:null}
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:226 github.com/alist-org/alist/v3/internal/op.Get() cant find obj with name: ubn_sc.pdf
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:165 github.com/alist-org/alist/v3/internal/op.Get() op.Get /Desktop
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:165 github.com/alist-org/alist/v3/internal/op.Get() op.Get /Desktop
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:568 github.com/alist-org/alist/v3/internal/op.Put() put file [ubn_sc.pdf] done
[GIN] 2025/02/16 - 11:27:43 | 200 | 164.8469ms | 192.168.31.1 | PUT "/api/fs/put"
DEBU[2025-02-16 11:27:43]/source/server/middlewares/auth.go:72 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:ivan PwdHash:b760f07b601858432b9ee91a663499ae955e1c8c081a1b746cc02ec485d626ca PwdTS:1739674660 Salt:NsJgweeXXG32QNET Password: BasePath:/ Role:2 Disabled:false Permission:16383 OtpSecret: SsoID: Authn:}
DEBU[2025-02-16 11:27:43]/source/internal/op/path.go:25 github.com/alist-org/alist/v3/internal/op.GetStorageAndActualPath() use storage: /Ivan
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:108 github.com/alist-org/alist/v3/internal/op.List() op.List /Desktop
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:165 github.com/alist-org/alist/v3/internal/op.Get() op.Get /Desktop
DEBU[2025-02-16 11:27:43]/source/internal/op/fs.go:120 github.com/alist-org/alist/v3/internal/op.List() list dir: &{ID: Path:C:\Users\Ivan\Desktop Name:Desktop Size:0 Modified:2025-02-16 11:27:43.4307151 +0800 CST Ctime:2025-02-13 16:50:13.3487142 +0800 CST IsFolder:true HashInfo:null}
DEBU[2025-02-16 11:27:43]/source/internal/op/path.go:25 github.com/alist-org/alist/v3/internal/op.GetStorageAndActualPath() use storage: /Ivan
[GIN] 2025/02/16 - 11:27:43 | 200 | 7.6289ms | 192.168.31.1 | POST "/api/fs/list"
INFO[2025-02-16 11:27:49]/source/internal/db/db.go:36 github.com/alist-org/alist/v3/internal/db.Close() closing db

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.