Skip to content
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

SLING-7357: set content type to forward distrib http headers #2

Merged
merged 1 commit into from
Jan 9, 2018

Conversation

Buuhuu
Copy link
Member

@Buuhuu Buuhuu commented Jan 7, 2018

Added content type to be specified by the DistributionContentSerializer and DistributionPackageBuilder.

This is a major change of org.apache.sling.distribution.serialization.

@tteofili
Copy link
Contributor

tteofili commented Jan 8, 2018

the patch looks good to me.
@Buuhuu while I agree it is better for HTTP request to state the content type, does this PR relate to an issue or functional requirement ?

@Buuhuu
Copy link
Member Author

Buuhuu commented Jan 8, 2018

It's more about a functional requirement when integrating into systems that offer a http API that uses content negotiation to determine how to handle the content. In my specific example, integrating into solr its the JsonLoader that is supposed to be used for application/json. Though this is incomplete until SLING-7364 gets resolved because the binary stream is modified outside of the serializers scope (adding DistributionPackageInfo as binary header in front of the content)

@tteofili
Copy link
Contributor

tteofili commented Jan 9, 2018

@tteofili tteofili merged commit 959ea05 into apache:master Jan 9, 2018
mpetria added a commit that referenced this pull request May 25, 2018
This reverts commit 959ea05, reversing
changes made to 36c7bf8.
actinium15 added a commit to actinium15/sling-org-apache-sling-distribution-core that referenced this pull request Dec 5, 2019
actinium15 added a commit to actinium15/sling-org-apache-sling-distribution-core that referenced this pull request Dec 5, 2019
* the deleted annotation _seems to be_ the only line marked 'duplicate'
  in the new code. This is definitely not the right thing to do, but
  adding this commit just to see if the real problem lies somewhere else
actinium15 added a commit to actinium15/sling-org-apache-sling-distribution-core that referenced this pull request Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants