• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ssoloff / dice-server-js / 101
100%

Build:
DEFAULT BRANCH: master
Ran 21 Aug 2015 05:25PM UTC
Jobs 1
Files 22
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
101

push

travis-ci

ssoloff
Ensure response signature algorithm is cross-platform.

Per MDN docs for `JSON.stringify`:

"Properties of non-array objects are not guaranteed to be stringified in any particular order. Do not rely on ordering of properties within the same object within the stringification."

The root cause of this problem is due to the lack of a standardized canonicalized form for JSON.

Therefore, we must choose a canonicalization algorithm that is consistent across all platforms.  We choose to base64-encode the JSON text to obtain a canonicalized form for which the signature can be calculated consistently.  Base64 encoding of the JSON object to be signed appears to be the mechanism forthcoming JSON signature standards are proposing.

The downside of this approach is that the JSON text is no longer human readable with respect to the most interesting content.  Thus, debugging will require an additional decoding step.

1421 of 1421 relevant lines covered (100.0%)

5.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 101.1 21 Aug 2015 05:25PM UTC 0
100.0
Travis Job 101.1
Source Files on build 101
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #101
  • c0ae3232 on github
  • Prev Build on master (#100)
  • Next Build on master (#102)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc