Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After modifying the access authentication code on the browser side, the other side does not refresh #8028

Closed
3 tasks done
HowcanoeWang opened this issue Apr 18, 2023 · 5 comments
Assignees
Labels
Milestone

Comments

@HowcanoeWang
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

如题,F5,关闭,最小化等任何操作都会提示,通过托盘右键退出也失效

image

Expected result

任务管理器杀后台可以解决,但是还是希望软件内能处理这个异常操作

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.8.5
- Operating System: Win
- Browser (if used): Edge

Log file

无异常报错

      ___                                   ___           ___           ___
     /  /\        ___           ___        /__/\         /  /\         /__/\
    /  /:/_      /  /\         /__/|       \  \:\       /  /::\        \  \:\
   /  /:/ /\    /  /:/        |  |:|        \  \:\     /  /:/\:\        \  \:\
  /  /:/ /::\  /__/::\        |  |:|    ___  \  \:\   /  /:/~/::\   _____\__\:\
 /__/:/ /:/\:\ \__\/\:\__   __|__|:|   /__/\  \__\:\ /__/:/ /:/\:\ /__/::::::::\
 \  \:\/:/~/:/    \  \:\/\ /__/::::\   \  \:\ /  /:/ \  \:\/:/__\/ \  \:\~~\~~\/
  \  \::/ /:/      \__\::/    ~\~~\:\   \  \:\  /:/   \  \::/       \  \:\  ~~~
   \__\/ /:/       /__/:/       \  \:\   \  \:\/:/     \  \:\        \  \:\
     /__/:/        \__\/         \__\/    \  \::/       \  \:\        \  \:\
     \__\/                                 \__\/         \__\/         \__\/
I 2023/04/18 17:04:23 runtime.go:51: kernel is booting:
    * ver [2.8.5]
    * arch [amd64]
    * os [Microsoft Windows 11 Pro]
    * pid [46644]
    * runtime mode [prod]
    * working directory [C:\Program Files\SiYuan\resources]
    * read only [false]
    * container [std]
    * database [ver=20220501]
    * workspace directory [C:\Users\hwang\Documents\SiYuan]
I 2023/04/18 17:04:23 conf.go:222: upgraded from version [2.8.4] to [2.8.5]
I 2023/04/18 17:04:23 conf.go:338: OpenAI API enabled
    baseURL=https://api.openai.com/v1
    timeout=60s
    proxy=
    maxTokens=0
I 2023/04/18 17:04:23 conf.go:358: user has enabled [Automatically upload error messages and diagnostic data]
I 2023/04/18 17:04:23 runtime.go:97: use network proxy [system]
I 2023/04/18 17:04:23 serve.go:111: kernel [pid=46644] http server [0.0.0.0:49703] is booting
I 2023/04/18 17:04:23 working.go:401: built-in pandoc [ver=2.19.2, bin=C:\Users\hwang\Documents\SiYuan\temp\pandoc\bin\pandoc.exe]
I 2023/04/18 17:04:23 tesseract.go:152: tesseract-ocr enabled [ver=v5.0.1.20220118, maxSize=2.0 MB, langs=chi_sim+chi_sim_vert+chi_tra+chi_tra_vert+eng+osd]
I 2023/04/18 17:04:23 sync.go:150: sync before boot
I 2023/04/18 17:04:25 serve.go:124: reverse proxy server [0.0.0.0:6806] is booting
W 2023/04/18 17:04:32 repository.go:1292: index data repo before cloud sync elapsed [8647ms]
I 2023/04/18 17:04:32 repository.go:975: boot get sync cloud files elapsed [8.93s]
I 2023/04/18 17:04:32 blocktree.go:401: read block tree [16 MB] to [C:\Users\hwang\Documents\SiYuan\temp\blocktree], elapsed [0.07s]
I 2023/04/18 17:04:32 conf.go:673: database size [234 MB], tree/block count [1005/51883]
I 2023/04/18 17:04:32 working.go:157: kernel booted
I 2023/04/18 17:04:33 box.go:74: auto stat [trees=1005, blocks=51883, dataSize=83 MB, assetsSize=20 MB]
I 2023/04/18 17:04:33 disk.go:33: disk usage [total=2.0 TB, used=908 GB, free=1.1 TB]
I 2023/04/18 17:07:05 repository.go:1077: synced data repo [provider=0, ufc=1, dfc=1, ucc=1, dcc=0, ub=148 kB, db=156 kB] in [2.01s]
I 2023/04/18 17:11:58 index.go:132: rebuilt database for notebook [20210808180117-czj9bvb] in [0.01s], tree [count=55, size=1.2 MB]
I 2023/04/18 17:11:59 index.go:205: resolved refs [324] in [235ms]
I 2023/04/18 17:13:00 repository.go:1077: synced data repo [provider=0, ufc=2, dfc=1, ucc=2, dcc=0, ub=149 kB, db=156 kB] in [4.00s]
I 2023/04/18 17:15:56 repository.go:1077: synced data repo [provider=0, ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=156 kB] in [0.46s]
I 2023/04/18 17:16:43 repository.go:1077: synced data repo [provider=0, ufc=1, dfc=1, ucc=0, dcc=0, ub=144 kB, db=156 kB] in [1.69s]
I 2023/04/18 17:24:44 repository.go:1077: synced data repo [provider=0, ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=156 kB] in [0.36s]
I 2023/04/18 17:32:46 repository.go:1077: synced data repo [provider=0, ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=156 kB] in [0.49s]
I 2023/04/18 17:40:47 repository.go:1077: synced data repo [provider=0, ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=156 kB] in [0.41s]
I 2023/04/18 17:56:50 repository.go:1077: synced data repo [provider=0, ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=156 kB] in [0.86s]
I 2023/04/18 18:28:54 repository.go:1077: synced data repo [provider=0, ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=156 kB] in [0.53s]

More information

No response

@Soltus
Copy link
Contributor

Soltus commented Apr 18, 2023

不应当在伺服端修改鉴权码,这是本该在伺服端屏蔽的设置项

@HowcanoeWang
Copy link
Author

不应当在伺服端修改鉴权码,这是本该在伺服端屏蔽的设置项

那或者在伺服端屏蔽鉴权码修改选项

@Soltus
Copy link
Contributor

Soltus commented Apr 18, 2023

赞同

@88250
Copy link
Member

88250 commented Apr 18, 2023

  • 如果是 Docker 伺服的话一般是启动参数上增加访问授权码
  • 如果是其他情况伺服的话应用本体可以在设置中调整

所以浏览器端似乎确实应该屏蔽这个修改选项。

@88250
Copy link
Member

88250 commented Apr 19, 2023

这样吧,暂时还是不做大的调整了,我们先解决浏览器端修改访问鉴权码以后其他端未刷新的问题。

@88250 88250 changed the title 通过伺服浏览器修改鉴权码,导致主机任何操作都卡在访问鉴权失败,请刷新页面 After modifying the access authentication code on the browser side, the other side does not refresh Apr 19, 2023
@88250 88250 self-assigned this Apr 19, 2023
@88250 88250 added the Bug label Apr 19, 2023
@88250 88250 added this to the 2.8.6 milestone Apr 19, 2023
88250 added a commit that referenced this issue Apr 19, 2023
@88250 88250 closed this as completed Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants