View Issue Details

IDProjectCategoryView StatusLast Update
0010964mantisbtauthenticationpublic2014-01-21 17:06
ReporterWim van Ravesteijn Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status confirmedResolutionopen 
PlatformNAOSNAOS VersionNA
Product Version1.1.8 
Summary0010964: Anonymous account problems at 'reporter' access level (no bugnote_edit_threshold, public/private problems)
Description

The anonymous access is not properly implemented. Any person using the anonymous account has same access as somebody that has a personal reporter account. This means that any bug posted by anonymous as private is visible for every anonymous user, but not registered reporters. Also notes of anonymous can be edited by any other user logged in as anonymous.

Additional Information

Anonymous actions should be limited to 'add', 'edit' or 'delete' should be disabled. Also private bugs should not be visible anymore after reporting them.

Possible solution: any action of 'anonymous' should be stored in the database under a different user_id than the ID of $g_anonymous_account.

TagsNo tags attached.

Relationships

parent of 0010884 closeddhx Make 'edit', 'delete', and 'make private' buttons on bugnotes independently configurable 

Activities

dhx

dhx

2009-09-19 02:34

reporter   ~0022969

What access level is your anonymous account set at? MantisBT does allow you to set the access level to "reporter" (or whatever else you like) although this is obviously not recommended. Usually you should only set the anonymous account to a "viewer" access level. Also please make sure you mark your anonymous account as "protected" so the account cannot be updated by non-administrators.

Wim van Ravesteijn

Wim van Ravesteijn

2009-09-19 07:05

reporter   ~0022971

The access level of anonymous account is 'reporter'. The idea of using the anonymous account is to make it easier for users to report bugs, without having to register first an account. Obvious 'anonymous' needs to be reporter for this.
Also adding notes can be useful, but not totally sure about that yet.

If the anonymous account is only meant for viewing, a note about this in the documentation wouldn't be bad, to warn people about the issues I mentioned.

The anonymous account is marked as protected.

dhx

dhx

2009-09-19 10:40

reporter   ~0022972

It isn't currently possible to set a threshold for who can edit bugnotes (it is just an on/off toggle). There is a threshold for deleting bugnotes however. It wouldn't be too hard to implement a bugnote editing threshold and create a new (default) access level called "anonymous" which is below the bugnote editing threshold.

Public/private won't really work properly with anonymous accounts unless you don't mind the anonymous users losing read access to it right after posting. The whole purpose of being anonymous is that you shouldn't be able to tell different anonymous users apart. This means we can't work out which anonymous user posted a bug or bugnote that is marked as private. What we could do is provide password access to bugs so that anonymous users can use a password to access the private bug they've submitted?

Wim van Ravesteijn

Wim van Ravesteijn

2009-09-19 15:04

reporter   ~0022981

That public/private does not work properly with anonymous is not such a big problem I would say. Of course not nice, but in that case people should simply not use anonymous and register first.

With password access you mean that somebody has to fill in a password when submitting a bug anonymous, which he can use to access it afterwards? Might be an option, but than it might get almost easier to fully register. One could simply add a warning behind the private option that access is lost immediately after posting, unless you register first.

For the moment I've installed a cronjob that changes the user_id of posts made by anonymous to a second anonymous user. This works, but takes some time before it gets into effect. I suppose that an option to store the anonymous posts under different user_id than it uses to view will solve biggest part of the problem. That you indeed cannot edit your own stuff should be accepted (for that you can register).

giallu

giallu

2009-09-20 03:15

reporter   ~0022983

AFAICT the problem here is that anonymous is mapped to a real user with a given set of privileges, corresponding to the chosen user's access level.

I think that was a shortcut during development of the feature and if we decide it's a feature important enough we should rethink how that's handled.

dhx

dhx

2009-09-20 06:22

reporter   ~0022985

The more I think about it, the more I can understand why you may want more than one anonymous account at a time... ie, if you want to have different permissions for anonymous users from different IP ranges (internal vs external for example). Therefore I think it would be best to aim for Mantis to not have a single hardcoded anonymous account.

giallu

giallu

2009-09-20 13:05

reporter   ~0022991

Uhm, that starts to be cumbersome... so we should rely on the client's IP address to grant permissions? doesn't sound right

Zamolxis

Zamolxis

2010-01-05 08:25

reporter   ~0024041

@Wim van Ravesteijn: This may not solve all your problems, but could be a temporary workaround. What I did for my project was to give anonymous user a Viewer profile, but then I granted Viewers the right to create reports (from Manage Config > Workflow Thresholds), but not to add/edit notes. I had to go for this as I was getting lots of spam notes otherwise (probably from bots), while I would like to keep the right for reporting for anonymous users.