Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Big bug with netlify ID and duplicate sites

  • #10811
    Avatar photo[anonymous]

    A big bug is present when you have a duplicate site.
    Here is an example:
    – I create my site1.com, put it online etc. everything’s fine.
    – I duplicate this site in publii to make fr.site1.com. I change the content to FR and therefore also the Netlify site ID. And I publish.

    => The problem at this point is that when the Netlify ID of fr.site1.com was changed in Publii, the ID of site1.com was changed too! It’s invisible…

    As a result, if I make a modification now on site1.com and publish, I’ll actually overwrite the contents of fr.site1.com on netlify because the ID is duplicated in both directories.

    PS : Publii Version: 0.43.1 (build 16393)

    #10816
    Avatar photo[anonymous]

    Hi,

    It is more strange than looks – I was able to reproduce this bug only once – later it was working as expected.

    The issue is definitely related to a fact that both websites uses the same uuid value – I will double check the code, but in fact it should be always unique and is regenerated during website clone

    The only solution is to change manually the uuid value in one of the websites under input/config/site.config.json

    #10817
    Avatar photo[anonymous]

    Hey Tomasz! Thanks for the feedback!

    Indeed, I can’t reproduce all the time either.

    On the other hand, when the problem is present after making a copy, the problem seems to stay and not disappear.

    Also, if I do the same test on other sites, sometimes it works, sometimes the problem is present.

    Curiously, the one where I manage to reproduce the problem is the first in my list of sites… I don’t know if it’s related.

    #10823
    Avatar photo[anonymous]

    As I wrote – the only way is manual change of uuid in input/config/site.config.json in one of these websites – it will decouple them. UUID is used to store passwords etc. as a key value. So if two websites have the same UUID then also passwords etc. are saved in the same place

    #10827
    Avatar photo[anonymous]

    I have found the reason – it will be fixed in the v.0.44 planned for the beginning of November.

    So if you duplicate website and you save configuration on the duplicated website, then it will clone the original website settings. If you duplicate website and restart the app, or just not save any configuration (server/site config) then all will be ok 🙂

    Thank you for reporting it, because this bug was a myster for a long time (some people had simliar issues, but I was unable to reproduce it)

    fix: https://github.com/GetPublii/Publii/commit/4b45fe5808ae031e754fac3bb3af4a8926c83cee

    #10834
    Avatar photo[anonymous]
    Tomasz Dziuda wrote:

    I have found the reason – it will be fixed in the v.0.44 planned for the beginning of November.

    So if you duplicate website and you save configuration on the duplicated website, then it will clone the original website settings. If you duplicate website and restart the app, or just not save any configuration (server/site config) then all will be ok 🙂

    Thank you for reporting it, because this bug was a myster for a long time (some people had simliar issues, but I was unable to reproduce it)

    fix: https://github.com/GetPublii/Publii/commit/4b45fe5808ae031e754fac3bb3af4a8926c83cee

    Thanks to you!
    Glad to be able to help improve Publii!
    Congratulations on finding it so quickly! 🥳