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

[Bug]: File out of sync after renaming and web text editor 24.0.7 #3964

Closed
6 of 9 tasks
dhcgn opened this issue Dec 18, 2022 · 2 comments
Closed
6 of 9 tasks

[Bug]: File out of sync after renaming and web text editor 24.0.7 #3964

dhcgn opened this issue Dec 18, 2022 · 2 comments
Labels

Comments

@dhcgn
Copy link

dhcgn commented Dec 18, 2022

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

I change a file in the web frontend and the sync file was different to the server file version.

Steps to reproduce

  1. File shared_profile.ps1.age saved through next cloud windows client.
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA4NG02cXhrSjFBRUxvN2J1
alZoT1c5aEJBcmZ0L2kzWFZOaGx6KzNSaDFFCnhnMDJldFVvMXgwTWpSN1hPbkQx
T2k1U0pCdmxiWkROOUpzSmJ4dTNSemMKLS0tIHZQYUEwUE8zSDFPYW5XVGZ3OTJZ
bTVuRGRzOTB4NEZrUmthZS80b3FXdTgKD5WI4VGuRnPHwfy1fsFXDCFqT0ZlZ4k5
VPbdf3d0x7laQlZo1FzO2clTnOsHO5fbOVVsiRpDEIU1
-----END AGE ENCRYPTED FILE-----
  1. File name changed in server web ui from shared_profile.ps1.age to shared_profile.ps1.age.txt
  2. Modifed file in server web ui with xx with buildin test editor
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA4NG02cXhrSjFBRUxvN2J1
alZoT1c5aEJBcmZ0L2kzWFZOaGx6KzNSaDFFCnhnMDJldFVvMXgwTWpSN1hPbkQx
T2k1U0pCdmxiWkROOUpzSmJ4dTNSemMKLS0txxIHZQYUEwUE8zSDFPYW5XVGZ3OTJZ
bTVuRGRzOTB4NEZrUmthZS80b3FXdTgKD5WI4VGuRnPHwfy1fsFXDCFqT0ZlZ4k5
VPbdf3d0x7laQlZo1FzO2clTnOsHO5fbOVVsiRpDEIU1
-----END AGE ENCRYPTED FILE-----
4c4
< T2k1U0pCdmxiWkROOUpzSmJ4dTNSemMKLS0tIHZQYUEwUE8zSDFPYW5XVGZ3OTJZ
---
> T2k1U0pCdmxiWkROOUpzSmJ4dTNSemMKLS0txxIHZQYUEwUE8zSDFPYW5XVGZ3OTJZ
  1. File synced with next cloud windows client
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA4NG02cXhrSjFBRUxvN2J1
alZoT1c5aEJBcmZ0L2kzWFZOaGx6KzNSaDFFCnhnMDJldFVvMXgwTWpSN1hPbkQx
T2k1U0pCdmxiWkROOUpzSmJ4dTNSemMKLS0tIHZQYUEwUE8zSDFPYW5XVGZ3OTJZ
bTVuRGRzOTB4NEZrUmthZS80b3FXdTgKD5WI4VGuRnPHwfy1fsFXDCFqT0ZlZ4k5
VPbdf3d0x7laQlZo1FzO2clTnOsHO5fbOVVsiRpDEIU1
-----END AGE ENCRYPTED FILE-
  1. Local file and file in web ui are out of sync
4c4
< T2k1U0pCdmxiWkROOUpzSmJ4dTNSemMKLS0txxIHZQYUEwUE8zSDFPYW5XVGZ3OTJZ
---
> T2k1U0pCdmxiWkROOUpzSmJ4dTNSemMKLS0tIHZQYUEwUE8zSDFPYW5XVGZ3OTJZ
7c7
< -----END AGE ENCRYPTED FILE-----
---
> -----END AGE ENCRYPTED FILE-

Changed local file to old state:

-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA4NG02cXhrSjFBRUxvN2J1
alZoT1c5aEJBcmZ0L2kzWFZOaGx6KzNSaDFFCnhnMDJldFVvMXgwTWpSN1hPbkQx
T2k1U0pCdmxiWkROOUpzSmJ4dTNSemMKLS0tIHZQYUEwUE8zSDFPYW5XVGZ3OTJZ
bTVuRGRzOTB4NEZrUmthZS80b3FXdTgKD5WI4VGuRnPHwfy1fsFXDCFqT0ZlZ4k5
VPbdf3d0x7laQlZo1FzO2clTnOsHO5fbOVVsiRpDEIU1
-----END AGE ENCRYPTED FILE-----

Changes appear in web front end:

image

Expected behavior

These files are identical

Installation method

Other Community project

Operating system

None

PHP engine version

PHP 8.0

Web server

Nginx

Database engine version

MySQL

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

None

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

<?xml version="1.0" encoding="UTF-8"?>
<ocs>
 <meta>
  <status>ok</status>
  <statuscode>200</statuscode>
  <message>OK</message>
 </meta>
 <data>
  <nextcloud>
   <system>
    <version>24.0.7.1</version>
    <theme>hetzner</theme>
    <enable_avatars>yes</enable_avatars>
    <enable_previews>yes</enable_previews>
    <memcache.local>\OC\Memcache\APCu</memcache.local>
    <memcache.distributed>\OC\Memcache\Redis</memcache.distributed>
    <filelocking.enabled>yes</filelocking.enabled>
    <memcache.locking>\OC\Memcache\Redis</memcache.locking>
    <debug>no</debug>
    <freespace>951914725376</freespace>
    <cpuload>N/A</cpuload>
    <mem_total>-1024</mem_total>
    <mem_free>-1024</mem_free>
    <swap_total>-1024</swap_total>
    <swap_free>-1024</swap_free>
    <apps>
     <num_installed>48</num_installed>
     <num_updates_available>1</num_updates_available>
     <app_updates>
      <contacts>4.2.3</contacts>
     </app_updates>
    </apps>
   </system>
   <storage>
    <num_users>3</num_users>
    <num_files>119754</num_files>
    <num_storages>6</num_storages>
    <num_storages_local>1</num_storages_local>
    <num_storages_home>3</num_storages_home>
    <num_storages_other>2</num_storages_other>
   </storage>
   <shares>
    <num_shares>11</num_shares>
    <num_shares_user>0</num_shares_user>
    <num_shares_groups>0</num_shares_groups>
    <num_shares_link>11</num_shares_link>
    <num_shares_mail>0</num_shares_mail>
    <num_shares_room>0</num_shares_room>
    <num_shares_link_no_password>11</num_shares_link_no_password>
    <num_fed_shares_sent>0</num_fed_shares_sent>
    <num_fed_shares_received>0</num_fed_shares_received>
    <permissions_3_17>11</permissions_3_17>
   </shares>
  </nextcloud>
  <server>
   <webserver>nginx</webserver>
   <php>
    <version>8.0</version>
    <memory_limit>1073741824</memory_limit>
    <max_execution_time>10800</max_execution_time>
    <upload_max_filesize>10737418240</upload_max_filesize>
    <opcache>
     <opcache_enabled>1</opcache_enabled>
     <cache_full/>
     <restart_pending/>
     <restart_in_progress/>
     <memory_usage>
      <used_memory>66951000</used_memory>
      <free_memory>201463496</free_memory>
      <wasted_memory>20960</wasted_memory>
      <current_wasted_percentage>0.0078082084655762</current_wasted_percentage>
     </memory_usage>
     <interned_strings_usage>
      <buffer_size>25165360</buffer_size>
      <used_memory>4979760</used_memory>
      <free_memory>20185600</free_memory>
      <number_of_strings>80391</number_of_strings>
     </interned_strings_usage>
     <opcache_statistics>
      <num_cached_scripts>2231</num_cached_scripts>
      <num_cached_keys>4278</num_cached_keys>
      <max_cached_keys>16229</max_cached_keys>
      <hits>106788472</hits>
      <start_time>1669786698</start_time>
      <last_restart_time>0</last_restart_time>
      <oom_restarts>0</oom_restarts>
      <hash_restarts>0</hash_restarts>
      <manual_restarts>0</manual_restarts>
      <misses>2277</misses>
      <blacklist_misses>0</blacklist_misses>
      <blacklist_miss_ratio>0</blacklist_miss_ratio>
      <opcache_hit_rate>99.997867792837</opcache_hit_rate>
     </opcache_statistics>
     <jit>
      <enabled/>
      <on/>
      <kind>5</kind>
      <opt_level>4</opt_level>
      <opt_flags>6</opt_flags>
      <buffer_size>0</buffer_size>
      <buffer_free>0</buffer_free>
     </jit>
    </opcache>
    <apcu>
     <cache>
      <num_slots>4099</num_slots>
      <ttl>0</ttl>
      <num_hits>4987014</num_hits>
      <num_misses>50989</num_misses>
      <num_inserts>49870</num_inserts>
      <num_entries>833</num_entries>
      <expunges>0</expunges>
      <start_time>1669786698</start_time>
      <mem_size>391240</mem_size>
      <memory_type>mmap</memory_type>
     </cache>
     <sma>
      <num_seg>1</num_seg>
      <seg_size>33554312</seg_size>
      <avail_mem>33099920</avail_mem>
     </sma>
    </apcu>
    <extensions>
     <element>Core</element>
     <element>date</element>
     <element>libxml</element>
     <element>openssl</element>
     <element>pcre</element>
     <element>sqlite3</element>
     <element>zlib</element>
     <element>ctype</element>
     <element>curl</element>
     <element>dom</element>
     <element>fileinfo</element>
     <element>filter</element>
     <element>ftp</element>
     <element>hash</element>
     <element>iconv</element>
     <element>json</element>
     <element>mbstring</element>
     <element>SPL</element>
     <element>PDO</element>
     <element>pdo_sqlite</element>
     <element>session</element>
     <element>posix</element>
     <element>readline</element>
     <element>Reflection</element>
     <element>standard</element>
     <element>SimpleXML</element>
     <element>Phar</element>
     <element>tokenizer</element>
     <element>xml</element>
     <element>xmlreader</element>
     <element>xmlwriter</element>
     <element>mysqlnd</element>
     <element>cgi-fcgi</element>
     <element>apcu</element>
     <element>bcmath</element>
     <element>exif</element>
     <element>gd</element>
     <element>gmp</element>
     <element>imagick</element>
     <element>intl</element>
     <element>ldap</element>
     <element>memcached</element>
     <element>mysqli</element>
     <element>pcntl</element>
     <element>pdo_mysql</element>
     <element>pdo_pgsql</element>
     <element>redis</element>
     <element>smbclient</element>
     <element>sodium</element>
     <element>zip</element>
     <element>libsmbclient</element>
     <element>Zend OPcache</element>
    </extensions>
   </php>
   <database>
    <type>mysql</type>
    <version>10.5</version>
    <size>182910976</size>
   </database>
  </server>
  <activeUsers>
   <last5minutes>2</last5minutes>
   <last1hour>2</last1hour>
   <last24hours>2</last24hours>
  </activeUsers>
 </data>
</ocs>

List of activated Apps

<extensions>
<element>Core</element>
<element>date</element>
<element>libxml</element>
<element>openssl</element>
<element>pcre</element>
<element>sqlite3</element>
<element>zlib</element>
<element>ctype</element>
<element>curl</element>
<element>dom</element>
<element>fileinfo</element>
<element>filter</element>
<element>ftp</element>
<element>hash</element>
<element>iconv</element>
<element>json</element>
<element>mbstring</element>
<element>SPL</element>
<element>PDO</element>
<element>pdo_sqlite</element>
<element>session</element>
<element>posix</element>
<element>readline</element>
<element>Reflection</element>
<element>standard</element>
<element>SimpleXML</element>
<element>Phar</element>
<element>tokenizer</element>
<element>xml</element>
<element>xmlreader</element>
<element>xmlwriter</element>
<element>mysqlnd</element>
<element>cgi-fcgi</element>
<element>apcu</element>
<element>bcmath</element>
<element>exif</element>
<element>gd</element>
<element>gmp</element>
<element>imagick</element>
<element>intl</element>
<element>ldap</element>
<element>memcached</element>
<element>mysqli</element>
<element>pcntl</element>
<element>pdo_mysql</element>
<element>pdo_pgsql</element>
<element>redis</element>
<element>smbclient</element>
<element>sodium</element>
<element>zip</element>
<element>libsmbclient</element>
<element>Zend OPcache</element>
</extensions>

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

No response

Additional info

This instance is a managed hosted from Hetzner
https://www.hetzner.com/storage/storage-share

@dhcgn dhcgn added 0. Needs triage bug Something isn't working labels Dec 18, 2022
@szaimen szaimen transferred this issue from nextcloud/server Mar 17, 2023
@mejo-
Copy link
Member

mejo- commented May 14, 2023

Dear @dhcgn, thanks for your report and sorry for not getting back to you earlier. It sounds like you changed the local file while editing the version on your Nextcloud instance at the same time. This creates a conflict because there's changes on both versions. Nextcloud doesn't know which change should take precedence. That's why the Text editor asks for manual resolution.

The Text app nowadays marks files as locked while editing them and I vaguely remember that the support for Windows to respect the file lock was improved as well.

If you're still able to reproduce the issue, please let us know the details how you changed the local file back to original state.

@blizzz
Copy link
Member

blizzz commented Jun 23, 2023

As there is no feedback since a while I will close this ticket. If it still happens, please provide the requested information.

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