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

Allow generated ZnMimeParts to be accepted by Exercism #106

Closed
wants to merge 1 commit into from

Conversation

samWson
Copy link
Contributor

@samWson samWson commented Sep 17, 2018

This one is preparation for finally fixing #96. @bencoman this manual patch is as you showed in the same issue. I just manually added the missing white space and adopted the method by changing its protocol to *ExercismTools. I'm guessing when our code is loaded into a fresh image, this change will get merged and patch the method for us?

This change is a whitespace fix to the content disposition of the generated 
Mime type. This will allow the Mime part to be correctly parsed by the 
Exercism web app (note we are not sure where the bug is: the Zinc library,
Exercism, or the Mime part standard).

This change also adopts the altered method into the ExercismTools package.
@bencoman
Copy link
Contributor

This is exactly what I was thinking of, but in hindsight adopting that method dirties the Zinc-HTTP package for no good reason. Its not like this method is buried deep in a call stack. We use it directly, so can just copy the existing method to ZnMimePart class >> exercismFieldName:fileName:entity: and use that. I think thats what Tim indicated here but I wasn't paying attention. Then we don't dirty the Zinc package.

Sam, Rather than ask you to resubmit due to my error, I've created PR#107. Could you review/integrate?

@macta
Copy link
Contributor

macta commented Sep 17, 2018

Yes - just a prefixed extension method will work fine (that’s what I was trying to say)

@bencoman did you report this to Sven yet? I think the spec is unclear and it’s something you have to deal with

@samWson samWson closed this Sep 18, 2018
@samWson
Copy link
Contributor Author

samWson commented Sep 18, 2018

Closed this in favor of #107 instead.

@bencoman bencoman deleted the ZnMimePart-patch branch September 19, 2018 13:24
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

3 participants