[IOT-1831] Fix requested permission
1. Calculate requestedPermission based on requestInfo->method,
inadvertently removed by recent change
1c13401adfdabcc9de0a9bbd1e6eb2abf749faf6.
2. Add asserts to catch similar bugs in the future.
3. Logging improvements related to this investigation.
Change-Id: I9f6119901d63422f4646142c52fd45586bb75366
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17379
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Reviewed-by: Mike Fenelon <mike.fenelon@microsoft.com>