rabbah commented on a change in pull request #3147: Disallow create and update
of package with reserved names.
URL:
https://github.com/apache/incubator-openwhisk/pull/3147#discussion_r159737713
##########
File path: core/controller/src/main/scala/whisk/core/controller/Packages.scala
##########
@@ -60,6 +58,9 @@ trait WhiskPackagesApi extends WhiskCollectionAPI with
ReferencedEntities {
/** JSON response formatter. */
import RestApiCommons.jsonDefaultResponsePrinter
+ /** Reserved package names. */
+ protected[core] val RESERVED_NAMES = Set("default")
Review comment:
The rationale for reserving `default` is that it's tied to web actions in
the "default" package. An explicitly named package with that name would be
unreachable.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services