-
Notifications
You must be signed in to change notification settings - Fork 1
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
CELDEV-1006 - refactor AttachmentURLCommand to ResourceUrlService #297
base: dev
Are you sure you want to change the base?
Conversation
src/main/java/com/celements/ressource_url/RessourceUrlService.java
Outdated
Show resolved
Hide resolved
src/main/java/com/celements/web/plugin/cmd/AttachmentURLCommand.java
Outdated
Show resolved
Hide resolved
src/main/java/com/celements/ressource_url/RessourceUrlService.java
Outdated
Show resolved
Hide resolved
src/main/java/com/celements/ressource_url/RessourceUrlService.java
Outdated
Show resolved
Hide resolved
src/main/java/com/celements/ressource_url/RessourceUrlService.java
Outdated
Show resolved
Hide resolved
src/main/java/com/celements/ressource_url/RessourceUrlService.java
Outdated
Show resolved
Hide resolved
src/main/java/com/celements/ressource_url/RessourceUrlService.java
Outdated
Show resolved
Hide resolved
src/main/java/com/celements/ressource_url/UrlRessourceNotExistException.java
Outdated
Show resolved
Hide resolved
src/main/java/com/celements/ressource_url/RessourceUrlService.java
Outdated
Show resolved
Hide resolved
src/main/java/com/celements/filebase/references/FileReference.java
Outdated
Show resolved
Hide resolved
src/main/java/com/celements/filebase/references/FileReference.java
Outdated
Show resolved
Hide resolved
src/main/java/com/celements/filebase/references/FileReferenceType.java
Outdated
Show resolved
Hide resolved
src/main/java/com/celements/filebase/uri/FileUriScriptService.java
Outdated
Show resolved
Hide resolved
src/main/java/com/celements/filebase/references/FileReference.java
Outdated
Show resolved
Hide resolved
UriBuilder addContextUri(UriBuilder uriBuilder) { | ||
Optional<XWikiDocument> currentDoc = context.getCurrentDoc().toJavaUtil(); | ||
if (currentDoc.isPresent() && uriBuilder.toString().startsWith("?")) { | ||
uriBuilder.replacePath(currentDoc.get().getURL("view", context.getXWikiContext())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this does nothing since replacePath
isn't inplace. perhaps write a test for this method.
try { | ||
XWikiDocument doc = modelAccess.getDocument(fileRef.getDocRef()); | ||
XWikiAttachment att = attachmentSrv.getAttachmentNameEqual(doc, attName); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.replace("/skin/", | ||
"/" + action.orElse(getDefaultAction()) + "/")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.replace("/skin/", | |
"/" + action.orElse(getDefaultAction()) + "/")); | |
.replace("/skin/", "/" + action.orElse(getDefaultAction()) + "/")); |
uri.queryParam("version", lastStartupTimeStamp.getFileModificationDate(path)); | ||
return uri; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uri.queryParam("version", lastStartupTimeStamp.getFileModificationDate(path)); | |
return uri; | |
return uri.queryParam("version", lastStartupTimeStamp.getFileModificationDate(path)); |
String deletedDocsHql = "select distinct ddoc.fullName" | ||
+ " from XWikiDeletedDocument as ddoc"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String deletedDocsHql = "select distinct ddoc.fullName" | |
+ " from XWikiDeletedDocument as ddoc"; | |
String deletedDocsHql = "select distinct ddoc.fullName from XWikiDeletedDocument as ddoc"; |
…java Co-authored-by: Marc Sladek <[email protected]>
….git into CELDEV-1006
[email protected]:celements/celements-core.git into CELDEV-1006
Conflicts: pom.xml src/main/java/com/celements/docform/DocFormRequestKeyParser.java src/main/resources/META-INF/components.txt src/test/java/com/celements/auth/user/CelementsUserServiceTest.java src/test/java/com/celements/docform/DocFormRequestKeyParserTest.java src/test/java/com/celements/docform/DocFormRequestKeyTest.java src/test/java/com/celements/docform/DocFormScriptServiceTest.java src/test/java/com/celements/web/plugin/cmd/PasswordRecoveryAndEmailValidationCommandTest.java
https://synjira.atlassian.net/browse/CELDEV-1006