Monthly Shaarli
May, 2017
Voilà un mug qui devrait tenir votre boisson bien chaude. Oh oui, très très chaude.
La v0.9.0 de Shaarli a été publiée !
Deux grands changements ont été apportés :
- un nouveau thème (merci encore pour vos retours)
- une API REST
Vu qu'il s'agit de fonctionnalités qui ont demandé beaucoup de travail, cette version majeure est un peu plus chargée que d'autres. On espère qu'aucun bug ne s'est glissé dedans. Si jamais c'était le cas, remontez les sur Github. :)
Changelog
This release introduces the REST API, and requires updating HTTP server
configuration to enable URL rewriting, see:
- https://shaarli.github.io/api-documentation/
- https://github.com/shaarli/Shaarli/wiki/Server-configuration
WARNING: Shaarli now requires PHP 5.5+.
Added
- REST API v1
- Slim framework
- JSON Web Token (JWT) authentication
- versioned API endpoints:
/api/v1/info: get general information on the Shaarli instance/api/v1/links: get a list of shaared links/api/v1/history: get a list of latest actions
Theming:
- Introduce a new theme
- Allow selecting themes/templates from the configuration page
- New/Edit link form can be submitted using CTRL+Enter in the textarea
- Shaarli version is displayed in the footer when logged in
- Add plugin placeholders to Atom/RSS feed templates
- Add OpenSearch to feed templates
- Add
campaign_to the URL cleanup pattern list - Add an AUTHORS file and Makefile target to list authors from Git commit data
- Link imports are now logged in
data/folder, and can be debug usingdev.debug=truesetting. composer.lockis now included in git file to allow propercomposer install- History mechanism which logs link addition/modification/deletion
Changed
- Docker: enable nginx URL rewriting for the REST API
- Theming:
- Move
user.cssto thedatafolder - Move default template files to a subfolder (
default) - Rename the legacy theme to
vintage - Private only filter is now displayed as a search parameter
- Autocomplete: pre-select the first element
- Display daily date in the page title (browser title)
- Timezone lists are now passed as an array instead of raw HTML
- Move
- Move PubSubHub to a dedicated plugin
- Coding style:
- explicit method visibility
- safe boolean comparisons
- remove unused variables
- The updater now keeps custom theme preferences
- Simplify the COPYING information
- Improved client locale detection
- Improved date time display depending on the locale
- Partial namespace support for Shaarli classes
- Shaarli version is now only present in
shaarli_version.php - Human readable maximum file size upload
Removed
- PHP < 5.5 compatibility
- ReadItYourself plugin
Fixed
- Ignore generated release tarballs
- Hide default port when behind a reverse proxy
- Fix a typo in the Markdown plugin description
- Fix the presence of empty tags for private tags and in search results
- Fix a fatal error during the install
- Fix permalink image alignment in daily page
- Fix the delete button in
editlink - Fix redirection after link deletion
- Do not access LinkDB links by ID before the Updater applies migrations
- Remove extra spaces in the bookmarklet's name
- Piwik plugin: Piwik URL protocol can now be set (http or https)
- All inline JS has been moved to dedicated JS files
- Keep tags after login redirection
Security
- Markdown plugin: escape HTML entities by default
The vast majority of software services and systems should aim for almost-perfect reliability rather than perfect reliability—that is, 99.999 or 99.99 percent rather than 100 percent—because users cannot tell the difference between a service being 100 percent available and less than "perfectly" available. There are many other systems in the path between user and service (laptop, home WiFi, ISP, the power grid, ...), and those systems collectively are far less than 100 percent available. Thus, the marginal difference between 99.99 percent and 100 percent gets lost in the noise of other unavailability, and the user receives no benefit from the enormous effort required to add that last fractional percent of availability
Un papier détaillé sur la haute dispo et les dépendances d'un service.
Laura Pfeiffer raconte comment une inspection de l'entreprise Téfal, en Haute-Savoie, qui tourne au calvaire la conduit à devenir lanceuse d'alerte sur les pressions subies par sa profession.