images permission problem

bkraegelin - December 12, 2008 - 10:33
Project:Windows Live Writer BlogAPI
Version:6.x-1.3
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I did set up a new website just for blogging. I have Drupal 6.6, WLW BlogAPI 6.x-1.3 and WLW Beta (Build 14.0.5025.904) German with file attachment PlugIn.

Following modules are activated:
from core   blog, no blogapi,
            color, comment, database logging,
            help, locale, menu, php filter,
            taxonomy, update status, upload
additional  administration menu, image,
            image cache modules, inline, markdown filter,
            search404, text size, print and pdf,
            backup_migrate, blogtheme, code filter,
            pathauto, token, WLW BlogAPI, external links

I have one user (and my root user), configured WLW, did give the user rights to manage his blog.

Blogging with WLW works, but I cannot upload any content. I activated upload module with user rights, didn't help.
Blogging with the browser works, uploading images with inline module works too.

How should I configure Drupal to get images (jpg, png) and files (pdf) uploaded?

#1

bkraegelin - February 19, 2009 - 11:44
Status:active» closed

Discovered a bug in Drupals core module 'user.module', which has an inconsistency handling international languages for roles.

Patching user.module helped.

Corresponding Drupal issue is http://drupal.org/node/376734

#2

bkraegelin - February 25, 2009 - 13:24
Status:closed» won't fix

Core Drupal developer suggests a fix to core module blogapi and contributed module wlw_blogapi.

Line 389 should be:

$roles = array_intersect(array_keys(user_roles(FALSE, 'administer content with blog api')), array_keys($user->roles));

This works immediately without any side effects. Changing user module needs more validation.

See http://drupal.org/node/376734

#3

bkraegelin - February 25, 2009 - 13:28
Status:won't fix» active

Sorry, wrong status assigned.

#4

bkraegelin - July 14, 2009 - 11:58
Status:active» closed

Close on no activity

#5

ShiinZu - August 6, 2009 - 20:59

Just to inform that I tested the fixes provided here and they work but there is a catch, the user has to be explicitly added to a role. Example the first drupal user doesn't have a defined role and this fix doesn't work unless i assign a role to that user. I haven't tested setting permissions to the authenticated used role (the one the first user is assigned by default) because i don't want any register users except administrators to manage the site content.
Anyway thanks for the fixes.

#6

jrglasgow - August 7, 2009 - 16:13

the code change n #2 has been committed to CVS

#7

cutie_pt2004 - October 8, 2009 - 09:29
Title:cannot upload images» images permission problem

Hi,

I'm using wlw_blogapi - 6.x-1.x-dev with Drupal 6.12.
I can post content and upload images. But, I got images permission problem.
It's working for admin but all other authenticated users can only see the content but not the uploaded images.
Does anyone know about this problem?
Thanks in advance.

 
 

Drupal is a registered trademark of Dries Buytaert.