Cloudberry Powershell scripts failing since version 4.6 (or later) - "Redirect location is empty"
<p>A number of people have raised similar issues, but solutions suggested don't seem to help (including adding Set-CloudOption -PathStyle Path etc.)</p>

<p>I've been using multiple scripts based on the following example that have worked well for a number of years.  These scripts all fail when using any version of Cloudberry Explorer PRO above v4.5.1.98 (4.6..., 4.7... etc.), so I'm stuck using version 4.5.</p>

<p><strong>Example Script</strong>:</p>

<pre><code>add-pssnapin CloudBerryLab.Explorer.PSSnapIn

Set-CloudOption -UseSSL $true

Set-CloudOption -PermissionsInheritance "inheritall"

Set-CloudOption -ThreadCount 5

$s3 = Get-CloudS3Connection -UseSSL -Key kkk -Secret ssss

$dest = $s3 | Select-CloudFolder -Path bucket/D/Data-Users

$local = Get-CloudFileSystemConnection

$source = $local | Select-CloudFolder \\server\D\Data-Users

$source | Copy-CloudSyncFolders $dest -CompareByContent -IncludeSubFolders -DeleteOnTarget -SSE -StorageClass standard
</code></pre>

<p><strong>Error Reported</strong>:</p>

<blockquote>
  <p>Select-CloudFolder : Redirect location is empty At line:1 char:15
  + $dest = $s3 | Select-CloudFolder -path bucket/D/Data-Users
  +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Select-CloudFolder], Exceptio    n
      + FullyQualifiedErrorId : System.Exception,CloudBerryLab.Explorer.PSSnapIn<br>
  .Commands.SelectCloudFolder</p>
</blockquote>

<p>Any help would be greatly appreciated.</p>