Discrepancy between API (docs) and behaviour of privatebin.net regarding comments #1290
Replies: 2 comments 4 replies
-
I have retested the behaviour on the site and IMO it matches the API doc. Since you concluded differently, it clearly needs to be improved to avoid being misunderstood. Here is what I observe when creating a paste with comments enabled and submitting a single comment. I copied the requests in curl format and the reply-bodies, so you should be able to replicate this also outside of a browser: Create paste (POST)
Read paste (GET)
Create comment (POST)
Read paste, again (GET)
Observations
Let us know which part of the above is in discrepancy with the document and could be clarified. Note that I am not a native English speaker, so I would also appreciate any suggestions on how to improve the wording, if that causes confusion. |
Beta Was this translation helpful? Give feedback.
-
Hi, I hope am not troubling with presenting these findings. Do please let me know if it's a bother. I found another possible, non-vital discrepancy. The paste format describes the "created" meta property as returned only for comments (and not for pastes). But it seems to be returned for pastes too. Thoughts:
Proposal 1: Chrono-privacy
Proposal 2: Useful meta (current)
|
Beta Was this translation helpful? Give feedback.
-
Describe the problem/question
On API page, comments are described as having
status
andurl
fields. This is also codified in comments.jsonldBut on https://privatebin.net instance, these fields are not returned for discussion comments.
Did you use the FAQ section?
What you did?
...
What happens
The deserialisation for comments choked on not finding status and url fields.
The non-presence of these can be verified using browser dev tools.
What should happen
This was easily fixable client side, but it would be good to get documentation in line with the behaviour or vice versa.
Additional information
No response
Server address
https://privatebin.net
Server OS
n.a
Webserver
n.a
PrivateBin version
v1.7.1
Browser and version
n.a
Local operating system and version
n.a
Issue reproducibility
Yes, reproducible on https://privatebin.net.
Beta Was this translation helpful? Give feedback.
All reactions