ankursinglaadobe commented on code in PR #12:
URL:
https://github.com/apache/sling-org-apache-sling-installer-provider-jcr/pull/12#discussion_r4703756476
##########
src/test/java/org/apache/sling/installer/provider/jcr/impl/JcrHandleUpdateTest.java:
##########
@@ -148,7 +148,7 @@ public void testHandleVariousConfigurationIdentifiers()
throws Exception {
for (String identifier : configIdentifiers) {
// When: Handling update with different identifier
- String originalUrl = JCR_INSTALL_SCHEME + "/path/to/" + identifier
+ ".config";
+ String originalUrl = JCR_INSTALL_SCHEME + APPS_BASE_PATH +
"/config/" + identifier + ".config";
Review Comment:
I was trying to address 2 bugs via this PR:
1. Configurations without extension were altering PID on writeback.
2. There was another bug which was introduced in the PR:
https://github.com/apache/sling-org-apache-sling-installer-provider-jcr/pull/10/,
i.e. the oldPath was being picked during writeback rather than the nodePath
(i.e. path with highest priority. The tests were written with this assumption
only, so the tests are also wrong IMO.
For now, I have scoped this PR to point 1. Will raise another ticket and PR
for 2nd concern.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]