-
Notifications
You must be signed in to change notification settings - Fork 31
Added MD5 and SHA1 digested hashes inside header for HTTP HEAD reques… #1393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
8fcf358
Reuse the existing repo as implied one should add it into group
sswguo 64966b2
NOS-2099:
gorgija c8ba4af
Test
gorgija f2cd6fe
Added MD5 and SHA1 digested hashes inside header for HTTP HEAD reques…
gorgija eb9b870
Filter the existing repos matching the conditions
sswguo 5cd828f
Enhance the condition for comparing the repo
sswguo 6400361
Fix Bad Request 400 error when uploading snapshot maven-metadata (#1389)
ruhan1 69dfcda
Allow disable of content index, and add prometheus metrics adapter
jdcasey 989ea92
add managed dep on indy-subsys-metrics-prometheus
jdcasey bd527c9
Fix tests broken by default-disabled content index, and improve some …
jdcasey 153be6d
Merge pull request #1394 from jdcasey/master
jdcasey 23ccf23
Deprecated listContents in client module as it is not working now
ligangty b8a2925
Improve Prometheus metrics using node_prefix as a label to help with …
jdcasey 85cd637
Tweak the condition and merge the keys of metadata "implied_by_stores"
sswguo 913a43e
Merge pull request #1397 from jdcasey/master
jdcasey 8b69574
Merge pull request #1390 from sswguo/implied_existing_repo
jdcasey a305c67
Merge branch 'NOS-2048' of https://github.com/geored/indy into NOS-2048
gorgija df7329a
Added Tests for checking http HEAD requests on '/api/browse/{packageT…
gorgija 350fd29
Changes Requested
gorgija 7086fd5
Changes Required
gorgija 6011e4e
only do deploy when we're doing an image build, and add timestamps to…
jdcasey d799d49
Adding unit tests for version change in TrackedContentEntry
jdcasey e1e5ad2
Bug fix
gorgija dae3f04
InternalFeature isn't null value
gorgija 2f62267
DefaultStoreValidatorTest
gorgija 8345d1a
Fixing merge logic in TrackedContentEntry and fixing serialVersionUID…
jdcasey 8664bf9
Merge pull request #1399 from jdcasey/master
jdcasey 1849bc2
Merge pull request #1395 from ligangty/master
jdcasey cdd9f4c
Merge pull request #1392 from geored/NOS-2099
jdcasey a497b08
Merge branch 'NOS-2048' of https://github.com/geored/indy into NOS-2048
geored 1589aa3
Added Digesting Algos for Repository contents inside 'ResponseHelper'…
geored f36d341
Added Digesting Algos for Repository contents inside 'ResponseHelper'…
geored 97859d0
Path not directory
geored 287b08a
Content Digest if path doesn't end with '/'
geored bd47010
Added headers in ContentAcessHandler
geored 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,9 +1,11 @@ | ||
| [content-index] | ||
| #enabled=false | ||
|
|
||
| # This property is used to control if authoritative index is enabled. the authoritative index means: | ||
| # in terms of performance consideration, we will use content-index as the one-time check for the content | ||
| # access, and if not found in content indexing, will treat it as "no content" and bypass the following access to the storage. | ||
| #support.authoritative.indexes=true | ||
|
|
||
| # This property is used to enable content index warmer, which will scan all repos and load all artifacts | ||
| # into content index when startup. | ||
| # index.warmer.enable=true | ||
| # index.warmer.enabled=true |
This file contains hidden or 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
Oops, something went wrong.
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.
Do we need to remove @ApplicationScoped from the class for this to work in a multi-threaded way?
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.
Right now its not problem multi-threaded that much as returning
"HTTP/1.1 500 Internal Server Error" on every each http HEAD request to that endpoint ("/api/browse/{packageType}/{type}/{name}/{path: (.*)}") , that's way i'm changing to one method which will handle both routes ( "/" and "/{path}/{path}/... ) with this setup.
For tests yes , i will provide them on next commit iteration for this PR
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.
I'm just wondering if we should inject these @context fields as method parameters to avoid cross-request pollution since the class is application scoped.
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.
As far as the tests, if you're still working on this can you mark it as WIP? When the tests come up clean it can be confusing whether it's ready to merge or not.
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.
"I'm just wondering if we should inject these @context fields as method parameters to avoid cross-request pollution since the class is application scoped."
Yes , i will remove @ApplicationScoped and try without and let you know.
Uh oh!
There was an error while loading. Please reload this page.
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.
"As far as the tests, if you're still working on this can you mark it as WIP? When the tests come up clean it can be confusing whether it's ready to merge or not."
John there is other NOS-1896 issue which is addresing same task but it is broather in sense that is asking for content checkup and deletion based on this MD5/SHA1 header checkup.
Sorry for not cleaned code , i have noticed latter on and i must do that because of hurry.
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.
Yes @jdcasey @Applicationscope is creating server problems with @context injected inside method as parameter , also second @Head method with @path("/") is generating server error even without @applicationscope. One other issue is that pathmapping ( @path("/{path (.*)} ) is returning :"415 Media Unsuported " response.