Hi!, I'm fran

I wrote you last week about importing problem.
I solve it.
It was a configuration problem bu you my take a look to this situation.

No roles has access to import_image.
I was trying logged as admin account, so I supoused I have access.

The problem was solve when a grant access to authenticated user to import images and save again upload settings.

In a new installation there are no files extensions configured.

Comments

syscrusher’s picture

Assigned: Unassigned » syscrusher

Thanks for the report. This is similar to the problem reported at http://drupal.org/node/20583 due to insufficient permissions.

The problem with the administrative user is that this account doesn't necessarily belong to any special roles other than "authenticated user" and yet is supposed to be able to do everything. With image_import, though, I look up a list of extensions based upon the roles of which the user account is a member -- so if the admin user isn't a member of privileged roles, I find no extension lists.

I need to add a test in the code so that for the special case of the admin user, the "list of extensions" is defined as "all extensions that my module supports at all" rather than being obtained by looking up roles. That's a true code bug, not just a config problem, so I am changing the status of your issue from "fixed" to "active" until I get it fixed. Congratulations -- you've found a real bug. :-)

I plan to upgrade image_import.module so that it intelligently examines the system configuration settings, and advises the administrator what needs to be done to fix problems like this.

Thanks again for your help in testing the module.

Kind regards,
Scott

syscrusher’s picture

Title: Testing image_import » Administrative user has no valid extensions in image_import
syscrusher’s picture

Version: » master

This is corrected in the latest patch (2005-05-22).

Scott

Anonymous’s picture