Skip to content

Commit

Permalink
Content Sync: prevent exception when creating parent nodes (#3196)
Browse files Browse the repository at this point in the history
* Content Sync: prevent excetion when creating parent nodes

---------

Co-authored-by: david g <[email protected]>
  • Loading branch information
YegorKozlov and davidjgonzalez authored Nov 15, 2023
1 parent 1ae3d51 commit 4a43485
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com)

## Added

- #3196 - Content Sync: prevent exception when creating parent nodes
- #3194 - Redirect Manager: Ignore Case value is not persisting
- #3147 - Allow usage of Dispatcher Flush Rules in AEMaaCS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

import static javax.jcr.Property.JCR_PRIMARY_TYPE;
import static org.apache.jackrabbit.JcrConstants.JCR_PRIMARYTYPE;

/**
* HTTP connection to a remote AEM instance + some sugar methods to fetch data
Expand Down Expand Up @@ -121,7 +120,7 @@ private String formatError(String uri, int statusCode, String message) {
}

public String getPrimaryType(String path) throws IOException, URISyntaxException {
URI uri = toURI(path + "/" + JCR_PRIMARY_TYPE);
URI uri = toURI(path + "/" + JCR_PRIMARYTYPE);
String str = getString(uri);
if (str.isEmpty()) {
throw new IllegalStateException("It appears " + hostConfiguration.getUsername()
Expand Down

0 comments on commit 4a43485

Please sign in to comment.