This repository has been archived by the owner on Apr 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 117
FALCON-2276 Falcon Trusted extensions submission and validation was failing #360
Closed
Closed
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
9e68a57
FALCON-298. Feed update with replication delay creates holes
sandeepSamudrala a94d4fe
rebasing from master
sandeepSamudrala 271318b
FALCON-2097. Adding UT to the new method for getting next instance ti…
sandeepSamudrala 1a4dcd2
rebased and resolved the conflicts from master
sandeepSamudrala c065566
reverting last line changes made
sandeepSamudrala 1bb8d3c
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala d6dc8bf
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala a178805
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala d0393e9
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala 250cc46
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala 48f6afa
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala bbca081
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala 9cf36e9
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala f96a084
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala e0ad358
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala 194f36a
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala 0a433fb
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala b1546ed
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala 4a2e23e
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala 0cf9af6
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala 456d4ee
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala 089b10d
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala cc28658
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala 73fbf75
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala 26e3350
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala a234d94
FALCON-2231 Incoporated review comments and small fixes for duplicate…
sandeepSamudrala 7e16263
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala c5da0a2
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala 7de7798
go -b FALCON-2263Merge branch 'master' of https://github.com/apache/f…
sandeepSamudrala 79e8d64
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala cb2b00d
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala 3f67fed
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala db425c5
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala a3bd0e9
Merge branch 'master' of https://github.com/apache/falcon
sandeepSamudrala 84169d6
FALCON-2276 Falcon Trusted extensions submission and validation was f…
sandeepSamudrala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1169,7 +1169,7 @@ private JSONObject getExtensionJobDetailJson(String jobName) { | |
private List<Entity> getEntities(String extensionName, String jobName, InputStream configStream, | ||
String extensionType, String extensionBuildLocation) { | ||
List<Entity> entities = null; | ||
if (!extensionType.equals(ExtensionType.CUSTOM.name())) { | ||
if (!extensionType.equals(ExtensionType.TRUSTED.toString())) { | ||
try { | ||
entities = ExtensionHandler.loadAndPrepare(extensionName, jobName, configStream, | ||
extensionBuildLocation); | ||
|
@@ -1209,7 +1209,7 @@ public APIResult validateExtensionJob(final String extensionName, final String j | |
final String configPath, final String doAsUser) { | ||
String extensionType = ExtensionHandler.getExtensionType(extensionName, getExtensionDetailJson(extensionName)); | ||
InputStream configStream = getServletInputStream(configPath); | ||
if (ExtensionType.TRUSTED.name().equalsIgnoreCase(extensionType)) { | ||
if (extensionType.equals(ExtensionType.TRUSTED.toString())) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment as above name() vs. toString(). |
||
ClientResponse clientResponse = new ResourceBuilder() | ||
.path(ExtensionOperations.VALIDATE.path, extensionName) | ||
.addQueryParam(DO_AS_OPT, doAsUser) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Shouldn't the comparison be with ExtensionType.TRUSTED.name()? Doesn't ExtensionType.TRUSTED.toString() result in "Trusted extension", rather than "TRUSTED"?
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.
This comes as Trusted extension from the server as its .toString while coming from the server.
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.
ah.. got it. Thanks for clarifying.