Project

General

Profile

Actions

Bug #4787

closed

User having WRITE permission couldn't update a document

Added by Jing Tao almost 15 years ago. Updated over 14 years ago.

Status:
Resolved
Priority:
Normal
Category:
metacat
Target version:
Start date:
02/10/2010
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4787

Description

I think i reproduced the bug Jim mentioned:

A user having WRITE permission couldn't update a document.

Here are steps I did:
1. Create a simple document under user uid=jing. This document gives "READ+WRITE" permission to user uid=tao.
2. Save the document to metacat dev server as jing.4.1
3. Switch to another profile which has uid=tao.
4. Search online to find jing.4.1 and open it.
5. Make minor change on its title.
6. Save it to metacat and get the error:
<error>User tried to update an access module when they don't have "ALL" permission!</error>

I did another test:
All conditions are same except giving uid=tao "ALL" permission rather than "READ+WRITE" permission. This time, the updated document by uid=tao can be sent to metacat successfully.

It seems metacat doesn't handle a user's update action correctly, who only has "READ+WRITE" permission.

Actions

Also available in: Atom PDF