PDF attachments redirect to Businesses page

PDF attachments redirect to Businesses page

I’m seeing an issue with PDF attachments in Manager Desktop.

I was originally on version 26.7.23.3657, then updated to the latest available version, but the issue still persists.

I’ve tested this in both Safari and Google Chrome, with the same result.

What happens:

  1. I upload a fresh PDF attachment.

  2. It opens normally for a few minutes.

  3. After some time, clicking the same attachment no longer opens the PDF.

  4. Instead, Manager redirects me back to the Businesses page.

The attachment URL itself does not change. The exact same view-attachment URL works immediately after upload, then later redirects to the Businesses page.

Since this happens in both Safari and Chrome, and also happens with newly uploaded PDFs after a short period of time, it doesn’t seem to be a browser-specific issue.

Has anyone else seen this recently, or is this a known bug?

Hello @rishikesh,

Welcome to the forum.

I couldn’t reproduce your issue, however, I think it has to do with the fact that the behavior of click on pdf attachments changed.

Previously, you could view them online but now it downloads the file immediately.

It looks like in your case, Manager site doesn’t have the permissions to download the file, and on this failure, it redirects to Summary.

@Ealfardan Thanks a lot!

I just checked my macOS settings and Manager already has Full Disk Access, so that doesn’t seem to be the issue. I also checked Safari and Chrome for download/permission restrictions and couldn’t find anything blocking it.

Here’s a screen recording showing the issue:

I’ve also attached a screenshot of the macOS permissions for Manager.io.

One additional detail that may help reproduce it: if I upload a new PDF attachment, it opens/downloads correctly at first. After a few minutes, clicking that same attachment redirects me back to the Businesses page. The view-attachment URL itself is unchanged.

So the issue seems to happen after the attachment has been there for a short period, rather than being a permanent browser or filesystem permission problem.

Please let me know if there are any logs or diagnostics I can provide that would help track this down.

I will place this under bugs

I have the same problem with cloud edition. This is happening since the domain migrated from .io to .cloud. The attachment links that redirect to the business homepage are random, some newer, some older, from Sales Orders, Purchase Invoices, but it’s always the same ones.

I am having the same issue. It seems to be driven from the version in which the attachment was uploaded to Manager, rather than when, but I cannot be sure. I have some transactions where the attachment immediately opens in browser and some where it redirects to the Businesses landing page.

Hello,

I’m new to using Manager and I am experiencing the same issue. The attachments appear fine and then the next day it still shows the name of the attachment but when clicked it sends me to the Businesses page.

I’ve been able to verify that the files are actually in the Blobs folder and can be opened, so it seems it is really some kind of linking issue within Manager.

Also, I’m having the issue in both the mac and windows versions of Manager Desktop Edition.

Thank you for your support.

I had exactly the same problem with Manager Desktop on Windows and managed to recover all my attachments without modifying the accounting database or manually uploading the documents again.

In my case, the problem started after I changed the Data Folder and manually copied the existing files and subfolders to the new location.

The accounting database continued to work normally, and new attachments appeared against the transactions. However, clicking on them redirected me to the Businesses page, and native backups did not include the newly uploaded documents.

After investigating both the original and the new data folders, I noticed that all newly uploaded documents were physically present in the Blobs directory, but the Packs, Indexes and Filters directories had not been updated since the relocation.

Apparently, Manager stores newly uploaded documents in Blobs before incorporating them into TAR archives in the Packs directory. In my case, this mechanism stopped working correctly after the manual relocation.

When Manager created a backup, it included documents from the existing packed storage but omitted the newer documents stored in Blobs.

Fortunately, all attachment records, original filenames, content hashes and links to accounting transactions were still intact in the accounting database.

Here is how I recovered everything:

  1. I created a native Manager backup with attachments enabled, even though the backup was incomplete.

  2. I located the missing physical documents in the Blobs directory and the older documents in the existing Packs.

  3. I matched the physical files to the attachment records in the database using their SHA-256 hashes.

  4. I reconstructed the native .manager.tar backup by adding the missing physical files to its Blobs directory, following the original backup structure and removing file extensions from the blob filenames where necessary.

  5. I kept the accounting database completely unchanged.

  6. I created a new, empty Data Folder and imported the reconstructed backup using Import Business.

Manager automatically recreated the Packs, Indexes and Filters. All attachments became accessible again.

I then uploaded another document and created a new native backup to verify that the problem was actually resolved. The new backup correctly included all historical attachments as well as the newly uploaded document.

You do not need to perform the technical recovery steps manually. I used ChatGPT to analyse the database, compare the files, verify the hashes and reconstruct the backup. The entire recovery process takes about 10 minutes, and all your attachments will be accessible again.

You can simply provide an AI assistant with file analysis and code execution capabilities with the following:

  • Your current incomplete native Manager backup.

  • A ZIP archive of your application data folder, including Blobs, Packs, Indexes and Filters.

Then copy this entire reply as a prompt and ask it to reconstruct a complete native Manager backup following the procedure above, without modifying the accounting database.

Recommendation when changing the Data Folder:

First, create a native backup with attachments enabled. Then change the Data Folder to a completely empty directory. Do not manually copy anything into that directory. Instead, use Import Business to restore the backup you created earlier.

This allows Manager to recreate its own internal attachment storage structures.

I cannot confirm the exact internal software defect, but this procedure completely resolved the problem in my case.

Hopefully, this helps others avoid having to manually reattach all their documents.