Skip to content
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

fix: work around dot in pin service name #1772

Merged
merged 2 commits into from
Apr 30, 2021
Merged

Conversation

lidel
Copy link
Member

@lidel lidel commented Apr 28, 2021

This is a temporary workaround that maintains most of the functionality while being compatible with pin remote and config commands in go-ipfs 0.8.0:

  • when service is added via webui, we replace . with _ so the issue (Pinning problems when a service name includes dot #1770) never surfaces
  • if service with . in name was already added or is added via CLI, we disable button for enabling auto upload of MFS, because it is not possible to make it work in go-ipfs 0.8.0, but everything else works as expected (manual pinning to "nft.storage" works fine)

Closes #1770 (but we will have a separate fix in go-ipfs to support . in key names)

@alanshaw just for completeness, would it be ok for you to change nft.storage to nft-storage on https://nft.storage docs about pin remote service add?

This is a temporary workaround that maintains most of functionality
and works with go-ipfs 0.8.0

Context:
#1770
@lidel lidel temporarily deployed to Deploy April 28, 2021 12:29 Inactive
@alanshaw
Copy link
Member

nftstorage/nft.storage@deff12e

@lidel lidel temporarily deployed to Deploy April 28, 2021 16:25 Inactive
This adds fallback to new notation
from ipfs/kubo#8096

We default to old one because new one matters only when '.' is present
in the service name
@lidel lidel temporarily deployed to Deploy April 30, 2021 00:24 Inactive
@lidel lidel merged commit 7a99ae1 into main Apr 30, 2021
@lidel lidel deleted the fix/dot-in-service-name branch April 30, 2021 13:51
olizilla added a commit to ipfs/pinning-services-api-spec that referenced this pull request Apr 30, 2021
olizilla added a commit to ipfs/pinning-services-api-spec that referenced this pull request Apr 30, 2021
@olizilla
Copy link
Member

changed on the spec too ipfs/pinning-services-api-spec#76

@lidel
Copy link
Member Author

lidel commented Apr 30, 2021

Thanks! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pinning problems when a service name includes dot
3 participants