Closed (fixed)
Project:
Drupal core
Version:
8.3.x-dev
Component:
rest.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Oct 2016 at 11:13 UTC
Updated:
4 Nov 2016 at 15:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
minakshiPh commentedAdded the patch with fix.
Kindly review.
Thanks!
Comment #3
chi commentedWell, I just realized that this might not be a typo though it sounds strange. "Delete" stands for HTTP method name in this context. I would like someone with more English experience to review this.
Comment #4
wim leersYep, this makes sense. Thanks!
Comment #5
chi commentedI would like to emphasize that we are not deleting anything in that line. :)
Comment #6
alexpottCommitted and pushed 5233c3d to 8.3.x and 7a2da64 to 8.2.x. Thanks!
Comment #9
chi commentedStill thinking the spelling is wrong. Delete is not a verb here. It is kind of adjective describing the response method (GET, POST, OPTIONS, etc). We are not deleting responses here but only noting why this response has an empty body. I propose using uppercase for the method name like follows: "DELETE responses have an empty body."
Let me know if I am mistaken.
Comment #10
wim leersUgh, you're totally right. I don't know how I missed that :(
It should just have been
s/Delete/DELETE/Comment #11
alexpottLet's just open an new issue for that. The bit that was changed was not the delete part. Reverting is totally OTT for this.
Comment #12
wim leersEhm, no, the original sentence made sense. The new sense makes no sense at all. Again, my bad :(
"DELETE responses" have an empty body -> makes sense!
"Delete responses which have an empty body" -> makes no sense, because this code is not deleting any responses.
Comment #14
lomasr commentedI agree with Wim. "DELETE responses" have an empty body is a better idea . Added a patch.
Comment #15
shruti1803 commentedComment #17
shruti1803 commentedComment #19
yogeshmpawarI have rerolled the patch against 8.3.x because #17 failed to apply.
Comment #20
chi commentedI would not use quotes in this case for the purpose of consistency. We are usually not using them in this context. See EntityResource::delete method documentation as an example.
Comment #21
chi commentedComment #22
leeotzu commentedChanges applied as per suggestion from @chi for 8.3.x
Comment #23
leeotzu commentedComment #24
chi commentedThe method name can remain in upper case.
Comment #25
Grayside commentedAll caps for HTTP method names are standard practice in formal tech writing.
Comment #26
leeotzu commentedUpdated the method name to uppercase.
Comment #27
chi commentedComment #30
catchCommitted/pushed to 8.3.x and cherry-picked to 8.2.x. Thanks!