Mantis

Attachement fichier

Posted by Btte 
Attachement fichier
October 09, 2008 05:17PM
Je voudrais interdire l'attachement de fichier par un reporter à un bug dont il n'est pas le reporter.
Existe-t-il une variable?
Je suis en environnement unix solaris.
Re: Attachement fichier
October 09, 2008 05:24PM
Non pas à ma connaissance.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
gom
Re: Attachement fichier
October 14, 2008 10:04AM
Quote
Btte
Je voudrais interdire l'attachement de fichier par un reporter à un bug dont il n'est pas le reporter.
Existe-t-il une variable?
Je suis en environnement unix solaris.

Bonjour,

Oui c'est possible :

	# --- file upload settings --------
	# This is the master setting to disable *all* file uploading functionality
	#
	# If you want to allow file uploads, you must also make sure that they are
	#  enabled in php.  You may need to add 'file_uploads = TRUE' to your php.ini
	#
	# See also: $g_upload_project_file_threshold, $g_upload_bug_file_threshold,
	#   $g_allow_reporter_upload
	$g_allow_file_upload	= ON;

[...]

	# access level needed to upload files to attach to a bug
	# You can set this to NOBODY to prevent uploads to bugs but note that
	#  the reporter of the bug will still be able to upload unless you set
	#  $g_allow_reporter_upload or $g_allow_file_upload to OFF
	# See also: $g_upload_project_file_threshold, $g_allow_file_upload,
	#			$g_allow_reporter_upload
	$g_upload_bug_file_threshold	= UPDATER;

[...]

	# --- reporter can upload ---------
	# Allow reporters to upload attachments to bugs they reported.
	$g_allow_reporter_upload	= ON;

Il te suffit de préciser dans "$g_upload_bug_file_threshold" à partir de quel droit utilisateur il sera possible d'ajouter une pièce-jointe à bug pour lequel on est pas le rapporteur. J'ai mis ci-dessus "Testeur" (= "Updater"), mais tu peux carrément mettre "NOBODY" ou DEVELOPER ou MANAGER ou ADMINISTRATOR.



Gôm


Mantis : 1.0.6 - 1.1.2 (avec Plugins)
Apache : 2.0.63
PHP : 4.4.9
MySQL : 5.0.51b
OS : Windows 2003 Server R2 SP2
Environnement : WAMP Server 2.0c
Re: Attachement fichier
October 14, 2008 12:14PM
Bonjour,

Je viens d'essayer, mais ça ne marche pas .
Voici les 2 cas testés :

$g_allow_file_upload = ON;
$g_upload_bug_file_threshold = DEVELOPER;
$g_allow_reporter_upload = ON;
le reporter ne peut plus attacher des fichiers à ses propres issues(message "access denied")

$g_allow_file_upload = ON;
$g_upload_bug_file_threshold = REPORTER;
$g_allow_reporter_upload = ON;
les reporters peuvent attacher des fichiers à toutes les issues, donc même à celles dont ils ne sont pas reporter!

Il y a peut-être un autre paramètre ?
A+
gom
Re: Attachement fichier
October 14, 2008 12:22PM
Quote
Btte
Bonjour,

Je viens d'essayer, mais ça ne marche pas .
Voici les 2 cas testés :

$g_allow_file_upload = ON;
$g_upload_bug_file_threshold = DEVELOPER;
$g_allow_reporter_upload = ON;
le reporter ne peut plus attacher des fichiers à ses propres issues(message "access denied")

$g_allow_file_upload = ON;
$g_upload_bug_file_threshold = REPORTER;
$g_allow_reporter_upload = ON;
les reporters peuvent attacher des fichiers à toutes les issues, donc même à celles dont ils ne sont pas reporter!

Il y a peut-être un autre paramètre ?
A+


Essaye :
$g_allow_file_upload = ON; 
$g_upload_bug_file_threshold = NOBODY; 
$g_allow_reporter_upload = ON;

Mais j'ai peur que dans ce cas là, seul le rapporteur puisse ajouter des pièces-jointes et en plus ... que sur ses incidents !


Mantis : 1.0.6 - 1.1.2 (avec Plugins)
Apache : 2.0.63
PHP : 4.4.9
MySQL : 5.0.51b
OS : Windows 2003 Server R2 SP2
Environnement : WAMP Server 2.0c



Edited 1 time(s). Last edit at 10/14/2008 12:23PM by gom.
Re: Attachement fichier
October 14, 2008 12:35PM
en fait le reporter ne peut plus attacher de fichier à sa propre issue!
gom
Re: Attachement fichier
October 15, 2008 11:14AM
Quote
Btte
$g_allow_file_upload	= ON;
$g_upload_bug_file_threshold = DEVELOPER;
$g_allow_reporter_upload = ON;

le reporter ne peut plus attacher des fichiers à ses propres issues(message "access denied")

Il y a peut-être un autre paramètre ?
A+

Essaye d'ajouter ça dans "config_inc.php" :
	# access level needed to view bugs attachments.  View means to see the file names
	# sizes, and timestamps of the attachments.
	$g_view_attachments_threshold	= VIEWER;

	# access level needed to download bug attachments
	$g_download_attachments_threshold	= REPORTER;

	# access level needed to delete bug attachments
	$g_delete_attachments_threshold	= DEVELOPER;

	# allow users to view attachments uploaded by themselves even if their access
	# level is below view_attachments_threshold.
	$g_allow_view_own_attachments = ON;

	# allow users to download attachments uploaded by themselves even if their access
	# level is below download_attachments_threshold.
	$g_allow_download_own_attachments = ON;

	# allow users to delete attachments uploaded by themselves even if their access
	# level is below delete_attachments_threshold.
	$g_allow_delete_own_attachments = ON;

Si ça ne fonctionne toujours pas, alors, soit Vincent avait raison, soit je n'ai pas trouvé la bonne combinaison ! winking smiley

Si tu parles un minimum anglais, tu peux poster ta question sur le BTS officiel : [www.mantisbt.org].


Gôm


Mantis : 1.0.6 - 1.1.2 (avec Plugins)
Apache : 2.0.63
PHP : 4.4.9
MySQL : 5.0.51b
OS : Windows 2003 Server R2 SP2
Environnement : WAMP Server 2.0c



Edited 1 time(s). Last edit at 10/15/2008 11:15AM by gom.
Sorry, only registered users may post in this forum.

Click here to login



Online Users

Guests: 8
Record Number of Users: 1 on April 02, 2023
Record Number of Guests: 115 on November 09, 2023
Top Users
Hébergeur : Morinie.Fr