stable
Clone or download
story #6256: Create an artifact by email
A change have introduced in the way a tracker check if an user can submit or update an artifact. We now check if the user has enough rights on each fields (has before) and if he could access the tracker/artifact. We now display tracker email info only if the tracker structure is compatible with create by mail feature. In order to test this, you need to: - install php-imap - uncomment in your Postfix config this line: recipient_delimiter = + - copy plugins/tracker/etc/sudoers.d/tuleap-plugin-tracker into /etc/sudoers.d - activate the insecure email gateway in the tracker plugin conf as a siteadmin - enable the artifact creation by mail in the tracker config - have defined a semantic for title and description - your tracker does not have required field other than title and description After you have done all that, you can send an email to the tracker by executing on your dev instance: echo 'Body example' | mailx -r 'youruseremail@example.com' -s 'Subject example' 'forge__tracker+trackerid@machinename' Change-Id: Ie0436d682249d0a061ea994303bcc4d4471b9258
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/README.emailgateway.mkd | +3 | −3 | Go to diff View file |
M | plugins/tracker/README.mkd | +0 | −7 | Go to diff View file |
M | plugins/tracker/bin/emailgateway-wrapper.sh | +1 | −1 | Go to diff View file |
M | plugins/tracker/bin/emailgateway.php | +25 | −6 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/MailGateway/IncomingMessage.class.php | +68 | −11 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/MailGateway/IncomingMessageFactory.php | +66 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/MailGateway/IncomingMessageInsecureBuilder.class.php | +100 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/MailGateway/IncomingMessageTokenBuilder.class.php | +61 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/MailGateway/InvalidMailHeadersException.class.php | +25 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/MailGateway/MailGateway.class.php | +101 | −9 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/MailGateway/MultipleUsersExistException.php | +26 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/MailGateway/Notifier.class.php | +88 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/MailGateway/Parser.class.php | +5 | −24 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/MailGateway/TrackerDoesNotExistException.class.php | +24 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/MailGateway/TrackerIdMissingException.class.php | +25 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/MailGateway/TrackerMissingSemanticException.class.php | +25 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact.class.php | +1 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/Semantic/Tracker_SemanticManager.class.php | +3 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/Tracker.class.php | +79 | −18 | Go to diff View file |
A | plugins/tracker/include/Tracker/Tracker_ArtifactByEmailStatus.class.php | +107 | −0 | Go to diff View file |
M | plugins/tracker/include/TrackerPluginConfigController.php | +11 | −2 | Go to diff View file |
M | plugins/tracker/include/autoload.php | +12 | −2 | Go to diff View file |
M | plugins/tracker/include/trackerPlugin.class.php | +12 | −8 | Go to diff View file |
M | plugins/tracker/site-content/en_US/tracker.tab | +12 | −0 | Go to diff View file |
M | plugins/tracker/site-content/fr_FR/tracker.tab | +12 | −0 | Go to diff View file |
A | plugins/tracker/tests/Tracker/Artifact/MailGateway/IncomingMessageInsecureBuilderTest.php | +179 | −0 | Go to diff View file |
M | plugins/tracker/tests/Tracker/Artifact/MailGateway/MailGatewayTest.php | +34 | −13 | Go to diff View file |
R | plugins/tracker/tests/Tracker/Artifact/MailGateway/ParserTest.php | Go to diff View file | ||
M | plugins/tracker/tests/TrackerTest.php | +16 | −9 | Go to diff View file |
A | plugins/tracker/tests/Tracker_ArtifactByEmailStatusTest.php | +125 | −0 | Go to diff View file |
M | plugins/tracker/www/config.php | +2 | −1 | Go to diff View file |
M | src/common/autoload.php | +3 | −2 | Go to diff View file |
M | src/common/event/Event.class.php | +8 | −0 | Go to diff View file |
M | src/common/system_event/SystemEvent.class.php | +1 | −0 | Go to diff View file |
M | src/common/system_event/SystemEventManager.class.php | +4 | −0 | Go to diff View file |
A | src/common/system_event/include/SystemEvent_UPDATE_ALIASES.class.php | +33 | −0 | Go to diff View file |
M | tools/rpm/tuleap.rhel6.spec | +3 | −1 | Go to diff View file |
M | tools/rpm/tuleap.spec | +1 | −1 | Go to diff View file |