Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andrew 52 posts 234 karma points
    Jan 25, 2022 @ 15:38
    Andrew
    0

    uSync Snapshots import error in GetDateFromFolder

    Hi again,

    I've spotted a problem with the snapshot import.

    When I import a snapshot on my local machine, it creates a folder with a random name eg "1ruguqhz.zbi"

    When I try to reload the list of snapshots, I get an error from umbraco/backoffice/usync/snapshotapi/GetSnapshots

    System.ArgumentOutOfRangeException: Length cannot be less than zero. (Parameter 'length')
       at System.String.Substring(Int32 startIndex, Int32 length)
       at uSync.Snapshots.Services.SnapshotService.GetDateFromFolder(String folder)
       at uSync.Snapshots.Services.SnapshotService.GetSnapshotInfo(String folder, Boolean local)
    

    If I rename the random folder back to the name of the zip, then the list of snapshots starts working again

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Jan 25, 2022 @ 16:22
    Kevin Jump
    100

    Hi

    Yeah thanks for spotting that, I've raised (and closed) an issue, as we've put a fix into the next patch release.

    https://github.com/Jumoo/uSync.Complete.Issues/issues/156

    you can try the patch release from our nightly feed

    https://dev.azure.com/jumoo/Public/packaging?a=package&feed=nightly&package=uSync.Complete&protocolType=NuGet&version=9.0.7-rc001.20220125.1

  • Andrew 52 posts 234 karma points
    Jan 25, 2022 @ 16:25
    Andrew
    0

    Thanks

  • Andrew 52 posts 234 karma points
    Jan 25, 2022 @ 18:51
    Andrew
    0

    Its working with the nightly build

Please Sign in or register to post replies

Write your reply to:

Draft