-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
config.replace is acting weird #2927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Gonna bump the priority in this one to P4, because it is blocking me (Just spent almost an hour chasing a bug to learn that it was already a known issue :( ) |
@Kubuxu can you give an update here? I know you wrote a test, is this behaving properly now? I also know that @whyrusleeping has mixed feelings about a 'replace' option, can I get a statement on https://github.com/ipfs/interface-ipfs-core/tree/master/API/config#configreplace and what your thoughts of what that call should do. |
I also have mixed feelings about config replace, I don't know what is the proper way for it to behave. It behaves correctly according to current spec/description as far as I know. |
Thank you, I did some more experiments and not seeing my issue on the latest master. Do note that replacing by a random .json file still makes the config get 'washed'. |
@diasdavid would you consider this issue resolved? |
yes :) |
Version/Platform/Processor information (from
ipfs version --all
):Type: bug
Area: api, commands
Priority (from P0: functioning, to P4: operations on fire): P2
Description:
After executing a
ipfs config replace
, ipfs replaces the config but not to one that was defined and if aipfs config show
is executed after, theContent-Type
of the response istext/plain
instead of the expectedapplication/json
. This breaks js-ipfs-api config.replace feature.This was detected on: https://github.com/ipfs/js-ipfs-api/pull/307/files#r69281789
How to reproduce using just the ipfs CLI
The text was updated successfully, but these errors were encountered: