Skip to content

invalid cache file location.  #306

@adamgorMSFT

Description

@adamgorMSFT

std::string cacheFilePath = MAT::GetAppLocalTempDirectory();

In a uwp app, MAT::GetAppLocalTempDirectory() returns a path like
"C:\Users\adamgor\AppData\Local\Packages\myApp_8wekyb3d8bbwe\LocalState"

However it then is appended to via cacheFilePath += tenantId;

cacheFilePath += tenantId;

which results in
"C:\Users\adamgor\AppData\Local\Packages\myApp_8wekyb3d8bbwe\LocalStatesomeFilename.db"

As you can see from the above result there needs to be a cacheFilePath += "/" + tenantId;
or equivalent to fix this lack of folder separation issue.
Alternatively if there is an API to do a Path::Combine, that would be even better.

In the interim, I was able to work around this by providing our own config["cacheFilePath"] override before Initialization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Issues that are not blockingbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions