Mantis - Quercus
Viewing Issue Advanced Details
2152 major always 11-07-07 10:21 11-12-07 12:34
rsouissi  
nam  
normal  
closed 3.1.3  
fixed  
none    
none 3.1.4  
0002152: phpBB2 profile update doesn't work with Resin 3.1.x (compile=false)
I use phpBB v2.0.22 under windows and PostgreSQL.
This issue happens with Resin 3.1.2 and 3.1.3.

Since compile=true doesn't allow me to login at all (see issue 0002151), this bug is only reproducable under compile=false.

How to reproduce:
- Login with any user
- Click on Profile link
- Change any information, like email address and enter current password
- Click on Submit
=> It returns an error page saying: The avatar filetype must be .jpg, .gif or .png
- It is supposed to skip avatar validation since it was not modfied. This is what happens under native PHP.

The only workarround I found is to disable avatar functionality using the Admin Panel of phpBB, but this means limiting the functionality of the forum.

Notes
(0002473)
mo   
11-09-07 19:06   
Like bug 2124, I was not able to reproduce this problem with the
current dev snapshot. Could you download it and verify that this
bug is in fact fixed?

http://caucho.com/download/resin-3_1-snap.zip [^]

thanks much
Mo
(0002476)
rsouissi   
11-10-07 12:18   
Hi,

Yes, I tried with latest snapshot and the problem happens.
I even used a clean installation from phpBB2.0.22 and same thing.

Make sure in the Admin Panel/Configuration, the following option is checked:
- Enable avatar uploading

The same setup with native PHP works.
(0002479)
mo   
11-10-07 18:13   
After enabling the avatar switches in the config panel,
this error can be reproduced in the dev version.

The problem is realted to the user uplaod file name,
even though the field is blank in the browser, the
PHP script thinks the user supplied an upload file:

usercp_register.php: 472: user_avatar_upload is "/C:/caucho_dev/resin-MOD/webapps/ROOT/WEB-INF/upload/php1542821947tmp"
(0002480)
mo   
11-12-07 12:07   
I just checked in a fix for this bug along with these qa tests:

php/0863.qa
php/0864.qa