You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Thinkboy <ma...@gmail.com> on 2007/11/18 12:50:04 UTC
issue:MetaWeblogAPIHandler missed to set DefaultPlugins. I got it fix!
hi ,
I got my roller up. thanks so much to the roller community! great work!
i also got my textile compiled from source code and textile plugin is
working very fine!
however, i found out an issue: config formatting plugin for weblog wide
seems not working in MetaWeblogAPIHandler
------------
scenario:
------------
weblog settings > Preferences > settings > formatting > textile formatter
I check the box for textile plugin
------------
Problem:
------------
but whenever I post a new blog entry. i still need to do the following
for each entry
create & edit > entry > edit > plugins to apply > textile formatter
it causes quite a problem , bcos I am using Marsedit to post textile
syntax via metaweblog api.
so, everytime , when I post an entry, I need to visit the roller server
admin and enable textile formatter again.
------------
Solution
------------
for me, I did a quick solution and recompile from source code:
/apache-roller-src-3.1/src/org/apache/roller/webservices/xmlrpc/MetaWeblogAPIHandler.java
in
line 250:
I added the following statement:
entry.setPlugins(entry.getWebsite().getDefaultPlugins());
pls verify and add this to the source tree! thanks! :-D
~thinkboy
Re: issue:MetaWeblogAPIHandler missed to set DefaultPlugins. I got it fix!
Posted by Dave <sn...@gmail.com>.
On Nov 20, 2007 2:00 AM, Thinkboy <ma...@gmail.com> wrote:
> hi dave,
>
> apprieciate for the help.
>
> I fixed for MetaWeblogAPIHander but i believe we need to add the same
> line for Struts2 action as well while creating new webentry from webui
> (bcos I am not familiary with struts2)
The Struts action already sets the default plugins on new entries.
See EntryAdd.java line 90.
- Dave
Re: issue:MetaWeblogAPIHandler missed to set DefaultPlugins. I got it fix!
Posted by Thinkboy <ma...@gmail.com>.
hi dave,
apprieciate for the help.
I fixed for MetaWeblogAPIHander but i believe we need to add the same
line for Struts2 action as well while creating new webentry from webui
(bcos I am not familiary with struts2)
thanks so much
On 2007-11-19 20:34:43 +0800, Dave <sn...@gmail.com> said:
> On Nov 18, 2007 6:50 AM, Thinkboy <ma...@gmail.com> wrote:
>> I got my roller up. thanks so much to the roller community! great work!
>> i also got my textile compiled from source code and textile plugin is
>> working very fine!
>>
>> however, i found out an issue: config formatting plugin for weblog wide
>> seems not working in MetaWeblogAPIHandler
>
>> line 250:
>> I added the following statement:
>> entry.setPlugins(entry.getWebsite().getDefaultPlugins());
>>
>> pls verify and add this to the source tree! thanks! :-D
>
> Yes, that certainly looks like the correct fix for this problem. I'll
> give it a try.
> I 'm tracking it as ROL-1609:
>
> http://opensource.atlassian.com/projects/roller/browse/ROL-1609
>
> Thanks,
> Dave
Re: issue:MetaWeblogAPIHandler missed to set DefaultPlugins. I got it fix!
Posted by Dave <sn...@gmail.com>.
On Nov 18, 2007 6:50 AM, Thinkboy <ma...@gmail.com> wrote:
> I got my roller up. thanks so much to the roller community! great work!
> i also got my textile compiled from source code and textile plugin is
> working very fine!
>
> however, i found out an issue: config formatting plugin for weblog wide
> seems not working in MetaWeblogAPIHandler
> line 250:
> I added the following statement:
> entry.setPlugins(entry.getWebsite().getDefaultPlugins());
>
> pls verify and add this to the source tree! thanks! :-D
Yes, that certainly looks like the correct fix for this problem. I'll
give it a try.
I 'm tracking it as ROL-1609:
http://opensource.atlassian.com/projects/roller/browse/ROL-1609
Thanks,
Dave