Bug 403503 - mysql init looking for wrong defaults?
Summary: mysql init looking for wrong defaults?
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: GIT (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-22 13:41 UTC by Harald Sitter
Modified: 2019-01-22 22:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Sitter 2019-01-22 13:41:35 UTC
SUMMARY

https://cgit.kde.org/akonadi.git/tree/src/server/storage/dbconfigmysql.cpp#n360

```
        const QString confFile = StandardDirs::locateResourceFile("config", QStringLiteral("akonadi/mysql-global.conf"));

```

As far as I can tell that shouldn't have the akonadi/ prefix (as seen with other similar calls in that file). This seems to result in lookups going for $dir/akonadi/akonadi/mysql-global.conf which is wrong. Simply dropping the prefix should fix this problem as StandardDirs at a glance prefixes everything with akonadi/ forcefully. On a related note it may be a good idea to make StandardDirs either handle already prefixed arguments or raise an error.