Redmine: Issueshttps://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292015-08-05T08:55:43ZRedmine
Redmine Redmine - Defect #20479 (New): Undocumented pagination support for APIhttps://www.redmine.org/issues/204792015-08-05T08:55:43ZTommaso Visconti
<p>It's not documented the possibility to use the <code>page</code> param instead of the <code>offset</code> param.</p>
<p>The <code>ApplicationController.api_offset_and_limit</code> method automatically calculate the offset if the <code>page</code> param is present</p> Redmine - Defect #20472 (New): Filtered API calls delete CORShttps://www.redmine.org/issues/204722015-08-04T15:51:12ZTommaso Visconti
<p>This is a strange behaviour of the API. I'm using rack-cors to enable API consuming by other apps (Ember.js).</p>
<p>When using various endpoints (/issues.json, time_entries.json, projects.json) everything is ok.</p>
<p>With this specific call, CORS headers aren't added to the response and the browser blocks the request with the "famous" error: <code>No 'Access-Control-Allow-Origin' header is present on the requested resource</code><br />The call is:</p>
<pre>
/time_entries.json?user_id=<ID>
or
/time_entries.json?user_id=me
</pre>
<p>The only added header is:</p>
<pre>
X-Rack-CORS: preflight-hit; no-origin
</pre>
<p>If I change the param with something not recognized by redmine (e.g. ?wrong_param=me), everything works well (the response isn't filtered). So the problem seems to be related to the filtering of the time entries by user.<br />Maybe with this particular filtering redmine creates a different response which avoid the rack-cors action?</p>
<p>The correct headers, added by rack-cors, should be:</p>
<pre>
Access-Control-Allow-Origin: http://localhost:4200
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
Access-Control-Max-Age: 0
Access-Control-Allow-Credentials: true
X-Rack-CORS: hit
</pre> Redmine - Defect #13140 (Closed): Redmine doesn't find plugin settings partialhttps://www.redmine.org/issues/131402013-02-12T13:36:05ZTommaso Visconti
<p>I'm trying to fix the redmine-gitolite plugin <a class="external" href="https://github.com/ivyl/redmine-gitolite">https://github.com/ivyl/redmine-gitolite</a> to work with Redmine 2.2.2.stable.</p>
<p>I get a 404 page when trying to open the settings page. The error is:</p>
<pre>
ActionView::MissingTemplate: Missing partial gitolite_settings/redmine_gitolite_settings with {:locale=>[:it, :en], :formats=>[:html], :handlers=>[:erb, :builder, :rsb]}. Searched in:
* "/home/tommyblue/Devel/redmine/app/views"
from /home/tommyblue/.rvm/gems/ruby-1.9.3-p374@redmine/gems/actionpack-3.2.11/lib/action_view/path_set.rb:58:in `find'
</pre>
<p>The <em>init.rb</em> file declares:</p>
<pre>
settings({
:partial => 'gitolite_settings/redmine_gitolite_settings',
:default => {
'gitoliteUrl' => 'gitolite@localhost:gitolite-admin.git',
'developerBaseUrls' => "git@example.com:%{name}.git",
'readOnlyBaseUrls' => 'http://example.com/git/%{name}',
'basePath' => '/home/redmine/repositories/',
}
})
</pre>
<p>It seems redmine isn't looking for the partial in the plugin views folder. I tried changing the name (to eventually avoid name conflicts) but the error remains.<br />I think I'm following all the instructions in the Redmine docs. Am I missing something or it's a bug?</p> Redmine - Defect #10505 (Closed): Error when exporting to PDF with NoMethodError (undefined metho...https://www.redmine.org/issues/105052012-03-21T10:21:32ZTommaso Visconti
<p>When exporting a wiki page to PDF I receive this error (from production.log):</p>
<pre>
NoMethodError (undefined method `downcase' for nil:NilClass):
lib/redmine/export/pdf.rb:120:in `RDMwriteHTMLCell'
lib/redmine/export/pdf.rb:509:in `wiki_to_pdf'
app/controllers/wiki_controller.rb:76:in `show'
passenger (3.0.6) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
passenger (3.0.6) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
passenger (3.0.6) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
passenger (3.0.6) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
passenger (3.0.6) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
passenger (3.0.6) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
passenger (3.0.6) lib/phusion_passenger/utils.rb:479:in `safe_fork'
passenger (3.0.6) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
passenger (3.0.6) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.6) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.6) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.6) lib/phusion_passenger/abstract_server.rb:180:in `start'
passenger (3.0.6) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
passenger (3.0.6) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
passenger (3.0.6) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
passenger (3.0.6) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
passenger (3.0.6) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
passenger (3.0.6) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (3.0.6) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
passenger (3.0.6) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
passenger (3.0.6) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
passenger (3.0.6) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.6) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.6) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.6) helper-scripts/passenger-spawn-server:99
Rendering /var/www/redmine-1.3.1/public/500.html (500 Internal Server Error)
</pre>
<p>I found a month-old report in the forum (<a class="external" href="http://www.redmine.org/boards/2/topics/29010">http://www.redmine.org/boards/2/topics/29010</a>) without any response.</p>
<p>I'm using Redmine 1.3.1.stable (MySQL)</p> Redmine - Defect #8707 (Closed): Reposman: wrong constant namehttps://www.redmine.org/issues/87072011-06-29T10:16:46ZTommaso Visconti
<p>I recently upgraded Redmine to version 1.2.0 and now I noticed that reposman stops to work. I call that script every 10 minutes to create git repos for new project.<br />It ends with a dark message and the -v flag isn't verbose at all! :)</p>
<p>~# ruby /var/www/redmine-1.2/extra/svn/reposman.rb --redmine localhost --svn-dir /repositories/git-root/ --owner www-data --group developers --url /repositories/git-root/ --scm git -v<br />querying Redmine for projects...<br />Unable to connect to <a class="external" href="http://localhost/sys/">http://localhost/sys/</a>: wrong constant name Pizzu-dev</p>
<p>I can't understand if the error is due to the "wrong constant name" (which is a git branch) or to the upgrade to 1.2.0</p>
<p>This is my conf:</p>
<p>~# RAILS_ENV=production script/about</p>
<p>About your application's environment<br />Ruby version 1.8.7 (i486-linux)<br />RubyGems version 1.3.7<br />Rack version 1.1.2<br />Rails version 2.3.11<br />Active Record version 2.3.11<br />Active Resource version 2.3.11<br />Action Mailer version 2.3.11<br />Active Support version 2.3.11<br />Application root /var/www/redmine-1.2<br />Environment production<br />Database adapter mysql<br />Database schema version 20110511000000</p>
<p>About your Redmine plugins<br />Mylyn Connector plugin 2.7.1.stable</p> Redmine - Feature #8578 (Closed): Code selection shouldn't get line numbershttps://www.redmine.org/issues/85782011-06-09T14:56:31ZTommaso Visconti
<p>In the repository page, when a source code is selected (e.g. to copy it) the line numbers shouldn't be included in the selection as copying the code and pasting it somewhere else results in pasting line numbers too (still loosing the code indentation...).</p>
<p>Redmine shows the code in a table and with firefox is possible to select a columns with Ctrl+mouse, but it's a FF trick, other browsers doesn't support it. A general solution should be implemented.</p>