[horde] IMP - Error on attachment download

Brent impuser at bitrealm.com
Wed Jul 8 23:28:28 UTC 2026


  Web server can't write to directories with a "+t" attribute (like  
/tmp). Create a new directory (/logs), make sure the web user has  
write access, then you'll get logs. This COULD be related to a session  
bug I filed already.

https://github.com/horde/Core/issues/192

I ran the logging updates and updated ticket #88. For those  
interested, here's what I saw:

Error in /logs/horde.log:
 

    2026-07-08T16:03:23-07:00 DEBUG: HORDE [imp] imp#88 debug:  
download() auth failure. getAuth='testuser' auth_app/imp=true  
sessionActive=false [pid 1486 on line 428 of  
"/var/www/horde/vendor/horde/imp/lib/Application.php"]

Seems horde can't find the active session.

    Session issue for admins can be replicated by going to  
(Administration->Configuration->Sessions). Could this be related?  
Could Horde be unable to find the session and that's why this is  
happening? I get an error when I click on "Sessions"

    A fatal error has occurred
Backend does not support session iteration
in /var/www/horde/vendor/horde/sessionhandler/src/SessionHandler.php:146


   *     require_once() /var/www/horde/web/horde/admin/sessions.php:3
   *     Horde\SessionHandler\SessionAdministrator->listAll()  
/var/www/horde/vendor/horde/horde/admin/sessions.php:50
   *     Horde\SessionHandler\SessionHandler->listSessions()  
/var/www/horde/vendor/horde/sessionhandler/src/SessionAdministrator.php:78


 

Quoting Angel Parra <angel at parranet.com>:

> Hello,
>
> I cannot get any useful information. The syslog claims a DB error  
> when patch is intsalled:
>
> 2026-07-09T00:24:15.996179+02:00 seth HORDE: [horde]  
> SQLSTATE[42000]: Syntax error or access violation: 1064 You have an  
> error in your SQL syntax; check the manual that corresponds to your  
> MariaDB server version for the right syntax to use near  
> '-test-imp88-readonly-download-auth_schema_info' at line 1 [pid 6951  
> on line 245 of  
> "/var/www/horde/vendor/horde/db/lib/Horde/Db/Adapter/Pdo/Base.php"]
>
> The web browset error on download is:
>
> https://test.myserver.com/horde/services/download/?app=imp&actionID=download_attach&id=2&muid={6}Monsol7161&view_token=ak7OG8B-Kq8aUU8WHaJwYYOhpJbNPzhZ9Wxj-UtR3Rv9B1RSxkQ&fn=/OBEOPARCESE RESUMEN NOMINAS 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.
>
> And file /tmp/horde.log is not generated.
>
> Did I miss any step to test it? It is non-compatible with my DB  
> configuration?
>
> Thank you!!
>
> Angel
>
> Quoting Torben Dannhauer <torben at dannhauer.info>:
>
>> Zitat von Angel Parra <angel at parranet.com>:
>>
>>> 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
>>>  
>>
>> Thanks for the fast test!
>>
>> i think we need to collect more data. I prepared  
>> https://github.com/horde/imp/tree/test/imp88-debug-logging for  
>> collecting the data.
>>
>> Please set $conf['log']['priority'] = 'DEBUG'; in your conf.php  
>> (default is NOTICE, which would silently filter this out), then  
>> trigger the download again. It should log a line like:
>>
>> imp#88 debug: download() auth failure. getAuth=... auth_app/imp=...  
>> sessionActive=...
>> Please paste that exact line back to us (from wherever your Horde  
>> log is configured, default /tmp/horde.log). You can revert the  
>> priority setting afterwards.
>>
>> thanks!
>
> --
> 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