[horde] IMP - Error on attachment download

Angel Parra angel at parranet.com
Wed Jul 8 20:10:14 UTC 2026


Hello,

   I just test with the following update steps:


  # sudo -u www-data composer update -W
  # sudo -u www-data composer update -W horde/horde:6.x-dev
  # sudo -u www-data composer update -W horde/imp:7.x-dev
  # sudo -u www-data composer update -W horde/core:3.x-dev
  # wget  
https://github.com/horde/Core/archive/refs/heads/test/imp88-readonly-download-auth.zip
  # unzip imp88-readonly-download-auth.zip
  # cp -rf Core-test-imp88-readonly-download-auth/* vendor/horde/core/
  # chown www-data:www-data -R vendor/horde/core/*

  Problem is still there.

   Best regards

     Angel


Quoting Torben Dannhauer <torben at dannhauer.info>:

> I have a potential fix, will push it in some hours.
>
> Can you test that?
>
>
> Von unterwegs gesendet
> Sent from mobile
>
>
>> Am 08.07.2026 um 17:47 schrieb Angel Parra <angel at parranet.com>:
>>
>> 
>> Hello,
>>
>>  Latest IMP 7.0.2 (+ comit ae468ef) still presents the download  
>> problem for attachment files.
>>
>>  Also a new bug about pre-view scrolling. Some erratic problem on  
>> email preview on main IMP window (on a PC using chrome and Firefox,  
>> I do not test others). When the mail is longer than the windows,  
>> some mails do not scroll. For example the mail "Re: [horde]  
>> Activesync : call for testing II" from  
>> "<horde-bounces at lists.horde.org>"  Delivery-date: Tue, 07 Jul 2026  
>> 17:19:42 +0200 does not scroll on pre-view.
>>
>>  Sorry, but I cannot give any way to reproduce it. Just a mail  
>> everyone on this list have that shows the error.
>>
>>
>>   Best regards
>>
>>      Angel
>>
>>
>>
>>
>> Quoting Brent <impuser at bitrealm.com>:
>>
>>> Yeah, if I install the dev-FRAMEWORK_6_0 of imp, then I can view source:
>>>
>>> composer update horde/imp:dev-FRAMEWORK_6_0
>>>
>>> Still can't download an attachment...get a 500 error.
>>>
>>> I'm a bit unclear how to test things...should I be using ALL the  
>>> dev-FRAMEWORK_6_0 for everything?
>>>
>>> brent
>>>
>>> Quoting Angel Parra <angel at parranet.com>:
>>>
>>>> Hi,
>>>>
>>>> For me, after manual update of latest IMP:
>>>>
>>>> # cd /var/www/horde
>>>> # sudo -u www-data composer update
>>>> # wget https://github.com/horde/imp/archive/refs/heads/FRAMEWORK_6_0.zip
>>>> # unzip FRAMEWORK_6_0.zip
>>>> # cp -rf imp-FRAMEWORK_6_0/* vendor/horde/imp/
>>>> # chown -R www-data:www-data vendor/horde/imp/*
>>>>
>>>> "source email" works OK.
>>>>
>>>> I only have errors on:
>>>>   - "Download button" of a file (pdf in my test): Looks like  
>>>> there’s a problem with this site. The server at server.domain.com  
>>>> sent back an error: 500 Internal Server Error
>>>> - "Download All (2 Attachments)": A fatal error has occurred.  
>>>> User is not authenticated.
>>>>
>>>> Works OK:
>>>> - Click over each file name
>>>> - View source
>>>> - Text View
>>>> - View Related
>>>> - View Alternative
>>>> - View images
>>>>
>>>> Best regards
>>>>
>>>> Angel
>>>>
>>>> Quoting Brent <impuser at bitrealm.com>:
>>>>
>>>>> When trying to view a source email, I get:
>>>>>
>>>>> A fatal error has occurred
>>>>> Cannot create Horde_View_Topbar Root cause: Invalid PKCS#7  
>>>>> padding byte: 0x8B
>>>>> in /var/www/horde/vendor/horde/injector/src/Injector.php:513
>>>>>
>>>>>  1. require_once() /var/www/horde/web/imp/dynamic.php:3
>>>>>  2. IMP_Dynamic_Base->__construct()  
>>>>> /var/www/horde/vendor/horde/imp/dynamic.php:33
>>>>>  3. IMP_Dynamic_Mailbox->_init()  
>>>>> /var/www/horde/vendor/horde/imp/lib/Dynamic/Base.php:90
>>>>>  4. Horde\Injector\Injector->getInstance()  
>>>>> /var/www/horde/vendor/horde/imp/lib/Dynamic/Mailbox.php:72
>>>>>  5. Horde\Injector\Injector->get()  
>>>>> /var/www/horde/vendor/horde/injector/src/Injector.php:627
>>>>>  6. require_once() /var/www/horde/web/imp/dynamic.php:3
>>>>>  7. IMP_Dynamic_Base->__construct()  
>>>>> /var/www/horde/vendor/horde/imp/dynamic.php:33
>>>>>  8. IMP_Dynamic_Mailbox->_init()  
>>>>> /var/www/horde/vendor/horde/imp/lib/Dynamic/Base.php:90
>>>>>  9. Horde\Injector\Injector->getInstance()  
>>>>> /var/www/horde/vendor/horde/imp/lib/Dynamic/Mailbox.php:72
>>>>> 10. Horde\Injector\Injector->get()  
>>>>> /var/www/horde/vendor/horde/injector/src/Injector.php:627
>>>>> 11. Horde\Injector\Injector->createInstance()  
>>>>> /var/www/horde/vendor/horde/injector/src/Injector.php:466
>>>>> 12. Horde\Injector\Binder\AnnotatedSetters->create()  
>>>>> /var/www/horde/vendor/horde/injector/src/Injector.php:409
>>>>> 13. Horde\Injector\Binder\Implementation->create()  
>>>>> /var/www/horde/vendor/horde/injector/src/Binder/AnnotatedSetters.php:91
>>>>> 14. Horde\Injector\Binder\Implementation->getInstance()  
>>>>> /var/www/horde/vendor/horde/injector/src/Binder/Implementation.php:87
>>>>> 15. ReflectionClass->newInstanceArgs()  
>>>>> /var/www/horde/vendor/horde/injector/src/Binder/Implementation.php:107
>>>>> 16. Horde_View_Topbar->__construct()
>>>>> 17. Horde_Core_Topbar->getTree()  
>>>>> /var/www/horde/vendor/horde/horde/lib/View/Topbar.php:61
>>>>> 18. Horde_Registry->hasPermission()  
>>>>> /var/www/horde/vendor/horde/core/lib/Horde/Core/Topbar.php:82
>>>>> 19. Horde_Registry->isAuthenticated()  
>>>>> /var/www/horde/vendor/horde/core/lib/Horde/Registry.php:1849
>>>>> 20. Horde_Core_Auth_Application->transparent()  
>>>>> /var/www/horde/vendor/horde/core/lib/Horde/Registry.php:2382
>>>>> 21. Horde_Registry->getAuthCredential()  
>>>>> /var/www/horde/vendor/horde/core/lib/Horde/Core/Auth/Application.php:451
>>>>> 22. Horde_Registry->_getAuthCredentials()  
>>>>> /var/www/horde/vendor/horde/core/lib/Horde/Registry.php:2590
>>>>> 23. Horde\Core\Auth\AuthCredentialStore->get()  
>>>>> /var/www/horde/vendor/horde/core/lib/Horde/Registry.php:2646
>>>>> 24. Horde\Core\Session\HordeSession->getEncrypted()  
>>>>> /var/www/horde/vendor/horde/core/src/Auth/AuthCredentialStore.php:197
>>>>> 25.  
>>>>> Horde\Core\Session\HordeSessionFactory::{closure:Horde\Core\Session\HordeSessionFactory::create():73}()  
>>>>> /var/www/horde/vendor/horde/core/src/Session/HordeSession.php:445
>>>>> 26. Horde_Secret->read()  
>>>>> /var/www/horde/vendor/horde/core/src/Session/HordeSessionFactory.php:74
>>>>> 27. Horde\Crypt\Blowfish\Blowfish->decrypt()  
>>>>> /var/www/horde/vendor/horde/secret/lib/Horde/Secret.php:93
>>>>> 28. Horde\Crypt\Blowfish\Blowfish::unpad()  
>>>>> /var/www/horde/vendor/horde/crypt_blowfish/src/Blowfish.php:113
>>>>>
>>>>> I also get a 500 when trying to download an attachment. I can  
>>>>> try to dig in to find what it is complaining about.
>>>>>
>>>>> brent
>>>>>
>>>>> Quoting Angel Parra <angel at parranet.com>:
>>>>>
>>>>>> Error details:
>>>>>>
>>>>>> https://myserver.mydomain.com/horde/services/download/?app=imp&actionID=download_attach&id=2&muid={6}Monsol7161&view_token=aj_VMBxq0Ba0uCU7GDVypm3SrEaP-CW0YlxY4HLj40AlFrsCV_o&fn=/FILE NAME JUNIO 2026.pdf podría tener un problema temporal o podría haberse  
>>>>>> movido.
>>>>>>
>>>>>> Código de error: 500 Internal Server Error
>>>>>>
>>>>>>    El sitio podría estar no disponible temporalmente o  
>>>>>> demasiado ocupado. Vuelva a intentarlo en unos momentos.
>>>>>>
>>>>>> Best regards
>>>>>>
>>>>>> Angel
>>>>>>
>>>>>> Quoting Angel Parra <angel at parranet.com>:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> I cannot find any useful log. But if the mail has 2  
>>>>>>> attachments and you use
>>>>>>> "Downlaod All (2 Attachments) the error seems to be with Tokens:
>>>>>>>
>>>>>>> A fatal error has occurred
>>>>>>> User is not authenticated.
>>>>>>> in /var/www/horde/vendor/horde/imp/lib/Application.php:426
>>>>>>>
>>>>>>> 1. require_once()  
>>>>>>> /var/www/horde/web/horde/services/download/index.php:3
>>>>>>> 2. Horde_Registry->callAppMethod()  
>>>>>>> /var/www/horde/vendor/horde/horde/services/download/index.php:34
>>>>>>> 3. IMP_Application->download()  
>>>>>>> /var/www/horde/vendor/horde/core/lib/Horde/Registry.php:1295
>>>>>>>
>>>>>>> Details
>>>>>>> The full error message is logged in Horde's log file, and is  
>>>>>>> shown below only to administrators. Non-administrative users  
>>>>>>> will not see error details.
>>>>>>>
>>>>>>> IMP_Exception Object
>>>>>>> (
>>>>>>>    [message:protected] => User is not authenticated.
>>>>>>>    [string:Exception:private] =>
>>>>>>>    [code:protected] => 0
>>>>>>>    [file:protected] =>  
>>>>>>> /var/www/horde/vendor/horde/imp/lib/Application.php
>>>>>>>    [line:protected] => 426
>>>>>>>    [trace:Exception:private] => Array
>>>>>>>        (
>>>>>>>            [0] => Array
>>>>>>>                (
>>>>>>>                    [file] =>  
>>>>>>> /var/www/horde/vendor/horde/core/lib/Horde/Registry.php
>>>>>>>                    [line] => 1295
>>>>>>>                    [function] => download
>>>>>>>                    [class] => IMP_Application
>>>>>>>                    [type] => ->
>>>>>>>                )
>>>>>>>
>>>>>>>            [1] => Array
>>>>>>>                (
>>>>>>>                    [file] =>  
>>>>>>> /var/www/horde/vendor/horde/horde/services/download/index.php
>>>>>>>                    [line] => 34
>>>>>>>                    [function] => callAppMethod
>>>>>>>                    [class] => Horde_Registry
>>>>>>>                    [type] => ->
>>>>>>>                )
>>>>>>>
>>>>>>>            [2] => Array
>>>>>>>                (
>>>>>>>                    [file] =>  
>>>>>>> /var/www/horde/web/horde/services/download/index.php
>>>>>>>                    [line] => 3
>>>>>>>                    [args] => Array
>>>>>>>                        (
>>>>>>>                            [0] =>  
>>>>>>> /var/www/horde/vendor/horde/horde/services/download/index.php
>>>>>>>                        )
>>>>>>>
>>>>>>>                    [function] => require_once
>>>>>>>                )
>>>>>>>
>>>>>>>        )
>>>>>>>
>>>>>>>    [previous:Exception:private] =>
>>>>>>>    [logged] => 1
>>>>>>>    [extraDetails:protected] =>
>>>>>>>    [isLogged:Horde\Exception\HordeException:private] =>
>>>>>>>    [_logLevel:protected] => 0
>>>>>>> )
>>>>>>>
>>>>>>> Quoting Torben Dannhauer <torben at dannhauer.info>:
>>>>>>>
>>>>>>>> Internal server error usually comes along some logs in horde  
>>>>>>>> log files or php log files.
>>>>>>>>
>>>>>>>> Can you share?
>>>>>>>>
>>>>>>>> Torben
>>>>>>>>
>>>>>>>> Von unterwegs gesendet
>>>>>>>> Sent from mobile
>>>>>>>>
>>>>>>>>>> Am 25.06.2026 um 21:47 schrieb Angel Parra <angel at parranet.com>:
>>>>>>>>>>
>>>>>>>>>> Hello,
>>>>>>>>>>
>>>>>>>>>> The latest IMP shows an error: 500 Internal Server Error
>>>>>>>>>>
>>>>>>>>>> When you clink on the download of an attached file (I test  
>>>>>>>>>> with a pdf). But the print and "over file name" clicks wotk  
>>>>>>>>>> OK.
>>>>>>>>>>
>>>>>>>>>> Thank you
>>>>>>>>>>
>>>>>>>>>> Angel
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Horde mailing list
>>>>>>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>>>>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>>>>>>
>>>>>>>> --
>>>>>>>> Horde mailing list
>>>>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>>>>>
>>>>>>> --
>>>>>>> Horde mailing list
>>>>>>> Frequently Asked Questions: http://horde.org/faq/To  
>>>>>>> unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>>>>
>>>>>> --
>>>>>> Horde mailing list
>>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>>
>>>> --
>>>> Horde mailing list
>>>> Frequently Asked Questions: http://horde.org/faq/To unsubscribe,  
>>>> mail: horde-unsubscribe at lists.horde.org
>>> --
>>> Horde mailing list
>>> Frequently Asked Questions: http://horde.org/faq/
>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>
>> --
>> Horde mailing list
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org




More information about the horde mailing list