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

Fixed SparkleUpdateInfoProvider ignoring appcast_request_headers #277

Merged
merged 1 commit into from May 5, 2016
Merged

Conversation

jps3
Copy link
Contributor

@jps3 jps3 commented May 2, 2016

  • It would appear that the recent change from using urllib to curl
    introduced a subtle bug wherein the SparkleUpdateInfoProvider processor
    was effectively ignoring appcast_request_headers.
  • The fix: within the get_feed_data() function, the line calling
    self.fetch_content() was giving appcast_query_pairs as the second
    argument (which get_feed_data() took as its headers= argument).
    Since appcast_query_pairs are url encoded in the code block
    immediately before this call, all that’s missing was to remove the
    extraneous argument with a corrected headers= one.

* It would appear that the recent change from using urllib to curl
introduced a subtle bug wherein the SparkleUpdateInfoProvider processor
was effectively ignoring `appcast_request_headers`.
* The fix: within the `get_feed_data()` function, the line calling
`self.fetch_content()` was giving `appcast_query_pairs` as the second
argument (which `get_feed_data()` took as its `headers=` argument).
Since `appcast_query_pairs` are url encoded in the code block
immediately before this call, all that’s missing was to remove the
extraneous argument with a corrected `headers=` one.
@jps3
Copy link
Contributor Author

jps3 commented May 5, 2016

Bump.

(This affects, at least, com.github.timsutton.munki.HopperDisassembler3 and com.github.keeleysam.recipes.Twocanoes.WinclonePro4.munki).

@timsutton
Copy link
Member

Thanks for catching this!

@timsutton timsutton merged commit 03b655c into autopkg:master May 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants