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

BkReuseTest.java:46-49: Implement missing BkReuse.accept method to... #418

Closed
davvd opened this issue Oct 29, 2015 · 42 comments
Closed

BkReuseTest.java:46-49: Implement missing BkReuse.accept method to... #418

davvd opened this issue Oct 29, 2015 · 42 comments

Comments

@davvd
Copy link

davvd commented Oct 29, 2015

Puzzle 306-0f8af5fd in src/test/java/org/takes/http/BkReuseTest.java:46-49 has to be resolved: Implement missing BkReuse.accept method to support HTTP persistent connections and to pass below three tests. BkReuse.accept should handles more than one HTTP requests in one connection and return correct HTTP status when Content-Length is not specified.... The puzzle was created by Piotr Pradzynski on 22-Oct-2015.

If you have any technical questions, don't ask me, submit new tickets instead

@davvd
Copy link
Author

davvd commented Oct 30, 2015

@yegor256 attached this issue to milestone "1.0" (let me know if this is wrong)

@davvd davvd added this to the 1.0 milestone Oct 30, 2015
@davvd
Copy link
Author

davvd commented Oct 31, 2015

@prondzyn the task is yours, please go ahead

@prondzyn
Copy link
Contributor

prondzyn commented Nov 9, 2015

@davvd please find someone else. Thanks.

@davvd
Copy link
Author

davvd commented Nov 11, 2015

@davvd please find someone else. Thanks.

@prondzyn -30 points to your rating

@davvd
Copy link
Author

davvd commented Nov 11, 2015

@davvd please find someone else. Thanks.

@prondzyn got it, someone else will be assigned soon

@davvd davvd removed the @prondzyn label Nov 11, 2015
@davvd
Copy link
Author

davvd commented Nov 19, 2015

@HDouss it's yours now, please proceed keeping in mind our principles. Feel free to ask any technical questions right here in the ticket

The budget of this task is 30 mins. This is exactly how much time will be compensated, when the task is completed. Read about our Definition of Done

@davvd davvd added the @hdouss label Nov 19, 2015
@HDouss
Copy link
Contributor

HDouss commented Nov 19, 2015

@davvd : I am a little confused about the test methods. I don't see (or I don't understand) the relation between the socket and the (mocked) container. I was expecting the unit test plays client role, and BkReuse plays server role. I may be wrong but the container seems playing server role, and made to reply with an answer I expected to be the client request.

@HDouss
Copy link
Contributor

HDouss commented Nov 20, 2015

@davvd : I think last commit #417 - improving tests to use jcabi http ce74f15 is not Ok. Should I open an issue for rewriting unit test ?

@HDouss
Copy link
Contributor

HDouss commented Nov 22, 2015

@davvd I don't know if it is a requirement that BkReuse should decorate another Back.
Before delegating the process of the socket to the underlying Back, BkReuse should definitely read from the socket input stream and process some of the headers.
There is no way to reposition the socket input stream to be (correctly) processed again by the underlying Back.

@davvd
Copy link
Author

davvd commented Nov 23, 2015

@davvd : I am a little confused about the test methods. I don't see (or I don't understand) the relation between the socket and the (mocked) container. I was expecting the unit test plays client role, and BkReuse plays server role. I may be wrong but the container seems playing server role, and made to reply with an answer I expected to be the client request.

@HDouss check this out: http://www.yegor256.com/2015/02/16/it-is-not-a-school.html

@davvd
Copy link
Author

davvd commented Nov 23, 2015

@davvd : I think last commit #417 - improving tests to use jcabi http ce74f15 is not Ok. Should I open an issue for rewriting unit test ?

@HDouss address technical questions to the author of the ticket

@HDouss
Copy link
Contributor

HDouss commented Nov 23, 2015

@davvd My two comments are related. I will ask the question on #417.

@davvd
Copy link
Author

davvd commented Nov 23, 2015

@davvd My two comments are related. I will ask the question on #417.

@HDouss OK, sure

@HDouss
Copy link
Contributor

HDouss commented Nov 26, 2015

@davvd I ask more time as I am waiting for an answer on #417 and an answer on :

@davvd I don't know if it is a requirement that BkReuse should decorate another Back.
Before delegating the process of the socket to the underlying Back, BkReuse should definitely read from the socket input stream and process some of the headers.
There is no way to reposition the socket input stream to be (correctly) processed again by the underlying Back.

@davvd
Copy link
Author

davvd commented Dec 5, 2015

@HDouss the ticket is with you for 15 days already. If it is not finished in the next 48 hours, it will be re-assigned to someone else, see No Obligations principle, this article should help if you're stuck... as a reminder, don't forget to remove the @todo puzzle from the source code... -30 added to your rating, current score is: +0

@HDouss
Copy link
Contributor

HDouss commented Dec 5, 2015

@davvd please note my last comment. I asked for more time, I think a redesign is required and I am waiting for replies.

@davvd
Copy link
Author

davvd commented Dec 5, 2015

@davvd please note my last comment. I asked for more time, I think a redesign is required and I am waiting for replies.

@HDouss sure, thanks for telling me, take your time

@HDouss
Copy link
Contributor

HDouss commented Dec 5, 2015

@davvd please revoke my rating and answer my redesign question.

@yegor256
Copy link
Owner

yegor256 commented Dec 7, 2015

@HDouss please, check these two articles: http://www.yegor256.com/2015/02/16/it-is-not-a-school.html and http://www.yegor256.com/2015/01/15/how-to-cut-corners.html Basically, if something is not clear it's either your problem and you should solve it on your own, or it's a problem of the project and you should report it. Nobody will help you here.

@HDouss
Copy link
Contributor

HDouss commented Dec 7, 2015

@davvd I can't continue until #456 is resolved.

@davvd
Copy link
Author

davvd commented Dec 8, 2015

@davvd I can't continue until #456 is resolved.

@HDouss yes, right, let's wait for #456

@davvd
Copy link
Author

davvd commented Jan 15, 2016

@yegor256 #456 is closed, it was an impediment

@HDouss
Copy link
Contributor

HDouss commented Jan 15, 2016

@davvd I am still waiting for #454 here.

@davvd
Copy link
Author

davvd commented Jan 16, 2016

@davvd I am still waiting for #454 here.

@HDouss agreed, we'll wait for #454

@davvd
Copy link
Author

davvd commented Jan 17, 2016

@yegor256 The issue is closed

@davvd davvd closed this as completed Jan 17, 2016
@davvd
Copy link
Author

davvd commented Jan 17, 2016

@ypshenychka please, let us know what do you think about this ticket, according to our QA rules

@HDouss
Copy link
Contributor

HDouss commented Jan 17, 2016

@davvd This issue is not resolved yet. The puzzle description have just moved from BkReuseTest to BkBasicTest because BkReuseTest is deleted and we get rid of it. But the issue is still unresolved.

@HDouss
Copy link
Contributor

HDouss commented Jan 17, 2016

@davvd The puzzle here is the same as in #519. It was just moved. I worked on this issue for a long time, so why closing it and open another (same) one ?

@HDouss
Copy link
Contributor

HDouss commented Jan 17, 2016

@yegor256 Could you please help here ?

@HDouss
Copy link
Contributor

HDouss commented Jan 18, 2016

@davvd Ping

@davvd The puzzle here is the same as in #519. It was just moved. I worked on this issue for a long time, so why closing it and open another (same) one ?

@yegor256
Copy link
Owner

@HDouss it looks like the puzzle is gone and a new one showed up. you can check PUZZLES.md file in the root directory for a full list of puzzles currently active. yours is there?

@HDouss
Copy link
Contributor

HDouss commented Jan 19, 2016

@yegor256 It is gone because BkReuseTest class was removed, but the issue is still here.

@yegor256
Copy link
Owner

@HDouss so, this issue will be fixed in a new ticket. we work with micro-tasks, remember that. we can't solve all together in one ticket. if the puzzle is gone, the problem is gone. period.

@HDouss
Copy link
Contributor

HDouss commented Jan 19, 2016

@yegor256 This puzzle is not gone. he has just "moved" (and somehow reformulated) from BkReuseTest to BkBasicTest.

@yegor256
Copy link
Owner

@HDouss that's the thing - if it's "reformulated", it's a different puzzle. our puzzle detecting software can't understand whether it's the same problem or a different one. it only checks the text.

@HDouss
Copy link
Contributor

HDouss commented Jan 20, 2016

@yegor256 Ok. Let's forget about it.

@ypshenychka
Copy link

@HDouss So will there be a related fix in scope of this ticket?

@HDouss
Copy link
Contributor

HDouss commented Jan 20, 2016

@ypshenychka No, I don't think it has any sens.

@ypshenychka
Copy link

@HDouss got it. Thanks.

@ypshenychka
Copy link

@davvd Quality is bad here.

@davvd
Copy link
Author

davvd commented Jan 20, 2016

@davvd Quality is bad here.

@ypshenychka thank you for paying attention

@davvd
Copy link
Author

davvd commented Jan 20, 2016

@HDouss 10 mins was added to the account of @ypshenychka (for QA review), in transaction 75134863

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants