DocumentServer icon indicating copy to clipboard operation
DocumentServer copied to clipboard

Incorrect user name in version history list

Open fuzi1996 opened this issue 3 years ago • 4 comments

Do you want to request a feature or report a bug?

I think it's a bug

What is the current behavior?

user_dispaly_error

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

I use the java-spring code in this repository document-server-intergration

follow the steps to reproduce:

  1. John Smith uploaded a new file

  2. John Smith opened the file

  3. Mark Pottato opened the same file

  4. John Smith wrote his name

  5. Mark Pottato wrote his name

  6. John Smith closed edit window

  7. Mark Pottato closed edit window

The history data was

{
	"history": [
		{
			"created": "2022-05-30 19:33:17",
			"version": 1,
			"user": {
				"name": "John Smith",
				"id": "1"
			},
			"key": "-277263181"
		},
		{
			"serverVersion": "7.0.1",
			"created": "2022-05-30 11:35:00",
			"changes": [
				{
					"created": "2022-05-30 11:35:00",
					"user": {
						"name": "John Smith",
						"id": "1"
					}
				},
				{
					"created": "2022-05-30 11:35:33",
					"user": {
                                                // should display this user name
						"name": "group-2 Mark Pottato",
						"id": "2"
					}
				}
			],
			"version": 2,
			"user": {
                                // display name seem like was this value,not the newest one in changes
				"name": "John Smith",
				"id": "1"
			},
			"key": "-222804329"
		}
	],
	"currentVersion": 2
}

The store content in changes.json file was:

{
	"serverVersion": "7.0.1",
	"changes": [
		{
			"created": "2022-05-30 11:35:00",
			"user": {
				"id": "1",
				"name": "John Smith"
			}
		},
		{
			"created": "2022-05-30 11:35:33",
			"user": {
				"id": "2",
				"name": "group-2 Mark Pottato"
			}
		}
	]
}

What is the expected behavior?

possiable_current_behavior

Did this work in previous versions of DocumentServer?

No

DocumentServer version:

image

Operating System:

Windows 11

Browser version:

image

fuzi1996 avatar May 30 '22 12:05 fuzi1996

Hi, not sure that we got enought free time to localize this problem if it occurs in Java spring example, but could you check out our default nodejs example with your scenario and see if same problem can be reproduced?

ShockwaveNN avatar May 31 '22 15:05 ShockwaveNN

I try to reproduced it, the follow is the env:

documentserver: onlyoffice/documentserver:7.1.1.23
node-js-example:  the newest version(hash:05a3110c99423dafd24b6edbdda77678548c9a4d)

unfortunately, it was reproduced, so I think it must a bug

fuzi1996 avatar Jun 06 '22 09:06 fuzi1996

@fuzi1996 Thanks for explanation, seems something wrong, we'll take a closer look at this issue

ShockwaveNN avatar Jun 12 '22 08:06 ShockwaveNN

Hello, @fuzi1996 Thank you for the report. I created new issue 57575 in our private issue tracker.

matveevms avatar Jun 14 '22 13:06 matveevms