commit | 3967143d619d55622090ce4643446ceb5e5ea368 | [log] [tgz] |
---|---|---|
author | Bogdan Caprita <caprita@google.com> | Fri Oct 09 15:31:01 2015 -0700 |
committer | Bogdan Caprita <caprita@google.com> | Fri Oct 09 15:31:01 2015 -0700 |
tree | f7d193209ef7c6b6eb76e883c8138dcf2c72dedb | |
parent | db8bf880a58cf2b8a14e69b7fbed23d938969da0 [diff] |
services/application: some fixes to errors returned when there are no envelopes This CL fixes two distinct problems: 1. When we run Match against a name for which there are no envelopes, it should return ErrNoExist instead of ErrInvalidSuffix. This matters for the device publish tool, which treats ErrNoExist to mean that there are no envelopes yet uploaded for the given application (whereas if it sees ErrInvalidSuffix, it complains and exits) 2. When we run Glob or TidyNow against the root of the application server and there are no applications on the server, it is failing with the confusing: applicationd:"".[__Glob|TidyNow]: Does not exist: applications The reason has to do with what i.store.BindObject("/applications").Children() returns when there are no actual app objects under /applications in the server's internal store. The fix is to properly handle this case. Unrelated to the above, updating the documentation for application remove to mention the option of using '*' for all profiles. Change-Id: I8e52e6452f40bdcf7c5dba89a37f1098c3ecfde7
This repository contains a reference implementation of the Vanadium APIs.
Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.