Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
8e937300
Commit
8e937300
authored
5 years ago
by
uhensler
Browse files
Options
Downloads
Patches
Plain Diff
OO-4185: Avoid error when editing a newly created file in ONLYOFFICE
parent
8a7bb136
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/core/commons/services/doceditor/onlyoffice/manager/OnlyOfficeServiceImpl.java
+3
-1
3 additions, 1 deletion
...s/doceditor/onlyoffice/manager/OnlyOfficeServiceImpl.java
with
3 additions
and
1 deletion
src/main/java/org/olat/core/commons/services/doceditor/onlyoffice/manager/OnlyOfficeServiceImpl.java
+
3
−
1
View file @
8e937300
...
...
@@ -76,7 +76,7 @@ public class OnlyOfficeServiceImpl implements OnlyOfficeService {
private
static
final
Logger
log
=
Tracing
.
createLoggerFor
(
OnlyOfficeServiceImpl
.
class
);
private
static
final
String
LOCK_APP_NAME
=
"onlyoffice"
;
private
static
final
DateFormat
LAST_MODIFIED
=
new
SimpleDateFormat
(
"yyyyMMddHHmm
SS
"
);
private
static
final
DateFormat
LAST_MODIFIED
=
new
SimpleDateFormat
(
"yyyyMMddHHmm
ss
"
);
private
static
ObjectMapper
mapper
=
new
ObjectMapper
();
...
...
@@ -223,6 +223,8 @@ public class OnlyOfficeServiceImpl implements OnlyOfficeService {
@Override
public
boolean
canUpdateContent
(
VFSLeaf
vfsLeaf
,
Identity
identity
,
String
documentKey
)
{
String
currentDocumentKey
=
getDocumentKey
(
vfsLeaf
.
getMetaInfo
());
log
.
debug
(
"ONLYOFFICE currentDokumentKey: {}"
,
currentDocumentKey
);
log
.
debug
(
"ONLYOFFICE documentKey: {}"
,
documentKey
);
return
currentDocumentKey
.
equals
(
documentKey
)
&&
!
isLockedForMe
(
vfsLeaf
,
identity
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment