Redmine: Issueshttps://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292012-11-09T18:15:30ZRedmine
Redmine Redmine - Patch #12338 (New): Allow MailHandler to submit to a specific issuehttps://www.redmine.org/issues/123382012-11-09T18:15:30ZChris Wilson
<p>We modified our mail server and Redmine so that we could send email to <a class="email" href="mailto:redmine-issue-NNNN@example.com">redmine-issue-NNNN@example.com</a> and it would be appended to that ticket number.</p>
<p>I'd like to see this feature rolled into Redmine so that it doesn't get broken by future upgrades. I think it's minor and easy and has no security implications.</p>
<p>On our mail server, we modified <code>rdm_mailhandler.rb</code> to add a <code>--number</code> option, that would be added to the <code>issue_attributes</code>:</p>
<pre>
chris@one-mail(exim)$ sudo diff -u /etc/exim/redmine/rdm-mailhandler.rb{.orig,}
--- /etc/exim/redmine/rdm-mailhandler.rb.orig 2012-11-09 18:09:58.000000000 +0000
+++ /etc/exim/redmine/rdm-mailhandler.rb 2012-11-09 17:33:51.000000000 +0000
@@ -87,6 +87,7 @@
[ '--project', '-p', GetoptLong::REQUIRED_ARGUMENT ],
[ '--status', '-s', GetoptLong::REQUIRED_ARGUMENT ],
[ '--tracker', '-t', GetoptLong::REQUIRED_ARGUMENT ],
+ [ '--number', '-n', GetoptLong::REQUIRED_ARGUMENT ],
[ '--category', GetoptLong::REQUIRED_ARGUMENT ],
[ '--priority', GetoptLong::REQUIRED_ARGUMENT ],
[ '--allow-override', '-o', GetoptLong::REQUIRED_ARGUMENT ],
@@ -106,7 +107,7 @@
self.verbose = true
when '--version'
puts VERSION; exit
- when '--project', '--status', '--tracker', '--category', '--priority'
+ when '--project', '--status', '--tracker', '--category', '--priority', '--number'
self.issue_attributes[opt.gsub(%r{^\-\-}, '')] = arg.dup
when '--allow-override'
self.allow_override = arg.dup
</pre>
<p>And on the Redmine server, we added some code to allow this flag to set the issue number to append to, in preference to the headers of the message itself:</p>
<pre>
chris@lap-x201:~/Dropbox/patches$ cat redmine_mail_handler.patch
--- app/models/mail_handler.rb.orig 2012-11-09 18:11:43.000000000 +0000
+++ app/models/mail_handler.rb 2012-11-09 17:56:48.000000000 +0000
@@ -86,7 +86,9 @@
def dispatch
headers = [email.in_reply_to, email.references].flatten.compact
- if headers.detect {|h| h.to_s =~ MESSAGE_ID_RE}
+ if @@handler_options[:issue].has_key?(:number)
+ receive_issue_reply(@@handler_options[:issue][:number])
+ elsif headers.detect {|h| h.to_s =~ MESSAGE_ID_RE}
klass, object_id = $1, $2.to_i
method_name = "receive_#{klass}_reply"
if self.class.private_instance_methods.collect(&:to_s).include?(method_name)
</pre>
<p>Patches attached. I hope you will accept them.</p> Redmine - Patch #11499 (New): Fixed attachments handling when receiving a new issue by mailhttps://www.redmine.org/issues/114992012-07-24T12:42:38ZAlex Shulgin
<p>When a new issue is received by email, any attachments it might be carrying are not making it into the "new issue reported" mail.</p>
<p>In attempt to fix this problem, this patch issues a separate mail update for any issue created by mail with attachments, which lists the usual "File added: ..." lines.</p> Redmine - Patch #11493 (New): Show URL to attached file in plain text issue emailhttps://www.redmine.org/issues/114932012-07-24T11:53:25ZAlex Shulgin
<p>Currently, only HTML issue updates contain full URLs to the attached files. This patch adds the attachment URLs to plain text email notifications.</p> Redmine - Patch #11064 (New): Trac -> Redmine wiki conversion : slashed linkshttps://www.redmine.org/issues/110642012-05-31T09:43:48ZAdrian Wilkins
<p>Trac permits slashes in wiki page names. Redmine does not (if you use them, it just ignores them).</p>
<p>This patches the regex in the rakefile to accept slashes as part of a wiki name. Redmine then just goes on ignoring them and everything works.</p> Redmine - Patch #11057 (New): Confirm admin flag change on a separate pagehttps://www.redmine.org/issues/110572012-05-30T14:44:34ZAlex Shulgin
<p>Having admin flag on the general tab in user's profile makes it<br />way too easy to flip the flag accidentally.</p>
<p>Attached patch adds a separate page to flip the flag.</p> Redmine - Patch #10767 (New): Adding completed ratio support to log messageshttps://www.redmine.org/issues/107672012-04-25T09:44:09ZAngelo Compagnucci
<p>Hi,</p>
<p>This patch enables adding completed ratio to issues via commit messages, the syntax is like</p>
<p>ref #12345 @1h20m 50%</p>
<p>Patch modifies only app/models/changeset.rb</p> Redmine - Patch #10628 (New): Generate issue export filename with project namehttps://www.redmine.org/issues/106282012-04-10T11:57:04ZDmitry Babenko
<p>When you try to export issues to csv or pdf filename looks like: <code>export.csv</code> or <code>export.pdf</code>.<br />It would be better if filename with have a project name. E.g. <code>Redmine - Issues.csv</code> or <code>Redmine - Issues.pdf</code></p>
<p>Github pull request <a class="external" href="https://github.com/edavis10/redmine/pull/49">https://github.com/edavis10/redmine/pull/49</a></p> Redmine - Patch #10571 (New): Project identifiers missing in API outputhttps://www.redmine.org/issues/105712012-03-30T10:17:49ZChristian Rishøj
<p>Currently, only project IDs and names are included in the API membership listing for a user:</p>
<pre>
<membership>
<project identifier="website" name="Company Website" id="11"/>
<roles type="array">
<role name="Manager" id="3"/>
<role name="Developer" id="4"/>
<role name="Reporter" id="5"/>
</roles>
</membership>
</pre>
<p>Project identifiers ought to be included, e.g. for allowing something like grack to authenticate access to source code repositories named after project identifiers.</p>
<p>The simple patch adds project identifiers to the API output.</p>
<p>Note that the change might break third party tools which rely on naive pattern matching of the API XML data (rather than properly parsing the XML). This should not be Redmine's concern, though.</p> Redmine - Patch #9731 (New): Automate Mercurial Repository Creationhttps://www.redmine.org/issues/97312011-12-06T12:30:26ZAndré Felipe Dias
<p>Based on <a class="external" href="http://www.redmine.org/projects/redmine/wiki/HowToInstallRedmineOnUbuntuServer#Automate-Repository-Creation">http://www.redmine.org/projects/redmine/wiki/HowToInstallRedmineOnUbuntuServer#Automate-Repository-Creation</a></p>
<p>I'd like to suggest a small patch to enable Mercurial Repository automatic creation.</p>
<p>The patch was created by Mercurial from the repository cloned from <a class="external" href="https://bitbucket.org/redmine/redmine-all">https://bitbucket.org/redmine/redmine-all</a></p> Redmine - Patch #9579 (New): Redmine.pm: crediential cache expirationhttps://www.redmine.org/issues/95792011-11-15T12:15:52ZGuillaume Perréal
<p>Here is little patch that allows to set a expiration delay on cached credentials, so they eventually get updated.</p>
<p>It adds a new configuration Apache directive :</p>
<pre><code><strong>RedmineCacheCredsMaxAge</strong>: defines the expiration delay in seconds. Defaults to 5 minutes.</code></pre> Redmine - Patch #9319 (New): Prevent passing :label option to HTML tag in TabularFormBuilderhttps://www.redmine.org/issues/93192011-09-26T10:00:20ZAlex Shulgin
<p>See attached.</p> Redmine - Patch #9281 (New): easy logging of usernames in apache access logs via custom response ...https://www.redmine.org/issues/92812011-09-20T05:20:31ZRobert HaileyRedmine - Patch #9066 (New): Redmine.pm not working for merges/copy #3727https://www.redmine.org/issues/90662011-08-16T08:59:55ZAndreas Reischuck
<p>This issue seems related to the https-subrequests which will not contain the authentication credentials required to pass the authen_handler.</p>
<p>I added a line that works around this.<br />I guess if the main request was declined no user would get into a sub-request anyways. If that assumtion is wrong, additional checks that the main request was authenticated should be applied.</p> Redmine - Patch #9022 (New): Preserve leading zeros in #nnn issue linkshttps://www.redmine.org/issues/90222011-08-10T07:35:39ZAlex Shulgin
<p>Patch against 1.2-stable.</p> Redmine - Patch #8934 (New): Add support for annotate with subversion when username contain spacehttps://www.redmine.org/issues/89342011-07-28T11:46:46ZYaacov Akiba Slama
<p>When username contains space(s), annotate doesn't work for subversion because it uses the "<code>blame</code>" subcommand which returns the file given prefixed by the revision number and the author separated by spaces. So any parsing based on that will break if author can contain spaces.</p>
<p>The attached patch uses the same subcommand but with the additional <code>--xml</code> option in order to obtain a full xml instead of space separated fields.<br />The drawback is that the lines themselves are not returned by svn when <code>--xml</code> is used. Consequently, one needs to call both <code>blame --xml</code> and <code>cat</code> subcommands to have both the metadata and the content.</p>
<p>The included patch can be used on top on 1.2 and 1.2.1 (at least).</p> Redmine - Patch #8831 (New): CSS class for issues due today in the issue listhttps://www.redmine.org/issues/88312011-07-16T08:14:07ZGo MAEDA
<p>To highlight issues due today in the issues list, please add CSS class which indicate the issue is due today.</p> Redmine - Patch #8768 (New): Edit comments for a certain timehttps://www.redmine.org/issues/87682011-07-08T06:07:19ZAlexander Kulemin
<p>Hello,</p>
<p>It's a 'monkey patch', but it's helpful for me. And I think - not only for me.</p>
<p>I changed 'render_notes' in 'journals_helper.rb'. If user have only permissions 'edit_own_issue_notes' - he's can do it only into 4 hours after comment's creation. After this time user with this permission's can't change his comment.</p> Redmine - Patch #8451 (New): API:REST patch for the Net::Redmine::API::REST Perl Modulehttps://www.redmine.org/issues/84512011-05-27T12:46:41ZChristophe Nowicki
<p>Hi,</p>
<p>I worked with Stephane Schoorens on the Net::Redmine::API::REST Perl module :</p>
<p><a class="external" href="https://github.com/sschoorens/Net--Redmine--API--REST">https://github.com/sschoorens/Net--Redmine--API--REST</a></p>
<p>In order to make the Redmine API::REST working, we made a couple of changes on Redmine version 1.1.2 :</p>
<ul>
<li>Make the /issue_statuses.(xml|json) url available ;
<ul>
<li>return an array of issue statuses (new, resolved, ...) ;</li>
</ul>
</li>
<li>Make the /trackers.(xml|json) url available ;
<ul>
<li>return an array of trackers (defect, patch, ...);</li>
</ul>
</li>
<li>Make the /issue_categories.(xml|json) url available ;
<ul>
<li>return an array of issue categories (REST API,News,...);</li>
</ul>
</li>
<li>Make the /enumerations.(xml|json) url available ;
<ul>
<li>return an array of enumerations (DocumentCategory, IssuePriority, ...);</li>
</ul></li>
</ul>
<p>This patch was made on Redmine 1.1.2 and is working on our production server and does apply smoothly on the trunk (revision 5937).</p>
<p>Theses four urls are <strong>mandatory</strong> for the Net::Redmine::API::REST.</p>
<p>Best Regards,</p> Redmine - Patch #8294 (New): Include repos in scheduled fetchhttps://www.redmine.org/issues/82942011-05-05T01:36:25ZChristina Louise Warne
<p>I had a requirement to link projects on my Redmine installation to a local Subversion repository and a remote one. The local one sits on the same machine and is scanned every 5 minutes by way of a cron job. Scanning the remote repository every 5 minutes is not really an option, so scanning the repository only when it's accessed is fine.</p>
<p>To allow for this configuration, this patch adds a flag to the project repository settings that allow you to specify whether or not it should be included in a scheduled fetch. To differentiate between the existing fetch_changesets features, two new methods have been added to the repository model. The modified methods are:-</p>
<ul>
<li>do_fetch_changesets - Performs the actual fetch. This is essentially a slightly modified version of the existing fetch_changesets method.</li>
<li>fetch_changesets - Calls do_fetch_changesets and functions exactly as it does now, fetching the repositories for all projects that have them</li>
<li>scheduled_fetch_changesets - Calls do_fetch_changesets, but only scans those repositories which have the 'include in scheduled fetch' flag set</li>
</ul>
<p>To accompany this change, their is a minor db migration which adds the column to the repositories table and a task for rake.</p>
<p>The scheduled fetch can be invoked using this example:-</p>
<pre>
RAILS_ENV=production rake -f <PATHTOREDMINEROOT>/Rakefile redmine:scheduled_fetch_changesets
</pre>
<p>This change also allows you to have automatic scans running on two different schedules. Calling fetch_changesets will scan all repositories on one schedule and then scheduled_fetch_changesets can scan the flagged ones on another.</p>
<p>All repository unit tests seemed to pass, as did the majority of the other tests (I have only tested with Subversion). The patch is built against revision <a class="changeset" title="scm: git: call entries_git() in adapter entry() for browsing tree performance (#7047). cat/diff/..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/5642">r5642</a>. The feature itself has been tested on a Redmine 1.1.3 installation and it all appears to work correctly.</p>
<p>I have a bit of a query regarding one aspect of this as I'm sure a more experienced Ruby/Rails/Redmine developer will be able to come up with an answer. I had to explicitly read the value for the include_in_scheduled_fetch checkbox using this code:-</p>
<pre>
@repository.include_in_scheduled_fetch = !params[:include_in_scheduled_fetch].nil?
</pre>
<p>I was expecting this to be handled by Rails like the other parameters from the form, but that appeared not to be the case. As a consequence, I'm just a bit concerned I may have missed something.</p> Redmine - Patch #8196 (New): Adding a project param to perl auth modulehttps://www.redmine.org/issues/81962011-04-20T08:48:41ZDiego Suárez García
<p>Hello,</p>
<p>In my job we use Redmine and recently we had the need for authenticating the access to a test domain, based on which users have access to the related project. I created a small patch to the Redmine.pm module, that adds a new optional apache directive (RedmineDbProject), so you can link a VirtualHost to a specific project and ask for credentials on user access. That way, only the users included in that project can see that VirtualHost contents.</p>
<p>I felt somebody else might have the same needs. The directive is optional and the behaviour is transparent if it's not included in the conf file, therefore I think it can make it to the core.</p>
<p>The revision is 5506 (last change on Redmine.pm on 5232), and it's the trunk version.</p>
<p>Best Regards,</p>
<p>Diego Suárez García.</p> Redmine - Patch #8109 (New): Support for global permissions in acts_as_attachablehttps://www.redmine.org/issues/81092011-04-08T21:09:39ZAndriy Lesyuk
<p>If an attachment is to be shown (e.g. an image) outside a project, <code>view_permission</code> option does not work:<br /><pre><code class="ruby syntaxhl"><span class="n">acts_as_attachable</span> <span class="ss">:view_permission</span> <span class="o">=></span> <span class="ss">:view_attachments</span>
</code></pre></p>
<p>This happens because <code>acts_as_attachable</code> supports only project permissions. The attached patch adds support for global permissions as well...</p> Redmine - Patch #7959 (New): Patch for repository revision update (reload)https://www.redmine.org/issues/79592011-03-22T18:15:08ZBrian Lindahl
<p>Software engineers sometimes made mistakes when writing commit messages during commit. This had caused inaccurate revision relations due to the fix-via-commit-message feature (Settings -> Repositories -> Referencing and fixing issues in commit messages). This patch provides a method to reload a specific revision from the repository and re-apply the fix-via-commit-message feature to the new commit message.</p>
<p>Note that there are two quirks:<br />1) if an issue is already related, fix-via-commit-message will not be reapplied (see <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Manually add related revisions (Closed)" href="https://www.redmine.org/issues/2009">#2009</a> for removing issue relations)<br />2) fix-via-commit-message journals entries may be left behind (see <a class="issue tracker-3 status-1 priority-4 priority-default" title="Patch: Patch providing issue journal rollback (New)" href="https://www.redmine.org/issues/7610">#7610</a> for journal rollback)</p> Redmine - Patch #7895 (New): Git, Mercurial: Allow source links using a tag in addition to revisi...https://www.redmine.org/issues/78952011-03-16T21:51:05ZShane Corgatelli
<p>Loosens up the regex for the revision specifier in source links to allow for linking to git tags. Basically allows all word characters, '.' and '-'. This allows me do do something like:</p>
<pre>
released in source:@v1.26.2
</pre>
<p>Patch is based off 1.0.1.</p> Redmine - Patch #7829 (New): Show branches changsets belongs to on issue pagehttps://www.redmine.org/issues/78292011-03-11T08:54:24ZIvan Evtuhovich
<p>This patch shows git branches changeset belongs to on issue page</p>
<p><a class="external" href="http://twitpic.com/47k9gk">http://twitpic.com/47k9gk</a></p> Redmine - Patch #7770 (New): use unless in control structures where it improves readabilityhttps://www.redmine.org/issues/77702011-03-04T00:43:23ZAnonymous
<p>Use <strong>unless</strong> or <strong>until</strong> in control structures instead of <strong>if !</strong> or <strong>while !</strong> where it improves readability.</p> Redmine - Patch #7664 (New): Allowing plugins to add an option for the default gravatarhttps://www.redmine.org/issues/76642011-02-20T08:06:59ZYuki Sonoda
<p>Now redmine administrator can set the default gravatar for users which has no gravatar. I would like to use my own default gravatar.</p>
<p>The attached patch allows plugins to add an option for the default gravatar. <a class="external" href="https://github.com/yugui/redmine_fox_gravatar">https://github.com/yugui/redmine_fox_gravatar</a> is an example plugin that uses this feature.</p> Redmine - Patch #7578 (New): Patch: migrate ticket's owner changes when importing from Trachttps://www.redmine.org/issues/75782011-02-08T22:17:19ZPierre-Luc Samuel
<p>Here's a patch to migrate the history of owner changes in JournalDetails when importing from Trac. It worked well for us!</p> Redmine - Patch #7570 (New): Change test_helper requirement in testshttps://www.redmine.org/issues/75702011-02-07T16:57:36ZJean-Baptiste Barth
<p>In <a class="changeset" title="Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/4509">r4509</a> I changed the way test_helper was required in all our tests, so that tests could run on ruby 1.9.2 (ftr, ruby 1.9.2 no longer includes "." in $LOAD_PATH by default). This change was also made to ease test runs from command line (e.g. <code>ruby /path/to/one/test.rb</code>).</p>
<p>Gregor <a href="https://github.com/edavis10/redmine/commit/17f86d964fe05e677714baa35ec319abe13ae8bf#commitcomment-263250" class="external">said on github</a> that a simple <code>require 'test_helper'</code> would be good enough with ruby's <code>-I</code> flag.</p>
<p>Any thought about that ? If not, I'll replace them with simplers <code>require 'test_helper'</code>.</p> Redmine - Patch #7447 (New): Patch for improved move/copyhttps://www.redmine.org/issues/74472011-01-25T19:08:16ZBrian Lindahl
This patch makes the following improvements to the move/copy feature:
<ul>
<li>create relations when copying</li>
<li>assign target version</li>
<li>assign category</li>
<li>improved page layout</li>
</ul> Redmine - Patch #7204 (New): Caching of public pages, requested from anonymous users (10x - 20x s...https://www.redmine.org/issues/72042010-12-31T02:47:32ZMassimo Zaniboni
<p>I need a quicker access for public pages, requested from anonymous users.</p>
<p>I can not use a caching reverse proxy because the web proxy does not know when a page is requested from a registered user, or when the page is requested from an anonymous user.</p>
<p>In this patch the Ruby/Redmine application controller returns a page from the cache with ~ 10x - 20x speedup respecting normal pages. The caching is applied only if the user is anonymous (not logged) and only if the page does not contains forms with an authenticity token.</p>
<p>The cached page is different according the locale of user, so different pages for different locales are returned correctly.</p>
<p>The Redmine administrator can configure the cache refresh rate using the main Settings form.</p>
<p>The caching is performed using the caching method specified in the config/additional_environment.rb file. I added something like</p>
<pre>
config.action_controller.perform_caching = true
config.action_controller.cache_store = :file_store, File.join(File.dirname(__FILE__), '../tmp/cache')
</pre>
<p>I tested the patch on version 1.0.5, but it is not yet on a server in production.</p>
<p>The patch can be applied to <a class="changeset" title="Fixes wrong Polish translation of "blocks" and "duplicates" (#6895)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/4595">r4595</a> or Git commit:6659c630b264325</p>
Warnings / sorry in advance :-)
<ul>
<li>this is my first ruby code</li>
<li>this is my first ruby on rails code</li>
<li>I'm not a native english speaker, and probably my labels/texts is not completely correct</li>
</ul>
<p>Many thanks for the good product that is Redmine!</p> Redmine - Patch #7190 (New): Timelog: Show date range filter in one line and move tabs to a dedic...https://www.redmine.org/issues/71902010-12-28T23:46:54ZDaniel Neis Araujo
<p>This patch changes the date range filter of time log in one visible way, that is to show filters options in one line instead of three; and in one "invisible" way, that is to move "Details" and "Report" tabs from "date_range" partial to a dedicated "tabs" partial.</p>
<p>Hope you like.</p> Redmine - Patch #7086 (New): Few fixes for subversionhttps://www.redmine.org/issues/70862010-12-09T10:11:52ZDmitry Salashnik
<ul>
<li>not works when svn server use self signed certificate</li>
<li>No read access file breaks file listing when browsing repository</li>
<li>fetch not all changesets</li>
</ul> Redmine - Patch #7058 (New): Duplicate submit and link buttons on top of the edit form.https://www.redmine.org/issues/70582010-12-06T20:42:58ZManuel Vázquez Acosta
<p>I thinks it's nice to have the submit button and the preview link also on the top of the edit form, to improve usability.</p>
<p>If the user needs just to update the status of an issue, or the priority; this patch would keep him from scrolling.</p> Redmine - Patch #6926 (New): Plugins captions for name and descriptions has not i18n supporthttps://www.redmine.org/issues/69262010-11-17T16:42:02ZJuanje Ojeda Croissier
<p>The admin plugin's view doesn't support translations.</p>
<p>Those fields right now are not able to be translated but they should.</p>
<p>I've added l() function to the view so that can be translated at init.rb.<br />I've attached a patch for it against the last Redmine version (<a class="changeset" title="Prevents NoMethodError when requesting /time_entries/edit without an id (#6904)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/4410">r4410</a>).</p> Redmine - Patch #6864 (New): Support of mail notification for changesetshttps://www.redmine.org/issues/68642010-11-11T00:35:30ZXiwen Cheng
<p>This patch closely resembles the traditional subversion hooks. The main difference is the recipients list is integrated with redmine: author exclusion and permissions. And maybe other SCM's also (tested with SVN).</p>
<p>I have tested it with plain text only, the html template needs improvements (render difference for instance).</p>
<p>TODO: ability to turn this off in project settings.</p> Redmine - Patch #6807 (New): internal hostname included in back_urlhttps://www.redmine.org/issues/68072010-11-02T18:17:33ZAlbert Rosenfield
<p>Hi</p>
<p>The documentation recommends that Redmine run behind a reverse proxy such as nginx for doing SSL and caching.</p>
<p>Is it on purpose that the internal URL ("localhost" in my case) rather than the external URL from Administration --> Settings --> General --> Host_name is exposed in this configuration?</p>
<p>Every time a user hits a page and is redirected to the login page, the back_url parameter in the query string contains the host "localhost".</p>
<p>Attached is a patch to fix this, in case it is not intentional.</p> Redmine - Patch #6475 (New): Add an option to set the project name from apache when authenticatin...https://www.redmine.org/issues/64752010-09-23T12:08:16ZSergio Talens-Oliag
<p>I have some repositories that are configured with <code>SVNPath</code> instead<br />of <code>SVNParentPath</code> (I'm doing it to be able to use additional<br />authentication methods them, see issue <a class="issue tracker-3 status-1 priority-4 priority-default" title="Patch: Added FLAG to Redmine.pm to AllowAlternateAuth methods on apache (New)" href="https://www.redmine.org/issues/6414">#6414</a>).</p>
<p>With the current <code>Redmine.pm</code> code (1.0.1) the authentication against<br />Redmine fails because the <code>project_id</code> is not guessed as it should<br />(the apache <code>Location</code> points to the repository, not to it's parent<br />path).</p>
<p>To solve the problem I've patched <code>Redmine.pm</code> to allow the use of a<br />new option that adjusts the <code>project_id</code> to use; if the option is set<br />the get_project_identifier function returns that name instead of<br />calculating it from the URI and the apache location).</p>
<p>The attached patch is against an export of the redmine-1.0.1 tag.</p> Redmine - Patch #6450 (New): Allow localized date input and correctly transform for custom date f...https://www.redmine.org/issues/64502010-09-21T01:13:39ZStuart Cianos
<p>Patch allows users to manipulate custom date fields using their local format.</p>
<ul>
<li>Adds a library routine to the I18n extensions. The routine provides for the parsing of a user entered date into a Date object.</li>
<li>The custom value model has been upated to correctly account for the user's date setting (if available). If not, defaults to YYYY-MM-DD.</li>
</ul>
<p>This allows users to enter their dates in their localized format (as defined by setting.date_format), and have it correctly transformed to YYYY-MM-DD. If the localized setting is not available, falls back to YYYY-MM-DD for input.</p>
<p>This partially fixes defect <a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: Date input fields don't respect date format settings (New)" href="https://www.redmine.org/issues/668">#668</a> as it applies to custom fields. This was a major pain point for our users, so hopefully will solve a lot of problems experienced elsewhere.</p> Redmine - Patch #6414 (New): Added FLAG to Redmine.pm to AllowAlternateAuth methods on apachehttps://www.redmine.org/issues/64142010-09-16T11:23:00ZSergio Talens-Oliag
<p>I want to use <code>Redmine.pm</code> to authenticate users when accessing<br />subversion, but I also want to be able to authenticate non-Redmine<br />users.</p>
<p>To be able to do it I've added an additional flag to the <code>Redmine.pm</code><br />module to allow the use of multiple authentication methods.</p>
<p>The name of the flag (<code>RedmineAllowAlternateAuth</code>) has been taken from<br />the variable used on the <code>Apache2::AuthNetLDAP</code> and <code>Apache2::AuthenNIS</code><br />modules that is used for the same purpose.</p>
<p>The attached patch is against an export of the <code>redmine-1.0.1</code> tag.</p> Redmine - Patch #6330 (New): Hyperlinks with "%" or "!" at the endhttps://www.redmine.org/issues/63302010-09-08T10:06:27ZAnonymous
<p>I've searched the issues, wiki and forum but couldn't find any help regarding an issue when inserting hyperlinks:</p>
<p>When you insert a link that ends with a symbol, e.g. "!" or "%", then the Wiki interprets this as punctuation rather than as part of the hyperlink. I've tried various ways of encapsulating the link but none seems to work.</p>
<p>Examnple: <a class="external" href="http://es.farnell.com/yageo-phycomp/can4311129200431k/antena-12-x-4-433mhz/dp/1282674?crosssellid=1282674&crosssell=true&in_merch=truex%x">http://es.farnell.com/yageo-phycomp/can4311129200431k/antena-12-x-4-433mhz/dp/1282674?crosssellid=1282674&crosssell=true&in_merch=truex%x</a>%</p>
<p>A simple patch would be nice that allows inserting hyperlinks as they are, e.g. by placing them into inverted commas or placing the full <a href> HTML tag.</p> Redmine - Patch #6177 (New): "bignum too big to convert into `long'" in migrate_from_trac.rakehttps://www.redmine.org/issues/61772010-08-19T14:43:16ZJonas Pfenniger
<p>When importing from a sqlite3 trac database, I have tons of those issues, which the patch fixes.</p>
<p>Maybe this only happens for people using sqlite3 so the patch may need some cleanup but at least it's there.</p>
<p>diff was generated with `diff -u` on the redmine-1.0.0 release (but the file didn't change since 0.9)</p> Redmine - Patch #6159 (New): Subversion: latest changesets performance improvement.https://www.redmine.org/issues/61592010-08-17T14:28:55ZGo MAEDA
<p>Redmine executes "svn log" command 2 times (Repository::Subversion#fetch_changesets and Repository::Subversion#latest_changesets) when performing repository/show action. As a result, it takes very long time to complete when the repository is on remote server.</p>
<p>This patch improves performance of the Subversion#latest_changesets method by querying changesets table on the database instead of executing "svn log" command.</p> Redmine - Patch #6107 (New): Modify reposman.rb to delete a project on the repository when this p...https://www.redmine.org/issues/61072010-08-11T16:40:01ZJosé Cano
<p>reposman.rb must run as a cron job to enable the automatically project creation on the repository server, when a project has been created on redmine.</p>
<p>It does not already implement automatic project deletion on the repository. This patch try to achieve it for SVN repository, git repository must still be implemented.</p> Redmine - Patch #6053 (New): Fixed issue list context menu overflowhttps://www.redmine.org/issues/60532010-08-06T09:12:29ZSheng Wang
<p>I found some content overflow when context submenu upto browser top.<br />see the screenshorts:<br /><img src="https://www.redmine.org/attachments/download/4254/context-menu-overflow.png" alt="" /></p>
<p>I use firebug debug and fixed it. Special see the patch file.</p>
<p>The following screenshorts is perfect result:<br /><img src="https://www.redmine.org/attachments/download/4255/fixed-context-menu-overflow.png" alt="" /></p> Redmine - Patch #5829 (New): show roadmap with child project issues.https://www.redmine.org/issues/58292010-07-07T08:55:08Zyusuke kokubo
<p>A patch for roadmap.</p>
<p>roadmap show issues group by target version.<br />but parent project can show only parent's trackers issues.</p>
<p>I hope parent project can show child project issues.</p> Redmine - Patch #5722 (New): Custom Boolean Fields cannot be set to truehttps://www.redmine.org/issues/57222010-06-22T10:41:50ZVolker Gersabeck
<p>ruby 1.8.7<br />Rails 2.2.3<br />Redmine 0.9.3.stable (MySQL)</p>
<p>When having a custom boolean field for my issues, I was not able to set it to true since the hidden input value was used when updating the values instead of the checkbox value. Changing the order of the hidden input and the checkbox solved this issue. Just replace in /usr/share/redmine/app/helpers/custom_fields_helper.rb around line 47:</p>
<p>hidden_field_tag(field_name, '0') + check_box_tag(field_name, '1', custom_value.true?, :id => field_id)</p>
<p>by</p>
<p>check_box_tag(field_name, '1', custom_value.true?, :id => field_id) + hidden_field_tag(field_name, '0')</p> Redmine - Patch #5669 (New): Subversion mirror creation.https://www.redmine.org/issues/56692010-06-10T21:46:15ZBryce Nordgren
<p>This patch modifies <code>reposman.rb</code> such that it can be run on a machine which mirrors the Subversion repositories created by Redmine. An additional SCM module is defined (Subversion_mirror) which creates any repositories which do not already exist on the mirror. These repositories have the pre-revprop-change hook installed, and <code>svnsync init</code> is called.</p>
<p>This patch is against the 0.9-stable branch at <a class="changeset" title="Ignore rubinius .rbc files" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3768">r3768</a>. The patched file is also attached.</p> Redmine - Patch #5668 (New): Invite Feature for projectshttps://www.redmine.org/issues/56682010-06-10T20:50:46ZAaron Fischer
<p>We needed a Solution to get all users on the system the option to invite yourself to other projects. This reduced the administrative overhead on our system. The project manager(s) of a project now don't manually search and add the users who want access to a specific project.</p>
<p>The workflow is as follow:</p>
<p>1. User klicks on a public project and want to "join".<br />2. He/She klicks on the "Send authorization request" link on the upper right.<br />3. All project managers on this project gets a email with certain links in it. Each link will add the user with a role to this project. (Example: If the project manager klicks on the "Add as supporter" link, the user will be added as a supporter to this project)</p>
<p>This Feature is on a production environment with ~200 users and works well.<br />It would be great if this will get in the main trunk because other user requested this feature also.</p> Redmine - Patch #5556 (New): Display more projects in project jump boxhttps://www.redmine.org/issues/55562010-05-19T14:30:32ZHolger Just
<p>This patch adds a setting for displaying only projects a user is member of in the project jump box (default and current behavior) or displaying all visible projects.</p>
This allows the following features:
<ul>
<li>Jump Box for anonymous users containing public projects</li>
<li>Full project list for admins</li>
</ul>
<p>Tests and an additional translation string (with provided German translation) are contained in the patch.</p> Redmine - Patch #5554 (New): Make links to various redmine objects more consistenthttps://www.redmine.org/issues/55542010-05-19T12:47:28ZHolger Just
Currently, there are at least two places where links to the different objects are generated:
<ul>
<li>the <code>link_to_OBJECT</code> methods in <code>application_helper.rb</code></li>
<li>the huge case statement in <code>parse_redmine_links</code> in <code>application_helper.rb</code></li>
</ul>
<p>Both of these places use independent code. This code should be merged into a consistent view. Today, both link types differ at least in its class attributes which makes themeing harder.</p>
<p>The attached patch fixes this for the <code>link_to_attachment</code> and the <code>link_to_revision</code> methods.</p> Redmine - Patch #5447 (New): User status can not be changed with javascript disabledhttps://www.redmine.org/issues/54472010-05-05T15:39:05ZHolger Just
<p>If an admin-user has javascript disabled, she can not update the status of a user.</p>
<p>The generated links (by <code>change_status_link</code>) require some javascript to turn the request into a POST. <code>/users/:id/edit</code> does not allow changing the state with a GET, which leaves the admin-user without further options.</p>
<p>The attached patch adds a status select box to the user edit form. This however does still not resolve the non-functioning of the change_status_link, but at least provides a workaround.</p> Redmine - Patch #5389 (New): Option redirect_to in UsersController#edit when a params :back is de...https://www.redmine.org/issues/53892010-04-27T16:03:39ZThales Ferreira
<p>Actually, in controller Users when a request of type post is send the last line in this method (line: 112 redirect_to :back) for me doesnt make sense.</p>
<p>It will usable if it wasnt redirect_to params[:back]. ???</p>
<p>I found this when i needed to redirect to last location in a user edit. <br />For example, im forcing the user to fill another custom fields from your user data, but i want to back to previous url when the user complete the remainder custom fields edit.</p> Redmine - Patch #5200 (New): Redmine.pm - LDAP Host as URIhttps://www.redmine.org/issues/52002010-03-28T20:12:08ZAmir Hadi
<p>This patch will use an URI as Host-Name for an LDAP server in Redmine.pm</p>
<p>I needed this, because the LDAP server I use is not on the default port. The port in the variable $port is not used if the hostname in $host is not an URI.</p>
<p>Maybe this is not correct for anyone, but without this patch SVN authentication on my LDAP server did nod work.</p> Redmine - Patch #5119 (New): "User group" custom fieldhttps://www.redmine.org/issues/51192010-03-18T16:19:41ZFri Flaj
<p>This patch adds a "user group" custom field that will allow selecting one the the existing user groups tied to the active project.</p> Redmine - Patch #5065 (New): Importing wiki with different encodinghttps://www.redmine.org/issues/50652010-03-12T19:04:25ZJoão Machado
<p>When using migrate_from_trac.rake to import project from trac to redmine,<br />if trac's encoding different than utf8 (example: latin1),<br />it doesn't import wiki pages correctly (breaks on ã,â, etc)</p>
<p>Redmine <a class="changeset" title="Fixed: Trac importer creates duplicate wiki records (#4743)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3517">r3517</a>, <a class="changeset" title="Fixed windows platform detection in reposman.rb (#5039)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3571">r3571</a><br />Ruby version 1.8.7 (x86_64-linux)<br />RubyGems version 1.3.6<br />Rack version 1.0<br />Rails version 2.3.5<br />Active Record version 2.3.5<br />Active Resource version 2.3.5<br />Action Mailer version 2.3.5<br />Active Support version 2.3.5<br />Edge Rails revision unknown<br />Environment production<br />Database adapter mysql<br />Database schema version 20100221100219</p> Redmine - Patch #5035 (New): Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/50352010-03-10T13:40:42ZMike Stupalov
<p>I have written a patch for a script of migration from Trac.</p>
The list of the brought changes:
<ol>
<li>More complete <strong>regular expressions</strong> in many replacements of formatting wiki pages.</li>
<li>The <strong>first and last name</strong> of the user are correctly recognised</li>
<li>convert <strong>[[BR]]</strong> - before all</li>
<li><strong>Titles</strong> correctly converted and only h1. to h6. (Also work for <a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: Trac to Redmine wiki migration problems (New)" href="https://www.redmine.org/issues/3910">#3910</a>)</li>
<li><strong>External Links</strong> correctly converted (include mailto: links)</li>
<li><strong>Ticket links</strong> correctly converted</li>
<li><strong>Internal Links</strong> correctly converted</li>
<li><strong>Inline code</strong> are converted</li>
<li><strong>Tables</strong> are converted</li>
<li><strong>Lists</strong> correctly converted (include numbered)</li>
<li><strong>Inline images</strong> are converted</li>
<li>Changed default database adapter to <strong>sqlite3</strong></li>
</ol>
<p>The patch works for audit 3517 and above<br />The additional information is in remarks. The patch works for <a class="changeset" title="Fixed: Trac importer creates duplicate wiki records (#4743)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3517">r3517</a> and above.</p>
<p>File: <a class="attachment" href="https://www.redmine.org/attachments/3332">migrate_from_trac_v1.patch</a></p> Redmine - Patch #5027 (New): hook in the mail_handlerhttps://www.redmine.org/issues/50272010-03-10T07:11:34ZJie Ma
<p>Add a hook in the models/mail_handler.rb, and change the get_keyword() to public, which I can call it in plugin.</p>
<p>I can get more (like start_date) or some custom keywords through this patch.</p>
<p>Not sure is it safe if I change the get_keyword() to public.</p>
<p>Thanks.</p> Redmine - Patch #4977 (New): LDAP user cant change username and emailhttps://www.redmine.org/issues/49772010-03-03T16:30:15ZAaron Fischer
<p>If the user is authenticated over ldap, he should not change email and username in the profile.<br />Patch included.</p> Redmine - Patch #4755 (New): Create and maintain groups from LDAP attributeshttps://www.redmine.org/issues/47552010-02-08T00:35:24ZMarcel Waldvogel
We do have group information in LDAP which we would like to use. These are essentially
<ul>
<li><em>ou</em> (the organisational unit(s) the person is associated with)</li>
<li><em>businessCategory</em> (the type of user: employee, guest, …)</li>
</ul>
<p>I decided to write the following patch to automatically create and update group information for every user whenever she logs in, in order to avoid having to extract all the information regularly from LDAP, keeping in the spirit of on-the-fy creation of user accounts.</p>
<a name="Challenges"></a>
<h2 >Challenges<a href="#Challenges" class="wiki-anchor">¶</a></h2>
During the implementation, I was facing the following problems:
<ul>
<li>I wanted to have both attributes available for group creation, both independently and as a cross product (i.e., being able to add all employees or everyone from orgUnit1 to the project, but also have the option to add only the employees of orgUnit1 to some project)</li>
<li>Our ou names are very long (some approaching 60 characters), but the lastname field of the User (which is where the group names are stored for the Group subclass/subtype of User) is limited to 30 characters. I did not want to change that part of the model, so I am shortening LDAP group names on import.</li>
</ul>
<a name="Functionality-implemented"></a>
<h2 >Functionality implemented<a href="#Functionality-implemented" class="wiki-anchor">¶</a></h2>
There are 5 additional fields in <code>auth_source</code>:
<ol>
<li><strong>attr_groups:</strong> The name of the attribute containing group information (in our case: <em>ou</em>)</li>
<li><strong>attr_groups2:</strong> The name of an optional second attribute containing other group information (in our case: <em>businessCategory</em>)
<ul>
<li>None, either, or both of the above can be empty, if they are not required</li>
</ul>
</li>
<li><strong>group_prefix:</strong> A character sequence you might want to prefix to the group names which are thus automatically generated (default: "_")</li>
<li><strong>cross_product:</strong> When this is false, only the group names based on attr_groups and attr_groups2 are included. When this is set to true, <strong>additionally</strong> the concatenation of group names derived from <code>attr_groups</code> and <code>attr_groups2</code> (separated by <code>group_separator</code>) are included</li>
<li><strong>group_separator:</strong> The separator to use if cross-products should be created</li>
</ol>
<p>Groups created like that will have their <code>auth_source</code> set accordingly. Groups with their <code>auth_source</code> set will have an appropriate note attached in the list and edit views, and their name is not editable. LDAP-maintained groups are automatically deleted when they are no longer necessary (triggered on login).</p>
<p>The group list view provides a "Refresh groups" button for each LDAP source with group update activated. It is not strictly necessary, as membership will be updated on the next login of that user anyway, but it might be helpful to see what effect your changes have or make membership updates visible immediately (as opposed to waiting for the next login of this user/these users).</p>
<p>The messages are available in English and German. Feel free to provide other languages as well :-).</p>
<a name="Code-overview"></a>
<h2 >Code overview<a href="#Code-overview" class="wiki-anchor">¶</a></h2>
Here is a short run-down of what the code provides:
<ol>
<li>Two migration files to add the required attributes</li>
<li><code>auth_source_ldap.rb</code> has the following new features
<ul>
<li>a method <em>get_attributes</em> which fetches LDAP attributes for a user specified (does not test for authentication)</li>
<li>a method <em>build_names</em> to construct the names of the groups that should be associated with</li>
<li>Two classes, <code>FakeLdapCon</code> and <code>FakeLdapEntry</code> which are helpful when trying to experiment with LDAP attributes (do not require an LDAP server)</li>
</ul>
</li>
<li><code>user.rb</code> has the following new features:
<ul>
<li>Can store group_names temporarily (needed to get things working with a consistent implementation for normal login, auto-relogin, and on-the-fly creation of users and to save a few round-trips to LDAP)</li>
<li>a method <em>refresh_group_memberships</em> to update the group membership information based on what was returned by LDAP</li>
</ul>
</li>
<li><code>group.rb</code> was changed as follows:
<ul>
<li>Contains a new class method, <em>shorten_lastname</em>, to (nicely, IMHO) shorten group names when the names in LDAP exceed the length limit</li>
<li>Two new methods, <em>size_and_updated_by_string</em> and <em>updated_by_string</em> to simplify the form rendering routines</li>
</ul>
</li>
<li><code>auth_sources_controller.rb</code> now includes a method for the "refresh groups" button described above</li>
<li><code>auth_sources/list.rhtml</code> and <code>auth_sources/_form.rhtml</code> do provide UI for this button and the new group fields</li>
<li><code>groups/index.html.erb</code> and <code>groups/_form.html.erb</code> do provide the UI changes for the automatic groups</li>
<li><code>locales/en.yml</code> and <code>locales/de.yml</code> have the text elements for the new UI</li>
<li><code>migrate/20100207220329_extend_ldap_groups.rb</code> and <code>migrate/20100204211355_add_ldap_group_support.rb</code> are the two new migrations (I did the implementation in two stages)</li>
</ol>
<a name="The-patch"></a>
<h2 >The patch<a href="#The-patch" class="wiki-anchor">¶</a></h2>
<p>The patch <strong>includes</strong> a better version of <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Allow on-the-fly creation on member addition (Closed)" href="https://www.redmine.org/issues/4643">#4643</a> (Allow on-the-fly creation on member addition), as I was unhappy with the way I originally hacked <code>auth_source_ldap.rb</code> (too much code duplication in my original version). If you do not want that feature, back out the change to <code>members_controller.rb</code> after applying the patch. Also, the change to <code>auth_source.rb</code> (new class methods <em>import</em> and <em>get_data</em>) is only strictly required when on-the-fly project member addition is needed.</p>
<p>The patch does <strong>not</strong> include <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Make login case-insensitive also for PostgreSQL (Closed)" href="https://www.redmine.org/issues/4732">#4732</a> (Make login case-insensitive also for PostgreSQL), although line numbers might reflect that change.</p>
<p>The patch is against 0.9.0rc.</p>
<a name="Trunk-integration"></a>
<h2 >Trunk integration?<a href="#Trunk-integration" class="wiki-anchor">¶</a></h2>
<p>Jean-Philippe et al.: What is required to get this code integrated into trunk? I think that LDAP integration without something like this is severely limited and thus this should be included.</p> Redmine - Patch #4705 (New): Allow selection of up to five fields in timelog reporthttps://www.redmine.org/issues/47052010-02-01T12:27:10ZFrédéric Moulins
<p>It is useful if you want to match the detailed view (<a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Custom fields should become addable to Spent Time list/report (Closed)" href="https://www.redmine.org/issues/1766">#1766</a>), or, like me, if you use custom fields in time entries.</p>
<p>For example, you can create a report like "Member, Custom Field, Project, Issue or Activity".</p> Redmine - Patch #4665 (New): Projects not calling EnabledModule callbacks in some caseshttps://www.redmine.org/issues/46652010-01-27T09:04:30ZEnrique Garcia
<p>Implementation of Project.enabled_module_names= still calls modules.clear() in some cases (if nil is passed as parameter).</p>
<p>This has the risk of not invoking module callbacks (before_create, after_create, before_destroy, after_destroy) correctly.</p>
<p>Proposed change is to remove all traces of modules.clear(). Example:</p>
<pre>
def enabled_module_names=(module_names=[])
module_names = module_names.collect(&:to_s)
# remove disabled modules
enabled_modules.each {|mod| mod.destroy unless module_names.include?(mod.name)}
# add new modules
module_names.reject {|name| module_enabled?(name)}.each {|name| enabled_modules << EnabledModule.new(:name => name)}
end
</pre>
<p>Regards!</p> Redmine - Patch #4662 (New): Handled-mail should use set issue.assigned_to to the first "To" addresshttps://www.redmine.org/issues/46622010-01-27T02:58:12ZTed Behling
<p>I wanted to be able to send an e-mail "To" a certain person, and CC: the Redmine address, to have Redmine "assign" the resulting new issue to that person. The attached two-line patch to the MailHandler model seems to achieve that, in my limited testing. The assumption with this patch is that Redmine's "role" address is not assigned to a user. If the To: address is not found as a User, no user is assigned.</p> Redmine - Patch #4571 (New): Allow labels for Redmine linkshttps://www.redmine.org/issues/45712010-01-13T14:40:45ZAndy Fowler
<p>Allow wiki syntax like:<br /><pre>
"some important ticket":#34
and
"this big commit":r123
</pre></p>
<p>Added via attached patch (against <a class="changeset" title="Set a white list of issue attributes that can be mass-assigned from controllers." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3308">r3308</a>) (and at <a class="external" href="http://github.com/andyfowler/redmine/commit/bcc4dbca53629a61ea9551d62c6c6b7d8d44247f">http://github.com/andyfowler/redmine/commit/bcc4dbca53629a61ea9551d62c6c6b7d8d44247f</a>). I also sent a pull request to Eric Davis. Not sure what the best way was to submit this.</p> Redmine - Patch #4535 (New): Import Target Version from Mantishttps://www.redmine.org/issues/45352010-01-07T22:25:37ZWim Heirman
<p>Currently, the Mantis importer only looks at the "Fixed in Version" which gets stored in Redmine's Target version field. All my open issues loose their target version now though, since they only have a Target version and no Fixed In version. This patch does the (for me logical) thing of importing the Fixed in version if it exists, and else the Target version.</p> Redmine - Patch #4277 (New): Add "hide prefixed projectname from issuesubject on issuelist" settinghttps://www.redmine.org/issues/42772009-11-24T00:54:39ZMischa The Evil
<p>This issue is extracted from <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Better display of subprojects activiry and tickets. (Closed)" href="https://www.redmine.org/issues/3100">#3100</a> and it's relatives. The patch adds a new system-wide, issue-tracking setting (<code>hide_prefixed_projectname_from_issuesubject_on_issuelist</code>) which provides the administrator an option to hide the subproject name (which is prefixed in front of the issue descriptions on mainproject issue lists) completely.<br />Such a setting can be useful if the site is configured to display the <code>project</code>-column be default.</p>
<p>The default setting is equal to as it is currently(the projectnames are shown prefixed to the descriptions).</p> Redmine - Patch #4262 (New): Bazaar: correct renames handling, other improvementshttps://www.redmine.org/issues/42622009-11-21T23:43:56ZIvan Korotkov
<p>This patch fixes some problems with Bazaar adapter, namely:</p>
<ul>
<li>Renames shown correctly (past behaviour was: show as modified);</li>
<li>History doesn't stop on first entry rename (uses internal object ids to retrieve changes);</li>
<li>Last revision the entry was changed in displayed correctly (past behaviour was: sort alphabetically, i.e. if object was changed in 2, 9, 13, then 9 would be shown);</li>
<li>Field tags changed a little to make it clear to user that he can either enter local path to branch repo or <code>http://</code> URL).</li>
<li>Bazaar adapter uses <code>change.revision</code> to store internal object ids which are pretty long, not revision number. So when viewing <code>repository/revisions/:id</code>, these long ids are shown <strong>after</strong> diff link, not before it (more convenient for bazaar, doesn't change anything for other SCMs).</li>
</ul>
<p>Patch created against <a class="changeset" title="Changes misleading scopes on Enumeration." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3083">r3083</a>.</p> Redmine - Patch #4071 (New): Accept more input when replying to a ticket using e-mailhttps://www.redmine.org/issues/40712009-10-21T14:18:43ZOxan -
<p>Currently, you can only set the status field when you reply at a ticket using e-mail. This patch adds the possibility to change the priority, category, tracker, target version, done ratio, project and custom fields, with respecting the allow_override setting.</p>
<p>You can delete the target version field with setting it to 'none'. The target version is named Target and the done ratio is named Done.</p>
<p>Example mail:<br /><pre>Here your comment
Target: 0.9
Done: 50
Tracker: Defect
Priority: Low</pre></p>
<p>Diff is made against 0.8.6, but should work for trunk too.</p> Redmine - Patch #4029 (New): Deletion of redmine-project should delete svn-project, toohttps://www.redmine.org/issues/40292009-10-14T13:05:57ZLars Scheithauer
<p>This small modification adds another argument --delete to <em>extra/svn/reposman.rb</em>.</p>
<p>Adding this argument to the cronjob will match the registered redmine projects against the folders in the svn repository directory and delete any obsolete svn repositories.</p> Redmine - Patch #3901 (New): Make length of short project description customizablehttps://www.redmine.org/issues/39012009-09-22T12:10:26ZBernhard Furtmueller
<p>Introducing a configurable length of the short project description.</p>
<p>If you have many project with long descriptions some overview pages<br />get to long otherwise.</p>
<p>Thanks for feedback,<br />bernhard</p> Redmine - Patch #3803 (New): Show custom user fields in csv export of time entry reportshttps://www.redmine.org/issues/38032009-09-01T12:31:05ZRoderik van der Veer
<p>Ok, fist of all, this was my first morning of ruby hacking, so code quality = 0. But it does what i need for now, and i wanted to share it.</p>
<p>The idea is as follows, i use these csv's to get my data in categories and per user into excel and do analysis on them. The problem is that not all users work at the same rate, and that is kinda vital to my analysis. I also don't want to copy paste in excel until i have a "rate" column for every user in every category in every product. The Rate plugin did,'t integrate with the normal time tracking export so i changed some core code by myself.</p>
<p>So i created a custom field on user (Rate) and i added some "if" statements in report_ ... _to_csv in the timeloghelper.rb. If "Member" is in the criteria, i add the custom fields of user just behind the Member column. This way i would have a colum "Member" and a column "Rate" (or any other custom user field i make.</p>
<p>To make it work i changed these to methods like so:</p>
<pre>
Index: timelog_helper.rb
===================================================================
--- timelog_helper.rb (revision 2847)
+++ timelog_helper.rb (working copy)
@@ -68,6 +68,8 @@
ic = Iconv.new(l(:general_csv_encoding), 'UTF-8')
decimal_separator = l(:general_csv_decimal_separator)
custom_fields = TimeEntryCustomField.find(:all)
+ #custom_user_fields = UserCustomField.find(:all)
+ #raise custom_user_fields.inspect
export = StringIO.new
CSV::Writer.generate(export, l(:general_csv_separator)) do |csv|
# csv header fields
@@ -115,6 +117,11 @@
CSV::Writer.generate(export, l(:general_csv_separator)) do |csv|
# Column headers
headers = criterias.collect {|criteria| l(@available_criterias[criteria][:label]) }
+ #logger.info{headers.inspect}
+ if headers.include?("Member")
+ custom_user_fields = UserCustomField.find(:all)
+ headers += custom_user_fields.collect(&:name)
+ end
headers += periods
headers << l(:label_total)
csv << headers.collect {|c| to_utf8(c) }
@@ -141,6 +148,14 @@
next if hours_for_value.empty?
row = [''] * level
row << to_utf8(format_criteria_value(criterias[level], value))
+ #logger.info criterias.inspect
+ if (criterias[level] == "member")
+ k = @available_criterias[criterias[level]][:klass]
+ user = k.find_by_id(value.to_i)
+ custom_user_fields = UserCustomField.find(:all)
+ #logger.info user.inspect
+ row += custom_user_fields.collect {|f| show_value(user.custom_value_for(f)) }
+ end
row += [''] * (criterias.length - level - 1)
total = 0
periods.each do |period|
</pre> Redmine - Patch #3749 (New): Wiki. TOC. The standardised anchors and admissible "fragment" part o...https://www.redmine.org/issues/37492009-08-17T23:10:11ZRoman Musin
<p>In such browsers as Opera 9/10 links in TOC menu does not work, this patch make link as much as possible compatible.</p>
<p>OS: Linux devis 2.6.26-2-686 <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: permissions if not admin (Closed)" href="https://www.redmine.org/issues/1">#1</a> SMP Sun Jun 21 04:57:38 UTC 2009 i686 GNU/Linux<br />Browser: Google Chrome 3.0.190.2, Opera 9.64, Firefox 3.08<br />Check XHTML with HTML Validator 0.8.5.8 (0 warnings, 0 errors)</p>
<hr />
<p>First patch for current trunk.</p>
<p>./script/about:<br /><pre>
About your application's environment
Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.2
Rails version 2.2.2
Active Record version 2.2.2
Action Pack version 2.2.2
Active Resource version 2.2.2
Action Mailer version 2.2.2
Active Support version 2.2.2
Application root /home/devis/RedmineCurrent
Environment development
Database adapter sqlite3
Database schema version 20090614091200
</pre></p>
<p>svn info<br /><pre>
Path: .
URL: svn://rubyforge.org/var/svn/redmine/trunk
Repository Root: svn://rubyforge.org/var/svn/redmine
Repository UUID: e93f8b46-1217-0410-a6f0-8f06a7374b81
Revision: 2845
Node Kind: directory
Schedule: normal
Last Changed Author: jplang
Last Changed Rev: 2845
Last Changed Date: 2009-08-17 20:37:31 +0400 (Пнд, 17 Авг 2009)
</pre></p>
<p>Without patch one test failed:<br /><pre>
1) Failure:
test_show_atom(IssuesControllerTest)
[./test/functional/issues_controller_test.rb:377:in `test_show_atom'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in `__send__'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in `run']:
<false> is not true.
</pre></p>
<p>With patch one test failed too:<br /><pre>
1) Failure:
test_show_atom(IssuesControllerTest)
[./test/functional/issues_controller_test.rb:377:in `test_show_atom'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in `__send__'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in `run']:
<false> is not true.
</pre></p>
<hr />
<p>Second patch for stable branch.</p>
<p>./script/about:<br /><pre>
About your application's environment
Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.4
Rails version 2.1.2
Active Record version 2.1.2
Action Pack version 2.1.2
Active Resource version 2.1.2
Action Mailer version 2.1.2
Active Support version 2.1.2
Application root /home/devis/Redmine
Environment development
Database adapter sqlite3
Database schema version 101
</pre></p>
<p>svn info:<br /><pre>
Path: .
URL: svn://rubyforge.org/var/svn/redmine/branches/0.8-stable
Repository Root: svn://rubyforge.org/var/svn/redmine
Repository UUID: e93f8b46-1217-0410-a6f0-8f06a7374b81
Revision: 2845
Node Kind: directory
Schedule: normal
Last Changed Author: edavis10
Last Changed Rev: 2831
Last Changed Date: 2009-08-01 22:28:57 +0400 (Сбт, 01 Авг 2009)
</pre></p> Redmine - Patch #3608 (New): migrate_from_mantis encoding patchhttps://www.redmine.org/issues/36082009-07-11T10:07:15ZMykhaylo Sorochan
<p>Encoding was not set for database connection</p> Redmine - Patch #3477 (New): Fix access handler to remove the need for a separate svn-private/git...https://www.redmine.org/issues/34772009-06-10T19:54:22ZFaidon Liambotis
<p>The attached patch "fixes" the Apache access handler to accomodate for Apache's "Satisfy any" option.</p>
<p>Using this, I've successfully served (non-public) projects with authentication to members but no authentication to Redmine's browser. I've updated the sample Apache configuration, it should be quite straightforward.</p> Redmine - Patch #3437 (New): Textile parser regression with !! urlhttps://www.redmine.org/issues/34372009-06-02T14:13:40ZVianney Lecroart
<p>In <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Insert image macro corrupts urls with excalamation marks (Closed)" href="https://www.redmine.org/issues/3209">#3209</a> you added support for excalamation marks in url but it disabled the possibility to do linkable image.</p>
<p>Suggested patch:</p>
<p>When we arrive at evaluating this re, the input looks like either like:<br /><pre>
<p>!/attachments/download/1!</p> <-- we want to expand
or
<p>http://www.pouet.com/ahah!lol! <-- we don't want to expand
</pre></p>
<p>But also like, when we have "p=." <br /><pre>
<p :redsh#1:>!/attachments/download/1!</p>
</pre></p>
<p>Therefore I suggest to use this re in redcloth3.rb :</p>
<pre>
IMAGE_RE = /
(<p>|<p\s:.*:>|\s|^) # start of line?
\! # opening
</pre> Redmine - Patch #3394 (New): stripping comments prevents importing Trac compatible subversion mes...https://www.redmine.org/issues/33942009-05-20T09:19:56ZMatthew Daniel
<p>Please change <a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/entry/trunk/app/models/changeset.rb#L144">source:trunk/app/models/changeset.rb#L144</a><br />from<br /> <code>to_utf8(str.to_s.strip)</code><br />to<br /> <code>to_utf8(str.to_s)</code></p>
<p>The wiki formatting used by Trac requires that bullet lists include a leading space before the asterisk. The wiki formatter used in Redmine appears to accept the bullet list syntax with and without the leading space, but not a mixture of both.</p>
<p>When importing a subversion repository which was used with Trac, it is important to preserve this leading space, otherwise the changeset comment is formatted by Redmine as one bullet entry containing multiple asterisks.</p>
<p>Perhaps an example will help:<br />the changeset message is<br /><pre>
* item 1
* item 2
* item 3
</pre><br />which when stripped is inserted in the database as:<br /><pre>
* item 1
* item 2
* item 3
</pre><br />causing Redmine to format it as:</p>
<ul>
<li>item 1
* item 2
* item 3</li>
</ul> Redmine - Patch #3357 (New): Revision log relative to current location in the Repository Browserhttps://www.redmine.org/issues/33572009-05-13T19:15:18ZLance Sanchez
<p>we recently converted from track to redmine an a feature request I'm getting at the office is in the repository browser to show the changesets that effect the current directory and lower</p> Redmine - Patch #3274 (New): Wiki Page Categorieshttps://www.redmine.org/issues/32742009-04-30T11:21:59ZSven Schwyn
<p>This patch is a preliminary implementation of wiki page categories (think: Wikipedia) for Redmine.</p>
<p>The patch is against Redmine 0.8.3. Watch it in action here:<br /><a class="external" href="http://www.bitcetera.com/assets/media/wiki_page_categories.mov">http://www.bitcetera.com/assets/media/wiki_page_categories.mov</a></p>
<p>Please note that I haven't written nor adapted any tests/fixtures yet. If you choose to adopt this patch, I'll catch up on this.</p> Redmine - Patch #3117 (New): Add the possibility to select the comment field to /timelog/reporthttps://www.redmine.org/issues/31172009-04-03T13:53:28ZNicolas Maeder
<p>Sometimes, I need to see the comments in the report, so I added <strong>comment</strong> to the list of additional details</p>
<p>URL for details report: <code>/timelog/report</code></p> Redmine - Patch #3052 (New): Patch for Redmine to persist form state when adding multiple issueshttps://www.redmine.org/issues/30522009-03-26T04:09:39ZHenrique Bastos
<p>When creating multiple issues in Redmine, I wanted that "save and continue" to persist some of the form states for the next issue.</p>
<p>To do it, I made this little patch that enables a new issue to inspire itself on another issue.</p>
<p>I’ve tested the patch against the stable releases 0.8.1 and 0.8.2.</p> Redmine - Patch #2862 (New): Make user sorting by his localized encoding name instead of utf-8 en...https://www.redmine.org/issues/28622009-02-28T09:11:15ZChaoqun Zou
<p>For those using non-ASCII systems, sorting user by name using a utf-8 encoding name and sorting user by name using their localized encoding name have different results.</p>
<p>For example: there are three users: user1, user2, user3.<br />If we sort them by name using the original utf-8 strings, the order may be: user1, user2, user3.<br />But when we convert the name string to another encoding(like gb2312) first, and then sort them by name, the result's order may be: user2, user1, user3.<br />And the second result is more acceptable than the first one.</p>
<p>So I thought that it would be great to convert the name string from utf-8 to the localized encoding before sorting user by name.</p>
<p>Since there is just one line bo be add to the user's model class, I didn't attach a diff file.<br />About line 217:<br /><pre>
<code class="ruby syntaxhl"> <span class="k">def</span> <span class="nf"><</span><span class="o">=></span><span class="p">(</span><span class="n">user</span><span class="p">)</span>
<span class="n">ic</span> <span class="o">=</span> <span class="no">Iconv</span><span class="p">.</span><span class="nf">new</span><span class="p">(</span><span class="n">l</span><span class="p">(</span><span class="ss">:general_csv_encoding</span><span class="p">),</span> <span class="s1">'UTF-8'</span><span class="p">)</span>
<span class="n">ic</span><span class="p">.</span><span class="nf">iconv</span><span class="p">(</span><span class="nb">self</span><span class="p">.</span><span class="nf">to_s</span><span class="p">.</span><span class="nf">downcase</span><span class="p">)</span> <span class="o"><=></span> <span class="n">ic</span><span class="p">.</span><span class="nf">iconv</span><span class="p">(</span><span class="n">user</span><span class="p">.</span><span class="nf">to_s</span><span class="p">.</span><span class="nf">downcase</span><span class="p">)</span>
<span class="k">end</span>
</code><br /></pre></p> Redmine - Patch #2750 (New): Project tinyurlhttps://www.redmine.org/issues/27502009-02-14T14:03:48ZSimone Carletti
<p>Some months ago, before the great restful reorganization patch (<a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: RESTful URLs for everything (Closed)" href="https://www.redmine.org/issues/1901">#1901</a>), I created a small feature called project tinyurl.<br />This is a supersimple action that provides an unique permalink to a project path and redirects any request to the real project URL.</p>
<p>Example:</p>
<p><a class="external" href="http://www.redmine.org/redmine">http://www.redmine.org/redmine</a> => <a class="external" href="http://www.redmine.org/projects/show/redmine">http://www.redmine.org/projects/show/redmine</a><br /><a class="external" href="http://www.redmine.org/foobar">http://www.redmine.org/foobar</a> => <a class="external" href="http://www.redmine.org/projects/show/foobar">http://www.redmine.org/projects/show/foobar</a></p>
<p>Here's a couple of real world examples:</p>
<p><a class="external" href="http://code.simonecarletti.com/www-delicious">http://code.simonecarletti.com/www-delicious</a><br /><a class="external" href="http://code.simonecarletti.com/apachelogregex">http://code.simonecarletti.com/apachelogregex</a></p>
<p>I forked Eric's repos on GitHub and provided a full patch along with functional and integration tests.</p>
<p><a class="external" href="http://github.com/weppos/redmine">http://github.com/weppos/redmine</a></p>
<p>All changes are available in a separate branch called <code>tinuyrl</code> (ehm... I mispelled it on creation!).</p> Redmine - Patch #2748 (New): Improved Trac-Importer with subversion repository migrationhttps://www.redmine.org/issues/27482009-02-13T22:22:29ZMathias Kühn
<p>I've spent some time improving the trac import script and also to provide a tool to also migrate the associated Subversion repository.</p>
The following changes were done to the trac migration process:
<ul>
<li>The original trac ticket id is stored in a new custom field named <strong><b>TracID</b></strong></li>
<li>The modification of all Wiki-like texts is done after all tickets have been migrated as only then all newly assigned ticket ids are defined.</li>
<li>Numbered lists are now supported</li>
<li>Source links are done the same way as milestones are treated</li>
<li>The modification of any Wiki-like texts (Milestone descriptions, Issue descriptions, Issue change notes, and Wiki pages) was added</li>
</ul>
<p>In addition to the migration of the trac repository, we had to modify the associated svn repository since the checkin comments were also having references to tickets in the commit messages. The new rake task <strong><b>redmine:migrate_svn_commits</b></strong> can be run after the trac repository has been migrated. The new task is recreating the association between trac ticket id and newly created redmine ticket id. Then all commit messages in the provided repository are extracted and converted with the same wiki translation during the trac migration. All ticket references are modified to point to the newly assigned redmine ticket identifiers.</p>
<p>Running the tool gives you the following output:<br /><pre>
rake redmine:migrate_svn_commits RAILS_ENV="production"
WARNING: all commit messages with references to trac pages will be modified
Are you sure you want to continue ? [y/N] y
Subversion repository url []: http://svn.server.dom/project
Subversion repository username []: user
Subversion repository password []: secret
Redmine project identifier []: project-id
</pre></p>
<p>In order for the script to succeed, the subversion repository must allow modification<br />of revision properties. This can be accomplished by enabling the <strong><b>pre-revprop-change</b></strong> hook script<br />that returns 0 to the caller. The script can be as simple as the following:</p>
<p>A Windows <strong><b>pre-revprop-change.cmd</b></strong>:<br /><pre>
exit 0
</pre></p>
<p>...or a unix executable script <strong><b>pre-revprop-change</b></strong><br /><pre>
#!/bin/sh
exit 0
</pre></p> Redmine - Patch #2696 (New): Add subcategory to categoryhttps://www.redmine.org/issues/26962009-02-07T22:40:44ZRob Elsner
<p>This patch contains 2 migrations to add a column to issues and a table called issue_subcategories. This will allow users to have Categories, and a subcategory grouping below that.</p>
<p>I have tried to add the necessary parts for English, and use similar names for category.</p>
<p>This was diff'd against svn trunk revision 2399.</p> Redmine - Patch #2576 (New): Partially decouple application_helper.rb from Gravatarhttps://www.redmine.org/issues/25762009-01-24T22:17:36ZBrad Beattie
<p>The application_helper.rb directly accesses the Gravatar function by email. I would argue that it would be better to instead use vendor/plugins/gravatar/lib/gravatar.rb's gravatar_for function with the user object.</p>
<p>The situation I have here is that my local instance has modified the Gravatar plugin to use locally stored avatars linked by email address (as dictated by application_helper.rb). Occasionally, users change their email addresses, which requires renaming their avatar files. If the change I proposed was implemented, this local avatar plugin would be doable. Without it, the avatar system is intrinsically tied to email addresses.</p>
<p>I'm not sure what patch formats you prefer, so here's the proposed change:</p>
<pre><code class="ruby syntaxhl"><span class="k">def</span> <span class="nf">avatar</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="n">options</span> <span class="o">=</span> <span class="p">{</span> <span class="p">})</span>
<span class="k">if</span> <span class="no">Setting</span><span class="p">.</span><span class="nf">gravatar_enabled?</span>
<span class="k">return</span> <span class="n">gravatar_for</span><span class="p">(</span><span class="n">user</span><span class="p">)</span> <span class="k">unless</span> <span class="n">user</span><span class="p">.</span><span class="nf">mail</span><span class="p">.</span><span class="nf">blank?</span> <span class="k">rescue</span> <span class="kp">nil</span>
<span class="k">end</span>
<span class="k">end</span>
</code></pre>
<p>Apologies if my syntax is wrong. I'm so very, very new to Ruby.</p> Redmine - Patch #2510 (New): [SCM, Bazaar] Prefer revision's "author" field over "committer" if a...https://www.redmine.org/issues/25102009-01-14T17:58:54ZDaniel Schömer
<p>I'm using the Bazaar SCM Adapter. Some revisions have the <code>author</code> field set to show that the committer of that revision was not the author of that change. This info is given by the <code>--author</code> option of Bazaar's <code>commit</code> command.</p>
<p>The current Bazaar SCM Adapter always uses the <code>committer</code> field to set the author of a revision.</p>
<p>I like the Bazaar SCM Adapter to prefer the <code>author</code> field over the <code>committer</code> field, if the <code>author</code> field is set. The attached patch changes <code>lib/redmine/scm/adapters/bazaar_adapter.rb</code> accordingly.</p> Redmine - Patch #2195 (New): wiki marco to link to fileshttps://www.redmine.org/issues/21952008-11-15T16:34:35ZAnh Kỳ Huỳnh
<p>I create an wiki macro so I can link to attachment file easier:<br /><pre>
{{file(id:Title)}}
{{file(id/filename:Title)}}
</pre></p>
<p>I don't know how to get the filename from the file's identity. I hope the someone may help me:)</p>
<p>Hope this is usefull :)</p> Redmine - Patch #2114 (New): Fixed Bugs in Importer Areahttps://www.redmine.org/issues/21142008-10-30T21:15:19ZKarl Heinz Marbaise
<p>Hi,<br />i have created separate class and unit test to fix the following issues: <br /><a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Milestones after Migration from Trac to Redmine are not marked as closed (Closed)" href="https://www.redmine.org/issues/1949">#1949</a>, <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Content of the Milestone page is not converted. (Closed)" href="https://www.redmine.org/issues/1950">#1950</a>, <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Migration from Trac to Redmine import of highlighting code is not correct (Closed)" href="https://www.redmine.org/issues/2023">#2023</a>, <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Milestones will not correctly converted. (Closed)" href="https://www.redmine.org/issues/2052">#2052</a>, <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Trac: Migration of ticket:123 or [ticket:34] do not work (Closed)" href="https://www.redmine.org/issues/2053">#2053</a>, <a class="issue tracker-3 status-1 priority-4 priority-default" title="Patch: Trac Tables are not converted into Redmine (New)" href="https://www.redmine.org/issues/2054">#2054</a>, <a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: [source:XYZ@latest#L142 Line 3434] will not be converted (New)" href="https://www.redmine.org/issues/2068">#2068</a>, <a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: [mailto:supose@soebes.de] will not correctly converted (New)" href="https://www.redmine.org/issues/2089">#2089</a></p>
<p>It will make <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Summarization of #1949, #1950 and #2023 (Closed)" href="https://www.redmine.org/issues/2050">#2050</a> needless. Other information for example in which directories they should be put into, can be found in the <a href="http://www.redmine.org/boards/1/topics/show/2761" class="external">forum discussion</a></p>
<p>Suggestions about the code etc. are appreciated.<br />Kind regards<br />Karl Heinz Marbaise</p> Redmine - Patch #1857 (New): Make {{toc}} render as properly nested list + skip supporthttps://www.redmine.org/issues/18572008-09-04T14:34:40ZJim Jones
<p>The attached patch changes the {{toc}}-macro to render as a properly nested HTML unordered list.<br />Furthermore it adds a parameter to skip the first n headlines, because at least the first one is usually not interesting:</p>
<p>Example:
{{toc:1}} skips the first headline.
{{toc:3}} skips the first three headlines.</p>
<p>The patch also removes the (now superflous) css indentation rules for the <li> elements.</p> Redmine - Patch #1783 (New): automatic repository creationhttps://www.redmine.org/issues/17832008-08-13T14:42:52Zpietro abate
<p>Hello everybody. This is my first patch. Be nice. I'm a ruby, rails and redmine newbie.</p>
<p>The patch attached (generated from git following [1]) adds the ability for the <br />project manager to decide weather to specify an external repository, or to<br />have one automatically created for him/her on the hosting site.</p>
<p>I've added a new script repomangen that works exactly as repoman, but ideally<br />for all kind of scm.</p>
<p>In the process I think I've also found a bug in app/controllers/sys_controller.rb<br />but since I'm not really sure that it's really a bug I'm bundling everything together.</p>
<p>I think this patch still needs some love, but I'd love to see it upstream, or at least<br />for testing, in John Goerzen git repo.</p>
<p>Comments are welcome.</p>
<p>[1]http://www.redmine.org/wiki/1/RedmineGitTracking</p> Redmine - Patch #1764 (New): Add session_config option-stubs to environment-confighttps://www.redmine.org/issues/17642008-08-11T01:56:41ZMischa The Evil
<p>This is a multi-branch (trunk and stable-0.7.3) patch which simply adds two session-related configuration-directive stubs to <em>./config/environment.rb</em>.</p>
The given stubs are for:
<ul>
<li><code>session_key</code></li>
<li><code>session_path</code></li>
</ul>
<p>I created (and provide) this patch due to the fact that one of both directives is required to run multiple Redmine (or other apps which use the same session-names as Redmine) deployments on the <strong>same domain</strong> (though <strong>seperate installs</strong> under several <strong>different sub-URI's</strong>) without suffering from <em>session-mangling</em>.<br />Both directives aren't documented (sufficiently) imho at the Redmine website or the Redmine Code-base. That is the reason why I'd propose to add something like provided with this patch. If it is not taken into the project I would propose to add an entry to the Redmine FAQ about these issues. I am volunteering already... :-)</p>
I already found some related issues and threads:
<ul>
<li><a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Append suffix to cookie name (Closed)" href="https://www.redmine.org/issues/540">#540</a></li>
<li><a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: login problem with 2 redmine installation on the same server (Closed)" href="https://www.redmine.org/issues/1041">#1041</a></li>
<li><a class="external" href="http://www.redmine.org/boards/2/topics/show/150#message-163">http://www.redmine.org/boards/2/topics/show/150#message-163</a></li>
</ul>
<p>Both issues contain comments which faulty "documents" the session_key directive. This faultyness is due to the fact that rake will crash if the session_key directive is used in <em>./config/enviroment.rb</em> as commented in both issues probably caused by the rake-scripts which aren't accepting Rails 2.1 syntaxis.<br />The mentioned forum-thread gives to correct syntaxis though it is mixed with another config-directive in some another case.</p>
<p><strong>Beware</strong>: This patch only adds config-stubs which solves the session-mangling behaviour in the given environment. It does not fix any related problems with the so-called autologin-cookie. I created a sepereate specific issue for that (<a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Autologin-cookie should be configurable (Closed)" href="https://www.redmine.org/issues/1763">#1763</a>).<br />See also <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Append suffix to cookie name (Closed)" href="https://www.redmine.org/issues/540">#540</a> and partly <a class="issue tracker-2 status-1 priority-3 priority-lowest" title="Feature: option to set secure flag on session and autologin cookie (New)" href="https://www.redmine.org/issues/982">#982</a> regarding the problems with the autologin-cookie.</p> Redmine - Patch #1705 (New): Use Rails timezones supporthttps://www.redmine.org/issues/17052008-07-29T13:09:33ZArtem Vasiliev
<p>This switches off previous time offset calculation when showing time values to user, relying on Rails timezones support instead.</p>
<p>This is essential for cases when time is entered by user, so we need this for our <a class="issue tracker-3 status-1 priority-4 priority-default" title="Patch: Start/end time tracking for timelogging (New)" href="https://www.redmine.org/issues/1650">#1650</a> patch (otherwise user sees his time +his timezone offset).</p>
<p>This doesn't bring much to current Redmine as all the time fields are populated automatically currently. May be it could be used to correct SCM timestamps if some give it in non-UTC. And surely this will help time values in custom fields when they support it.</p>
<p>After this patch is applied all the datetimes in the database will be interpreted as being in UTC, so if they don't they need to be updated. For this new redmine:convert_database_times_to_utc rake task is included. Be sure to correct its LOCAL_UTC_OFFSET and back up the database prior to running.</p>
<p>Contributed by Texuna Technologies.</p> Redmine - Patch #1700 (New): Support for extra macros to help in move from trachttps://www.redmine.org/issues/17002008-07-28T16:31:43ZRobert Shell
<p>With moving from trac needed some more macros for linking issues back to wiki pages to show queue sizes, new tickets waiting in a area etc. issue_list Lists Issues matching a list of given parameters</p>
<pre><code>!{{issue_list(tracker,category,status,user,max) }}</code></pre>
<p>issue_count, Count number of issues matching a set of filters (tracker,owner,category,status currently supported as filters)</p>
<pre><code>!{{issue_count(tracker=xxx,category=xxx,status=xxxx) }}</code></pre>
<p>issue_query: Same as issues_count be returns lists and not single count</p>
<pre><code>!{{issue_query(tracker=dddd&category=dsdd&status=dddd&owner=ssss&max=10) }}</code></pre>
<p>Also with more of wiki pages across had problems with lose of TitleIndex function so re-implement this for redmine. I Have added ability to create a number of styles of list.</p>
<p>title_list: Inserts an alphabetic list of all wiki pages into the output. Appears as a unordered list</p>
<pre><code>{{title_list(title-prefix)}}</code></pre>
<p>title_menu: Inserts an alphabetic menu (toc style) of all wiki pages into the output. This uses the toc css to produce a nice side menu to link groups of pages together.</p>
<pre><code>{{title_menu(title-prefix,level,max,css-sytle)}}</code></pre>
<p>title_bar: Inserts an alphabetic menu of all wiki pages into the output. This is basically aimed a across the screen menu with details menu currently styled as a table to our old trac navigation.</p>
<pre><code>!{{title_bar(title-prefix,level,max,css-sytle)}}</code></pre>
<p>title_index: title_index boxed up titles by letter to create a glossary or index. Use this for generation of a glossary and for larger indexes of pages.</p>
<pre><code>!{{title_menu(title-prefix,columns,max)}}</code></pre>
<p>__</p> Redmine - Patch #1601 (New): Make second level navigation for all views in repository controllerhttps://www.redmine.org/issues/16012008-07-08T12:22:18ZBradley Whittington
<p>We are using redmine for internal project management, and we found it lacking a consistent second level navigation while browsing files, reviewing diffs, etc. under the repositories controller.</p>
<p>This patch moves the navigation originally provided on the "changes" view, into a partial template called _entry_nav.rhtml, expands it to include links for annotation, view, and a link back to the changes view, labelled as "History".</p>
<p>the partial can take an additional variable called current_view which hints to the second level nav which view is currently being shown, so it can hide the irrelevant link.</p>
<p>The patch also moves the navigation provided in the revision view (the next changeset, previous changeset) into a partial called _changeset_nav.rhtml so that it can be used on the 'browse' view, and later could be expanded to be used on the 'entry', 'annotation' etc. view, so one could navigate changesets relevant to that file, providing a temporal navigation to the repositories.</p>
<p>We have found it to be a nice improvement because it is easy to jump from a changeset listing to a file's annotation, diff, view, and history</p>
<p>I built the patch against an svn checkout of the 0.7-stable branch</p> Redmine - Patch #1382 (New): Add a global notification cc https://www.redmine.org/issues/13822008-06-05T07:27:21ZJames Turnbull
<p>We cc'ed all notifications to a mailing list when we were using Trac and I wanted to add the same functionality to Redmine. Attached is a patch that adds a global cc to all notifications and adds a setting, mail_cc, to the Email Notifications settings panel.</p> Redmine - Patch #1059 (New): Fully integrates svn/dav apache authenticationhttps://www.redmine.org/issues/10592008-04-15T07:00:33ZLionel Molinier
This patch provides:
<ul>
<li>User authentication based on the Redmine authentication module (including external source, such as LDAP) via the Redmine WebService. The password is ciphered in AES for the communication</li>
<li>Depending on their role on the project, users can have read/write access or read only access (new permission commit_repositories)</li>
<li>A fully configurable cache system has been deployed to improve performance (WebServices are quite slow).</li>
</ul> Redmine - Patch #1021 (New): Patch for #1013 (uniqueness-validation of custom query name within u...https://www.redmine.org/issues/10212008-04-08T18:58:53ZRocco Stanzione
<p>This adds a validator for uniqueness of a custom query name within the scope of the user.</p> Redmine - Patch #1008 (New): redmine:migrate_from_trac doesn't work when multibyte characters are...https://www.redmine.org/issues/10082008-04-07T06:54:20Zokkez _
<p>redmine:migrate_from_trac doesn't work when I use multibyte characters in trac.<br />So I wrote a simple patch for this problem.</p>
<p>I think this patch makes the task so slow.</p>
<p>Why the task doesn't work?<br />Because Ruby's String#[pos, length] counts bytes (Ruby1.8), but database counts characters (varchar(30)).</p>
<p>Another way, you fix database schema. <br />For example:<br /><pre>
issue_categories name varchar(30) -> varchar(255)
</pre></p>
<p>But this way cannot solves real problem in the task.</p> Redmine - Patch #989 (New): Migration task from Bugzillahttps://www.redmine.org/issues/9892008-04-03T21:00:21ZArjen Roodselaar
<p>I created this migration script last summer to do a basic migration from Bugzilla. Unfortunately I don't have a Bugzilla db at hand to test it against the current trunk, so it might be broken.</p>
<p>It currently migrates the following:</p>
<ul>
<li>Bugzilla products to Redmine projects, including Bugzilla components as Redmine catagories and versions</li>
<li>Users</li>
<li>Bugs, including comments</li>
</ul>
<p>It does NOT preserve relations between bugs, or attached files. Be advised that after the user migration you need to give users the proper project rights by hand. You could probably automate this by setting a default.</p> Redmine - Patch #258 (New): Textilize document snippet on overview and activity pagehttps://www.redmine.org/issues/2582008-01-29T04:15:00ZPanta Rhei
<p>Small patch for adding formattet Text in overwies.</p>
<p>See Ticket here: <a class="external" href="http://rubyforge.org/tracker/index.php?func=detail&aid=17583&group_id=1850&atid=7160">http://rubyforge.org/tracker/index.php?func=detail&aid=17583&group_id=1850&atid=7160</a></p> Redmine - Patch #257 (New): Optional project repository creation when using reposman.rbhttps://www.redmine.org/issues/2572008-01-28T15:33:00ZThomas Kjosmoen
<p>This is a patch set to give the administrator/manager the option exclude projects from being automatically created when<br />using the reposman.rb script.</p>
<p>To apply the patch, run the following command from inside your redmine directory:<br />patch -p0 < /path/to/redmine-autocreate-repository.patch</p>
<p>One of the implications is that you can allow a subproject to use a folder in the parent project's repository, instead<br />of creating completely separate repositories every time.</p>
<p>Hopefully, this patch will be useful.</p>