Skip to content

Commit

Permalink
Merge branch 'main' into issue-31397-broken-vanity-url
Browse files Browse the repository at this point in the history
  • Loading branch information
zJaaal authored Feb 20, 2025
2 parents fb6572f + 7d4e463 commit be2c826
Show file tree
Hide file tree
Showing 11 changed files with 736 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,9 +646,8 @@ public InputStream writeObject(final VelocityResourceKey key)
throw new ResourceNotFoundException("cannot find content version info for key: " + key);
}

//if time machine is running, we need to force get the latest working version to guarantee the correct rendered content matching the json portion of the response
final ContentletVersionInfo contentletVersionInfo = info.get();
final String inode = (key.mode.showLive && TimeMachineUtil.isNotRunning() )
final String inode = key.mode.showLive
? contentletVersionInfo.getLiveInode()
: contentletVersionInfo.getWorkingInode();

Expand Down
12 changes: 12 additions & 0 deletions test-karate/src/test/java/graphql/ftm/deleteFolder.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Feature: Delete a Folder
Scenario: Delete a folder on the given path if exists
Given url baseUrl + '/api/v1/folder/default'
And headers commonHeaders
And request
"""
["#(path)"]
"""
When method DELETE
Then status 200
* def errors = call extractErrors response
* match errors == []
Loading

0 comments on commit be2c826

Please sign in to comment.