-
Notifications
You must be signed in to change notification settings - Fork 671
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
IE11 downloaded files: Files not syncing from client to server because of Temporary attribute #6696
Comments
I wasn't able to reproduce with the Win 8.1 (x86) VM with IE11 downloaded from https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ . @jochenwezel do I need special configuration to see this behavior? |
The problem is that I can't analyze the exact error situation for more specific points which might be relevant - because of missing error messages. Maybe there is some more detail somewhere in owncloud client but hidden, which I could provide if I knew it? |
Hm, seems those files are also unknown to the @jochenwezel please start the client with the |
I started the client as following, forced a sync, but the log file keeps at 0 bytes:
After inserting 2 other new files into my owncloud directories, still nothing happens. Do I have to do any special actions before the owncloud client can log something? |
the F12 feature of the owncloud client logs at least 1 line for my sample:
|
That's client/src/csync/vio/csync_vio_local_win.cpp Lines 183 to 186 in 4d8dc13
If the stat fails, there should be another log why this happens. And we can't do much anyway in this case. (This was introduced in commit 4630244. I don't really know why we exclude the files with these flags.) |
Interesting: the attrib command doesn't show any special attributes:
But file properties dialog in windows shows at least this additional item at one of the files: Another test with powershell shows up with some better attributes listing, but still again I'd expect a difference between both files because of the non-trust-level of the first file (see explorer's file property dialog above) PS D:\...\OwnCloudSynTestFailures> Get-Item *.* | select Name, Mode, Attributes
Name Mode Attributes
---- ---- ----------
Sreenshots_myTest.pdf -a---- Archive, Temporary, Encrypted
Test-Flyer.pdf -a---- Archive, Temporary, Encrypted @ogoffart So, it's really the temporary file attribute causing the non-uploading of that file. At windows platforms, I never realized this temporary file attriute to be used by any windows application (might be different on non-windows platforms). |
following powershell statement lists all files which don't sync/upload from client to server: PS D:\OwnCloudDir> dir -Recurse | ? Attributes -Like *temporary* |
This is the same issue as #6610 (comment) :-/ See some research also there. I think we should have a 2.4.3 that does sync those FILE_ATTRIBUTE_TEMPORARY files? @jochenwezel Just curious, Is |
@guruz No, the temporary attribute doesn't change on opening the file - I also don't know any other type of action, that could do the job The only choice to remove that file attribute is to do some powershell like e.g. PS D:\...\OwnCloudSynTestFailures> $d = dir
PS D:\...\OwnCloudSynTestFailures> $d[0].Attributes
Archive, Temporary, Encrypted
PS D:\...\OwnCloudSynTestFailures> $d[0].Attributes = 'Archive, Encrypted'
PS D:\...\OwnCloudSynTestFailures> dir | select Name, Attributes
Name Attributes
---- ----------
Sreenshots_myTest.pdf Archive, Encrypted
Test-Flyer.pdf Archive, Temporary, Encrypted
PS D:\...\OwnCloudSynTestFailures> Corrected behaviour descriptions
|
After reading the issue #6610 and reviewing this issue again, I would follow @guruz and agree to remove that filter for FILE_ATTRIBUTE_TEMPORARY files (if there is no other known reason to keep it as it is), so just client/src/csync/vio/csync_vio_local_win.cpp Lines 183 to 186 in 4d8dc13
changed to client/src/csync/vio/csync_vio_local_win.cpp } else if (handle->ffd.dwFileAttributes & FILE_ATTRIBUTE_DEVICE
|| handle->ffd.dwFileAttributes & FILE_ATTRIBUTE_OFFLINE) {
file_stat->type = ItemTypeSkip; |
@jochenwezel Do you want to test with https://download.owncloud.com/desktop/testing/ownCloud-2.4.3.10180rc1-setup.exe ? |
@guruz Files with attribute "Temporary" are synced successfully with the provided RC1 exe 👍 |
Great :) Thanks for testing. |
Files downloaded from internet and saved to the owncloud sync folder on a windows system, are not uploaded to the owncloud server.
Background: e.g. IE11 marks downloaded files with following file attributes, marking it as non-trusted:

Bugs in detail
The owncloud server log doesn't contain any references caused by this issue.
The text was updated successfully, but these errors were encountered: