Skip to content

Conversation

@melvyn-sopacua
Copy link
Contributor

  • Mention that the checksum is transmitted through the Digest header
  • Alter some sentences to clarify the process
  • Use the word permanent to stress that failures are fatal

- Mention that the checksum is transmitted through the Digest header
- Alter some sentences to clarify the process
- Use the word permanent to stress that failures are fatal
Apparently I missed the checksum in the data dictionary example and
figured the mechanism would be consistent with uploading a file.
Fix this.
Copy link
Contributor

@MrJoe MrJoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your time to make a pull request for our documentation.
Except for 25bb862#diff-64394bf08e74e8e16e2a36402516f57aL28
we won't merge the other changes.

Although your re-wording is correct we don't feel it makes it more or less obvious.

ps. our policy for markdown files is to place each sentence on its own line to reduce the number of changed lines when a change is made.

postback.md Outdated
### Checksum

To verify that the postback responses are from SignHost you MUST verify our digital signature checksum. This signature is a hash of some parameters from the response and the sharedsecret. In order the generate the Checksum you will need a sharedsecret.
To verify that the postback responses are from SignHost you MUST verify our digital signature checksum. This signature is a hash of some parameters from the response and the sharedsecret. The checksum is transmitted via the `Digest` HTTP header. In order the generate the Checksum you will need a sharedsecret.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct, the Checksum is part of the (json) body.

### Request body formats

```
```javascript
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should actually be json. However what is the advantage here specifying this as the syntax highlighting seems to happen anyway.

In the meantime we will retry to deliver the first failed postback with an increasing interval (the first retry is within a few minutes).
After 5 successive failed attempts we will send you an email.
We will include the attachment with the received response (if any).
We will include an attachment containing the received response (if any).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@melvyn-sopacua
Copy link
Contributor Author

I reworded the bit about the failures, because:

  • First is relative to a queue with undefined ordering. Oldest is immediately clear.
  • "Marked as failed" doesn't stress it will not be retried and eventually purged.

@MrJoe
Copy link
Contributor

MrJoe commented Oct 30, 2017

In computer science a queue is afaik always the principle of having the oldest entry at the top.
I just checked with wikipedia and 'they' seem to agree with this principle:

In computer science, a queue (/ˈkjuː/ KYEW) is a particular kind of abstract data type or collection in which the entities in the collection are kept in order and the principle (or only) operations on the collection are the addition of entities to the rear terminal position, known as enqueue, and removal of entities from the front terminal position, known as dequeue.

'Mark as failed' is exact what it says. Eventually the marked as failed are indeed purged. We intend to improve this situation by manually registering a postback URL in the user portal so you are given the opportunity to mark a failed postback as retryable, although we won't keep an infinite amount of failed postbacks.

So the wording 'failed' does not make it clear that it is permanent? What did you think what would happen with the failed postbacks?

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants