jmix-framework / jmix

Jmix framework
https://www.jmix.io
Apache License 2.0
561 stars 118 forks source link

User is able to edit current document's versions #569

Open owlet1997 opened 2 years ago

owlet1997 commented 2 years ago

Environment: Jmix version: 1.0.1 Jmix Studio plugin version: 1.1.SNAPSHOT3517-212 IntelliJ version: IntelliJ IDEA 2021.2 (Ultimate Edition) OS: Windows 10 desktop app: MS Office 16 add-on version: 1.1.0-SNAPSHOT

TC:

  1. Create new project -> add add-on
  2. Run the app
  3. Open browser -> Open document browser
  4. Upload any files
  5. Select any file and click Manage versions OR click v2 near filename
  6. Select any file and click Copy to head OR upload new file -> Save
  7. Select any file and click Manage versions OR click v2 near filename
  8. Click a link of any document version
  9. Authorize in desktop app
  10. Click button for enabling editing

AR: User is able to edit this file, there is no access error

ER: user should not be able to edit file opened via link in the version's manager

glebshalyganov commented 2 years ago

If a document version is opened in a desktop application not in read-only mode, but a user still is not able to save document on a server, it is not a bug. In CUBA version there was the same behaviour.

glebshalyganov commented 2 years ago

@owlet1997 , could you please run this TestCase with the latest CUBA WebDAV and compare the behaviour?

owlet1997 commented 2 years ago

@glebshalyganov using last CUBA WebDAV with LibreOffice the behaviour is different, user isn't able to edit current document's version: image

owlet1997 commented 2 years ago

@glebshalyganov using last CUBA WebDAV with MS Office the behaviour is the same, user is able to edit current document's version but has no opportunite to save it