Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

WHM 0.4.4 - Too many www service mutable data objects (tag 15002) created in a safe site #377

Open
Thierry61 opened this issue Apr 27, 2018 · 1 comment

Comments

@Thierry61
Copy link

Use safe-browser-v0.10.2-win-x64 & web-hosting-manager-v0.4.4-win-x64 in a local network with 8 vaults.

Steps to reproduce the problem:

  • Use a safe_vault program that can display the number of immutable data and the number of mutable data grouped by tags stored in its chunk store. If Maidsafe doesn’t have one, use my fork and:

    • Add the following element to safe_vault.vault.config file
    "stats": {
      "type_tags": {
        "registered_users": [ 0 ],
        "directories": [ 15000 ],
        "dns_entries": [ 15001 ],
        "www_services": [ 15002 ]
      }
    }
    • Prefix each command launching a vault with RUST_LOG=vault_stats=info to display each vault statistics in its own console.
  • Create a local safe network with 8 of such vaults where 8 is also the min_section_size parameter of safe_vault.routing.config file (so that each chunk of data stored in the network is duplicated in all vaults).

  • Launch the safe browser

  • Create an account. Observe that 9 MDs are created (8 directories and 1 registered user).

  • Authorize SAFE Browser. There are now 10 MDs (9 directories and 1 registered user).

  • Launch WHM and authorize it. The number of objects remains the same.

  • Create a public id. There are now 11 MDs (9 directories, 1 DNS entry and 1 registered user).

  • Define a simple static web site with n files with n > 1 (for example 12 files). Use files below 3KBytes each to simplify observation of immutable data.

  • Upload the site with WHM and choose the following method: Create website => Start from scratch => Upload files => Multi select n files (all at once). Observe the following problems:

    • The IHM displays only the first file

    • There is only 1 immutable data (instead of 12)

    • There are 12 www services (instead of 1)

    • There are 23 MDs (instead of 12)

  • Reupload the 11 missing files. Now the IHM displays correctly the 12 files and there are 12 immutable data objects as expected. But the number of www services is still incorrect: 12 instead of 1 (and so the same for the number of MDs: 23 instead of 12)

Note: This issue may have a link to issue #372

@hunterlester
Copy link
Contributor

Tracking with JIRA now: https://maidsafe.atlassian.net/browse/MAID-2644
Thank you for reporting this.

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

No branches or pull requests

2 participants