Commit Graph

266 Commits

Author SHA1 Message Date
Diana Lau 92c3b4df8c chore: update license 2018-01-06 22:47:23 -03:00
Timo Wolf f467d964a7 add AWS S3 options for server side encryption
Now, the AWS S3 options for server side encryptions are passed to the
upload handler. Thus, the client can specify the AWS options and use
AWS Server Side Encryption.
2018-01-06 22:47:23 -03:00
Rand McKinney 033f6d8cd4 Update README.md
Add Google Cloud support to README
2018-01-06 22:47:23 -03:00
Raymond Feng 5203d9bd22 3.3.1
* Declare container parameter for swagger spec (Raymond Feng)
2018-01-06 22:47:23 -03:00
Raymond Feng 8b663ddf9c Declare container parameter for swagger spec
Without this change, generated Swagger spec for the upload operation
does not have `container` parameter even it's a variable on the path.
As a result, the sepc fails validations.

An optional `container` is added to the remote method. Conditional
check is added to ensure backward compatibility.
2018-01-06 22:47:18 -03:00
Raymond Feng 82f1e92a5b 3.3.0
* Mark HTTP path parameters as required (Miroslav Bajtoš)
 * Add stalebot configuration (Kevin Delisle)
 * Create Issue and PR Templates (#218) (Sakib Hasan)
 * Update translated strings Q3 2017 (Allen Boone)
 * Add CODEOWNER file (Diana Lau)
 * update messages.json (Diana Lau)
 * add .travis.yml (Diana Lau)
2018-01-06 22:46:26 -03:00
Miroslav Bajtoš 4ea51fcd8c Mark HTTP path parameters as required
Per Swagger spec 2.0, parameters coming from the path must be marked
as required.

Before this change, the Swagger spec produced by loopback-swagger
was not valid because path parameters were optional.

Note that this commit does not fix the problem of the "uploaded"
method which does not have any swagger-supported parameters now,
and therefore the swagger spec will remain invalid (but with less
errors).
2018-01-06 22:46:26 -03:00
Kevin Delisle 6a3d9f47d5 Add stalebot configuration 2018-01-06 22:46:26 -03:00
Sakib Hasan 3e7d5c819d Create Issue and PR Templates (#218)
* create issue template

* create pr template
2018-01-06 22:46:26 -03:00
Miguel González Aravena 88a261e86d Create containers with slash 2018-01-06 22:45:58 -03:00
Miguel González Aravena e9a7c7e42f Fix eslint error 2018-01-06 22:45:21 -03:00
Miguel González Aravena 0c48e20d88 Fix test error 2018-01-06 22:44:57 -03:00
Miguel González Aravena 908d137a04 Explain new functionality in README 2018-01-06 22:44:37 -03:00
Miguel González Aravena 9ebfdcbdc2 Verify if dataSources.json exist 2018-01-06 22:44:09 -03:00
Miguel González Aravena 9597144422 Verify Container's name is a string 2018-01-06 22:43:43 -03:00
Miguel González Aravena 628be51429 Update dependencies 2018-01-06 22:43:23 -03:00
Miguel González Aravena 7b6df190a9 Update README 2018-01-06 22:43:04 -03:00
Allen Boone 2fb5d85a06 Update translated strings Q3 2017 2018-01-06 22:43:04 -03:00
Diana Lau 7beac34300 Add CODEOWNER file 2018-01-06 22:43:04 -03:00
Diana Lau a48d36ba49 update messages.json 2018-01-06 22:43:04 -03:00
Diana Lau ba9fc3aeb1 add .travis.yml 2018-01-06 22:43:04 -03:00
Raymond Feng 807fdc6308 3.2.0
* Update deps (Raymond Feng)
2018-01-06 22:43:04 -03:00
Raymond Feng 990649b607 Update deps 2018-01-06 22:42:59 -03:00
Raymond Feng 7b60e6553a 3.1.0
* Fix eslint (Raymond Feng)
 * Replicate new issue_template from loopback (Siddhi Pai)
 * Fix insert of finalNewLine (Loay)
 * Replicate issue_template from loopback repo (Siddhi Pai)
 * fix lint (Raymond Camden)
 * Support nameConflict and makeUnique options (Raymond Camden)
 * Fix #185: Validation failures crash server (Jeff Burn)
 * fix scope error (ole3021)
 * added file field name into getFilename function (Jose De Gouveia)
 * added file field name into getFilename function in storage-handler (Jose De Gouveia)
 * Added support for external providers as npm modules. (Cristobal Vergara)
 * added maxFieldsSize override to formidable limit (Oscar Bernal)
2018-01-06 22:41:03 -03:00
Siddhi Pai 3f1625a3fb Replicate new issue_template from loopback 2018-01-06 22:41:03 -03:00
Siddhi Pai b0139a1eec Replicate issue_template from loopback repo 2018-01-06 22:41:03 -03:00
Jose De Gouveia ba5533b767 added file field name into getFilename function in storage-handler 2018-01-06 22:40:08 -03:00
Jose De Gouveia ff200bf328 added file field name into getFilename function 2018-01-06 22:38:34 -03:00
Jeff Burn 64c723e123 Fix #185: Validation failures crash server
Fixes issue where upload and download methods in FileSystemProvider
cause crashes in downstream methods by not returning streams in error
scenarios

- Add streamError, readStreamError, writeStreamError helper function
- Wrap all returns from upload / download methods in streams
- Fix incorrect format string
- Add new unit tests
2018-01-06 22:30:39 -03:00
Oscar Bernal e55595b99e added maxFieldsSize override to formidable limit 2018-01-06 22:30:35 -03:00
Raymond Feng 7df8f45489 Fix eslint 2018-01-06 22:28:42 -03:00
ole3021 ecf44e0c68 fix scope error 2018-01-06 22:28:42 -03:00
Cristobal Vergara edd5651e0e Added support for external providers as npm modules. 2018-01-06 22:28:42 -03:00
Raymond Feng 4d4e530955 Merge pull request #188 from cfjedimaster/master
look for a nameConflict option and use a uuid if value is makeUnique
2017-03-01 15:04:30 -08:00
Loay cbacece7f3 Merge pull request #194 from strongloop/Fix-finalNewLine
Fix insert of finalNewLine
2017-02-15 11:54:23 -05:00
Loay b6d837ad1a Fix insert of finalNewLine 2017-02-15 11:08:38 -05:00
Ryan Graham 1769a2a689
3.0.1
* Fix path joining/expanding (Loay)
2017-02-10 15:21:55 -08:00
Loay 39e20e53e5 Merge pull request #189 from strongloop/proper-path
Fix path joining/expanding
2017-02-10 16:35:23 -05:00
Loay c6978261c7 Fix path joining/expanding 2017-02-10 16:26:30 -05:00
Raymond Camden ec959d2c38 fix lint 2017-02-02 09:19:28 -06:00
Raymond Camden 907f83ac3a Support nameConflict and makeUnique options 2017-02-01 13:16:53 -06:00
Miroslav Bajtoš 080f18a985 3.0.0
* Update paid support URL (Siddhi Pai)
 * Start 3.x + drop support for Node v0.10/v0.12 (siddhipai)
 * Drop support for Node v0.10 and v0.12 (Siddhi Pai)
 * Start the development of the next major version (Siddhi Pai)
2016-12-21 12:31:35 +01:00
Simon Ho c73dbc43b6 Merge pull request #180 from strongloop/update-support-URL
Replicate .github from loopback repo
2016-12-07 00:01:34 -08:00
Siddhi Pai 3f105d7c7c Update paid support URL 2016-12-06 03:07:04 -08:00
siddhipai e9b6a0ee19 Start 3.x + drop support for Node v0.10/v0.12
Start 3.x + drop support for Node v0.10/v0.12
2016-11-21 13:24:37 -08:00
Siddhi Pai e70ff3c35c Drop support for Node v0.10 and v0.12 2016-11-19 02:17:12 -08:00
Siddhi Pai eb6cb41a62 Start the development of the next major version 2016-11-19 02:16:45 -08:00
Miroslav Bajtoš 1ed7c6cef0 1.10.0
* Continue middleware chain after download error (Miroslav Bajtoš)
 * Clean up "download()" implementation (Miroslav Bajtoš)
 * Return error when no file is uploaded (Loay)
 * Update README with correct doc links, etc (Amir Jafarian)
 * Upgrade loopback to 3.0.0 (Loay)
 * Fix `use strict` (Amir Jafarian)
 * Simplify mocha test in package.json (Amir Jafarian)
 * Fix linting errors (Amir Jafarian)
 * Auto-update by eslint --fix (Amir Jafarian)
 * Add eslint infrastructure (Amir Jafarian)
2016-11-11 16:59:20 +01:00
Miroslav Bajtoš cb87b9cf94 Merge pull request #174 from strongloop/refactor-download
Refactor download
2016-11-11 16:57:48 +01:00
Miroslav Bajtoš 6cb5a294c5 Continue middleware chain after download error
Stop sending constructing the error response directly inside the
storage component and send the error back to the application to handle
it.

As a result:

 - `File.afterRemoteError` hook is trigered now

 - App-provided error handling strategy is used to build error
   responses, e.g. using the production mode of strong-error-handler
   to hide sensitive information.
2016-11-10 15:58:39 -05:00