Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fpichler
Copy link
Member

@fpichler fpichler commented Feb 2, 2022

@msladek msladek assigned fpichler and unassigned msladek Feb 2, 2022
@fpichler fpichler changed the title CELDEV-1006 - refactor AttachmentURLCommand to RessourceUrlService CELDEV-1006 - refactor AttachmentURLCommand to ResourceUrlService Feb 2, 2022
@fpichler fpichler requested a review from msladek February 8, 2022 10:46
@fpichler fpichler assigned msladek and unassigned fpichler Feb 8, 2022
UriBuilder addContextUri(UriBuilder uriBuilder) {
Optional<XWikiDocument> currentDoc = context.getCurrentDoc().toJavaUtil();
if (currentDoc.isPresent() && uriBuilder.toString().startsWith("?")) {
uriBuilder.replacePath(currentDoc.get().getURL("view", context.getXWikiContext()));
Copy link
Member

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);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Comment on lines +154 to +155
.replace("/skin/",
"/" + action.orElse(getDefaultAction()) + "/"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.replace("/skin/",
"/" + action.orElse(getDefaultAction()) + "/"));
.replace("/skin/", "/" + action.orElse(getDefaultAction()) + "/"));

Comment on lines +156 to +157
uri.queryParam("version", lastStartupTimeStamp.getFileModificationDate(path));
return uri;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
uri.queryParam("version", lastStartupTimeStamp.getFileModificationDate(path));
return uri;
return uri.queryParam("version", lastStartupTimeStamp.getFileModificationDate(path));

Comment on lines +591 to +592
String deletedDocsHql = "select distinct ddoc.fullName"
+ " from XWikiDeletedDocument as ddoc";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
String deletedDocsHql = "select distinct ddoc.fullName"
+ " from XWikiDeletedDocument as ddoc";
String deletedDocsHql = "select distinct ddoc.fullName from XWikiDeletedDocument as ddoc";

@msladek msladek assigned fpichler and unassigned msladek Feb 9, 2022
fpichler and others added 9 commits February 9, 2022 05:33
[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
@fpichler fpichler marked this pull request as draft May 12, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants