You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to make sure that all paths in NodeConfig are stored in absolute form (or if that's not possible, relative, but it should be consistent).
And the code that concatenates absolute paths should be fixed conf.DataDir = filepath.Join(b.rootDataDir, conf.DataDir)
(it was found while I was debugging tests in #5527)
Implementation
DataDir, KeyStoreDir, RootDataDir, LogDir, LogFile should be absolute
Functions like getDefaultDataDir should be used correctly. And names of fields and methods should reflect the path type (perhaps it makes sense to introduce a wrapper type for FilePath to support both forms).
[status-im/status-react#9942] Upgradable paths in configs
Storing absolute path for different configs breaks compatibility on iOS
as app's dir is changed after upgrade. The solution is to store relative
paths and to concatenate it with `backend.rootDataDir`. The only
exception is `LogFile` as it is stored outside `backend.rootDataDir` on
Android. `LogDir` config was added to allow adding of custom dir for log
file.
Configs concerned:
`DataDir`
`LogDir`
`LogFile`
`KeystoreDir`
`BackupDisabledDataDir`
We need to make sure that mobile handles this correctly.
The text was updated successfully, but these errors were encountered:
[status-im/status-react#9942] Upgradable paths in configs
Storing absolute path for different configs breaks compatibility on iOS
as app's dir is changed after upgrade. The solution is to store relative
paths and to concatenate it with `backend.rootDataDir`. The only
exception is `LogFile` as it is stored outside `backend.rootDataDir` on
Android. `LogDir` config was added to allow adding of custom dir for log
file.
Configs concerned:
`DataDir`
`LogDir`
`LogFile`
`KeystoreDir`
`BackupDisabledDataDir`
thanks for the info, so I think our only solution would be make sure that all paths in NodeConfig are stored in relative path? and this was also my old understanding, but I didn't expect it was not consistent 🙂 @friofry
Problem
in some places DataDir is expected to be relative path
or
and other palces expect absolute paths:
We need to make sure that all paths in NodeConfig are stored in absolute form (or if that's not possible, relative, but it should be consistent).
And the code that concatenates absolute paths should be fixed
conf.DataDir = filepath.Join(b.rootDataDir, conf.DataDir)
(it was found while I was debugging tests in #5527)
Implementation
DataDir, KeyStoreDir, RootDataDir, LogDir, LogFile should be absolute
Functions like
getDefaultDataDir
should be used correctly. And names of fields and methods should reflect the path type (perhaps it makes sense to introduce a wrapper type for FilePath to support both forms).Acceptance Criteria
See status-im/status-mobile#9942
We need to make sure that mobile handles this correctly.
The text was updated successfully, but these errors were encountered: