ndl / wiki_external_filter

Redmine plugin which allows defining macros that process macro argument using external filter program and render its result in wiki.
http://www.ndl.kiev.ua/content/redmine-wiki-external-filter-plugin
Other
36 stars 35 forks source link

Not working for redmine 1.2.1 #10

Open cforce opened 12 years ago

cforce commented 12 years ago

Hi,

in Redmine 1.2.1 the Plugin does not work.

production.log ::debug

Processing WikiExternalFilterController#filter (for _..**.*_ at 2011-07-26 15:21:33) [GET] I, [2011-07-26T15:21:33.972663 #12175] INFO -- : Parameters: {"name"=>"8c8000772a6d91d2b1363d0852469994ffa36e6bd27f87d6d1e4c38fa9102926", "macro"=>"plantuml", "action"=>"filter", "index"=>"0", "controller"=>"wiki_external_filter"} D, [2011-07-26T15:21:33.975365 #12175] DEBUG -- : SQL (0.2ms) SELECT max(settings.updated_on) AS max_updated_on FROM settings  D, [2011-07-26T15:21:33.978998 #12175] DEBUG -- : User Load (0.2ms) SELECT * FROM users WHERE (users.id = 5) AND (users.status = 1) AND ( (users.type = 'User' OR users.type = 'AnonymousUser' ) )  D, [2011-07-26T15:21:33.991598 #12175] DEBUG -- : Cached fragment hit: views/wiki_external_filter/plantuml/8c8000772a6d91d2b1363d0852469994ffa36e6bd27f87d6d1e4c38fa9102926 (0.1ms) I, [2011-07-26T15:21:33.994562 #12175] INFO -- : Rendering template within layouts/base I, [2011-07-26T15:21:33.994777 #12175] INFO -- : Rendering common/error (404) D, [2011-07-26T15:21:34.000345 #12175] DEBUG -- : UserPreference Load (0.2ms) SELECT * FROM user_preferences WHERE (user_preferences.user_id = 5) LIMIT 1 D, [2011-07-26T15:21:34.186964 #12175] DEBUG -- : Rendered code_review/_html_header (0.1ms) D, [2011-07-26T15:21:34.192807 #12175] DEBUG -- : Rendered hooks/opensearch/_view_layouts_base_html_head (1.0ms) D, [2011-07-26T15:21:34.200825 #12175] DEBUG -- : Rendered wiki_extensions/_html_header (0.2ms) D, [2011-07-26T15:21:34.205290 #12175] DEBUG -- : Project Load (0.2ms) SELECT \ FROM projects WHERE (projects.status=1 AND projects.id IN (SELECT em.project_id FROM enabled_modules em WHERE em.name='stuff_to_do_module'))  D, [2011-07-26T15:21:34.217904 #12175] DEBUG -- : FavouriteProject Load Including Associations (5.7ms) SELECT favourite_projects.id AS t0_r0, favourite_projects.user_id AS t0_r1, favourite_projects.project_id AS t0_r2, projects.id AS t1_r0, projects.name AS t1_r1, projects.description AS t1_r2, projects.homepage AS t1_r3, projects.is_public AS t1_r4, projects.parent_id AS t1_r5, projects.created_on AS t1_r6, projects.updated_on AS t1_r7, projects.identifier AS t1_r8, projects.status AS t1_r9, projects.lft AS t1_r10, projects.rgt AS t1_r11, projects.customer_id AS t1_r12, projects.dmsf_description AS t1_r13 FROM favourite_projects LEFT OUTER JOIN projects ON projects.id = favourite_projects.project_id WHERE (user_id = 5) ORDER BY projects.name D, [2011-07-26T15:21:34.224293 #12175] DEBUG -- : Member Load Including Associations (3.5ms) SELECT members.id AS t0_r0, members.user_id AS t0_r1, members.project_id AS t0_r2, members.created_on AS t0_r3, members.mail_notification AS t0_r4, members.dmsf_mail_notification AS t0_r5, projects.id AS t1_r0, projects.name AS t1_r1, projects.description AS t1_r2, projects.homepage AS t1_r3, projects.is_public AS t1_r4, projects.parent_id AS t1_r5, projects.created_on AS t1_r6, projects.updated_on AS t1_r7, projects.identifier AS t1_r8, projects.status AS t1_r9, projects.lft AS t1_r10, projects.rgt AS t1_r11, projects.customer_id AS t1_r12, projects.dmsf_description AS t1_r13, roles.id AS t2_r0, roles.name AS t2_r1, roles.position AS t2_r2, roles.assignable AS t2_r3, roles.builtin AS t2_r4, roles.permissions AS t2_r5, roles.issues_visibility AS t2_r6 FROM members LEFT OUTER JOIN projects ON projects.id = members.project_id LEFT OUTER JOIN member_roles ON (members.id = member_roles.member_id) LEFT OUTER JOIN roles ON (roles.id = member_roles.role_id) WHERE (members.user_id = 5 AND (projects.status=1)) ORDER BY projects.name D, [2011-07-26T15:21:34.237903 #12196] DEBUG -- : SQL (0.2ms) SET NAMES 'utf8' D, [2011-07-26T15:21:34.249046 #12196] DEBUG -- : SQL (7.5ms) SET SQL_AUTO_IS_NULL=0 D, [2011-07-26T15:21:34.293177 #12175] DEBUG -- : Rendered code_review/_body_bottom (0.3ms) I, [2011-07-26T15:21:34.302104 #12175] INFO -- : Completed in 329ms (View: 309, DB: 0) | 404 Not Found [http://my.redmine/wiki_external_filter/filter?index=0&macro=plantuml&name=8c8000772a6d91d2b1363d0852469994ffa36e6bd27f87d6d1e4c38fa9102926] D, [2011-07-26T15:21:34.337123 #12200] DEBUG -- : SQL (0.3ms) SET NAMES 'utf8' D, [2011-07-26T15:21:34.349010 #12200] DEBUG -- : SQL (8.2ms) SET SQL_AUTO_IS_NULL=0 D, [2011-07-26T15:21:34.389195 #12202] DEBUG -- : SQL (0.2ms) SET NAMES 'utf8' D, [2011-07-26T15:21:34.392193 #12202] DEBUG -- : SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 D, [2011-07-26T15:21:34.456809 #12204] DEBUG -- : SQL (0.3ms) SET NAMES 'utf8' D, [2011-07-26T15:21:34.459688 #12204] DEBUG -- : SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 plz update ur plugin for version 1.2.1 (without core patches). Thanks!

ndl commented 12 years ago

Right now there are several patches available for versions higher than 1.0.2:

I tested only my version of patches, but for me, with Redmine 1.3.0, the patches are enough for it to work, there was no need to change anything in plugin itself when upgrading from 1.0.2

cforce commented 12 years ago

What exactly do i have to patch ? Or just rebase to actual version here?

Please don't close the bug, becuase i can't cmnfirm it is solved for us!

ndl commented 12 years ago

Please follow patching instructions on https://www.ndl.kiev.ua/content/redmine-wiki-external-filter-plugin. I tested it on Redmine 1.3.0 only so cannot guarantee it works for Redmine 1.2.1 though. The code of plugin hasn't changed so no update should be necessary.

If using Redmine 1.3.0 with the patches applied doesn't work - please post log output and exact text you use on the wiki page.

Thanks!