Comments (8)
There is an ?openfile=true property being sent in the URL, I can see it when reentering to the previous visited folder and it causes the previous opened file to be reopened. This happens with any type of file, PDF, DOC, TXT, JPG, etc.
from server.
I encountered the same bug as described below.
Environment:
- Snap Version:
installed: 29.0.2snap1 (42890) 340MB -
Steps to Reproduce:
-
Open Folder in New Tab:
- Action: Browse to a folder for the first time in a new tab.
- Result: No issues.
-
Refresh Page:
- Action: Refresh the page.
- Result: No issues.
-
Open a File:
- Action: Open a file.
- Result: No issues. The URL appends with
&openfile=true
.
-
Close the File:
- Action: Close the file.
- Result:
&openfile=true
remains in the URL.
-
Refresh Page:
- Action: Refresh the page.
- Result: The file opens again, but
&openfile=true
disappears from the URL.
-
Close File Preview:
- Action: Close the file preview.
- Result:
&openfile=true
appears after the preview is closed (it disappears when the preview opens).
-
Navigate to Another Folder:
- Action: Use breadcrumb to browse to another folder.
- Result:
&openfile=true
disappears, but a "File not found" popup appears on the top right. It seems the system is still trying to open the same file.
-
Return to Original Folder:
- Action: Browse back into the original folder.
- Result: The file reopens, and
&openfile=true
appears briefly before disappearing.
-
Open Same File Again:
- Action: Open the same file again.
- Result: No issues.
&openfile=true
reappears.
-
Close the File:
- Action: Close the file.
- Result: No issues,
&openfile=true
disappears, which is the expected behavior.
-
Refresh Page Again:
- Action: Refresh the page.
- Result: The issue reoccurs from step 1.
Additional Observation:
- If a different file is opened in step 9 instead of the same file, the issue doesn't resolve and reverts to the behavior described in step 3.
Expected Behavior:
The &openfile=true
parameter should be consistently removed from the URL after closing the file, and refreshing the page should not reopen the file unless explicitly instructed to do so.
from server.
I also noticed the "File not found" message when navigating to another folder. May be related to the "&openfile=true" parameter on the URL.
from server.
Same behaviour, users need to get rid of the url parameter to stop opening the file or getting the "file not found" error message
Environment : Community Archive on a Debian 12, MariaDB, Php8.2
from server.
I have had to deal with confused users because of this bug: opening certain folders shows a "File not found" error, while for others, it immediately loads a document in Nextcloud Office, or shows a photo, or starts playing a video...
The problem doesn't appear when loading Nextcloud in a private browsing window, which suggests the issue is related to browser cache and/or local storage.
from server.
Possibly related to #43413
from server.
I have an addition to this bug.
When explicitly using an URL to a file with openfile=false
, it even overwrites the url param and opens the file nevertheless.
Steps to reproduce:
- get any file id
- create a URL like:
https://my.nextcloud.local/f/1001?openfile=false
Expected behavior:
- it shows the file in its location (folder)
Observed behavior:
- the URL changes to something like
https://my.nextcloud.local/apps/files/files/1001?dir=/Folder&openfile=true
very briefly - file is opened in editor/detail view (for pictures)
- URL changes again to
https://my.nextcloud.local/apps/files/files/1001?dir=/Folder
I can also verify this from @jcharaoui :
The problem doesn't appear when loading Nextcloud in a private browsing window, which suggests the issue is related to browser cache and/or local storage.
Doing this in a private window works as expected.
from server.
Related to #44635 as well. Coming here to report this.
from server.
Related Issues (20)
- [Bug]: Cannot upload files with mtime set to a small value HOT 2
- Safe remove shipped apps HOT 1
- Subscription Calendars: Bulk sync for identical URIs
- [Bug]: 'forbidden_chars' not respected when creating File / Directory
- [Bug]: Strange behaviour of collaborative tags HOT 3
- [Bug]: using Indesign files HOT 1
- Use Correct Foreground Colors for Texts in Dark and Light Modes HOT 6
- Usage survey settings refuse to save
- Change label: "Allow Download" HOT 1
- [Bug]: InvalidArgumentException: Index name "timestamp" for table "oc_polls_options" collides with the constraint on table "oc_login_flow_v2". HOT 3
- [Bug]: Assistant icon in top bar colored by text-color
- [Bug]: File/Folder creation dialog's name is not selected by default in NC 28 HOT 2
- [Bug]: Rename function doesnt work with macOS HOT 1
- [Bug]: Numeric folder names break move dialog box HOT 2
- [Bug]: Email notification for cancelled event does not show cancelled status
- [Bug]: Primary storage files gone unexpectedly after an upgrade mishap HOT 6
- NC29 Files app not showing all files/folder HOT 1
- Add an option to always ask before deletion HOT 6
- Always ask before deletion if trashbin is disabled
- [Bug]: After Rename The Folder, Renamed Folder Does Not Appear Without Reload HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.