With current setup reading code attachment more than 8 MB results in error 
(#4028). Increase `max-content-length` to 50 MB allows reading code attachments 
upto maximum allowed 48 MB

## Description

Akka uses [max-content-length][1] to ensure limits on incoming request 
entities. By default it is 8 MB while OpneWhisk allows max code upto 48 MB. To 
enable such large action code as attachment increase the max-content-length` to 
50 MB

### Basic Test

This PR also adds a system basic test to ensure that such large actions can be 
created. Due to constrained resource on travis test only create action code 
upto 10 MB. However it can be increased via config by setting system property 
`whisk.action.size.max` (in MB)

## Related issue and scope
<!--- Please include a link to a related issue if there is one. -->
- [x] I opened an issue to propose and discuss this change (#4028)

## My changes affect the following components
<!--- Select below all system components are affected by your change. -->
<!--- Enter an `x` in all applicable boxes. -->
- [ ] API
- [ ] Controller
- [ ] Message Bus (e.g., Kafka)
- [ ] Loadbalancer
- [ ] Invoker
- [ ] Intrinsic actions (e.g., sequences, conductors)
- [ ] Data stores (e.g., CouchDB)
- [ ] Tests
- [ ] Deployment
- [ ] CLI
- [ ] General tooling
- [ ] Documentation

## Types of changes
<!--- What types of changes does your code introduce? Use `x` in all the boxes 
that apply: -->
- [ ] Bug fix (generally a non-breaking change which closes an issue).
- [ ] Enhancement or new feature (adds new functionality).
- [ ] Breaking change (a bug fix or enhancement which changes existing 
behavior).

## Checklist:
<!--- Please review the points below which help you make sure you've covered 
all aspects of the change you're making. -->

- [ ] I signed an [Apache 
CLA](https://github.com/apache/incubator-openwhisk/blob/master/CONTRIBUTING.md).
- [ ] I reviewed the [style 
guides](https://github.com/apache/incubator-openwhisk/wiki/Contributing:-Git-guidelines#code-readiness)
 and followed the recommendations (Travis CI will check :).
- [ ] I added tests to cover my changes.
- [ ] My changes require further changes to the documentation.
- [ ] I updated the documentation where necessary.

[1]: 
https://github.com/akka/akka-http/blob/668d13d094edfb610251994d8154ac1e018a1d9c/akka-http-core/src/main/resources/reference.conf#L414

[ Full content available at: 
https://github.com/apache/incubator-openwhisk/pull/4059 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to