Troubleshooting: Content and Localization Link Inaccessible Due to Hash Files

Follow
    Applies to:
  • SecureAuth Identity Platform
Deployment model:
  • Cloud
  • Hybrid
  • On Premises
  • Version Affected: All
     
     

    Overview

    The Content and Localization link, under the Overview tab of the Admin Console, is inaccessible and shows a Server Error:

    Data at the root level is invalid. Line 1, position 1.

    The full error page shows an XmlException raised from WebAdminVerbiageEditor:A Server Error in '/SecureAuth0' Application page, showing an XmlException: Data at the root level is invalid, with a stack trace through MFC.WebApp.SecureAuth.WebAdminVerbiageEditor.

     

    Cause

    The realm's Resource folder (D:\SecureAuth\SecureAuth<realm>\Resource) contains hash files (.md5, .sha1, or .sha256) alongside the language .resx files. The Verbiage Editor tries to parse these hash files as XML, which fails.File Explorer showing a realm's Resource folder with .md5, .sha1, and .sha256 hash files present alongside the language .resx files.

     

    Resolution

    1. Open PowerShell in admin mode.
    2. To preview which hash files would be removed across every realm, without deleting anything yet, run:
      $Realms = Get-ChildItem D:\SecureAuth -Directory | Where {$_.Name -match "SecureAuth[0-9]"}
      Foreach ($Realm in $Realms){
      	$Realm = $Realm.Fullname;
      	GCI "$Realm" -recurse | Where {$_.extension -eq ".md5" -or $_.extension -eq ".sha1" -or $_.extension -eq ".sha256"} | Remove-Item -WhatIf
      }
    3. To actually delete the hash files from every realm's Resource folder, run:
      $Realms = Get-ChildItem D:\SecureAuth -Directory | Where {$_.Name -match "SecureAuth[0-9]"}
      Foreach ($Realm in $Realms){
      	$Realm = $Realm.Fullname;
      	GCI "$Realm" -recurse | Where {$_.extension -eq ".md5" -or $_.extension -eq ".sha1" -or $_.extension -eq ".sha256"} | Remove-Item -force
      }
      To delete the hash files from a single realm instead, run:
      GCI "D:\SecureAuth\SecureAuth1" -recurse | Where {$_.extension -eq ".md5" -or $_.extension -eq ".sha1" -or $_.extension -eq ".sha256"} | Remove-Item -force
      Once removed, the affected realm's Resource folder contains only the language .resx files:The same Resource folder after the hash files have been removed, showing only the language .resx files remaining.
    4. Log in to the Admin Console and go to the Content and Localization link under the Overview tab. It is now accessible.



     

    SecureAuth Knowledge Base Articles provide information based on specific use cases and may not apply to all appliances or configurations. Be advised that these instructions could cause harm to the environment if not followed correctly or if they do not apply to the current use case.

    Customers are responsible for their own due diligence prior to utilizing this information and agree that SecureAuth is not liable for any issues caused by misconfiguration directly or indirectly related to SecureAuth products.

    0 out of 0 found this helpful

    Comments

    0 comments

    Please sign in to leave a comment.