How can I turn off the "shortcut" URLs where /bin/Space/Page is
interpreted as /bin/view/Space/Page?
(Specifically, I'm using mod_redirect to clean up the URL
architecture and need to assume that anything prefixed /bin that
isn't /bin/view needs to be passed through as an action.)
- - -
Hans Gerwitz
http://phobia.com/
I've posted a fix for bug #XWIKI-283, and I hope someone can include it
in the next release.
When trying to show an RSS or RSS2 feed in a wiki page using the {rss}
macro, you will see text like:
"SyndContentImpl.value= ... {blog text} ...
SyndContentImpl.type=text/plain"
Here's the fix to java/com/xpn/xwiki/render/macro/rss/RSSMacro.java.
It applies to xwiki 0.9.743 through subversion June 20, 2006. and to
rome 0.6 through 0.8.
185c184
< .append(NEWLINE).append(entry.getDescription())
---
> .append(NEWLINE).append(entry.getDescription().getValue())
218c217
< .append(NEWLINE).append(entry.getDescription())
---
> .append(NEWLINE).append(entry.getDescription().getValue())
Explanation:
The following code appends the result of
com.sun.syndication.feed.synd.SyndEntry.getDescription(). That would be
fine if getDescription returned a String, but in fact it returns a
feed.synd.SyndContent object.
buf.append(NEWLINE).append("<div class='rssitemdescription'>")
.append(NEWLINE).append(entry.getDescription())
.append(NEWLINE).append("</div>");
My test cases were:
RSS: {rss:feed=http://gigazad.blogspot.com/rss.xml|count=4|full=true}
RSS2:
{rss:feed=http://www.mikegiesbrecht.com/Blog.php?feed_type=rss2|count=1|full=true}
More details below.
--
Trevor Cox
skahasoftware.com
Vancouver, Canada
Ludovic Dubost wrote:
>
> Looks like I missed this one !! There is probably a bug with to little
> encoding of what we get from the feeds.
> You should report an issue in http://jira.xwiki.org
>
> Ludovic
>
> Trevor Cox a écrit :
>
>> Has anyone looked in to RSS2 feeds and the {rss} macro? As far as I
>> can figure out, RSS2 is a new version of RSS. My {rss} macro works
>> fine with RSS feeds that are not labelled RSS2 (although Google seems
>> to block access somehow).
>>
>> I tried upgrading to the latest version of rome.jar, 0.7, but that
>> didn't help. A Google search showed that many XWiki users are having
>> the same problem I am.
>>
>> When I use {rss... |full=true} I see the following text. I've put in
>> bold the text that I should be seeing. The rest is coming from the
>> ROME code (not directly from the RSS source).
>>
>> SyndContentImpl.value=*Be sure to check out my November Newsletter
>> for important tips for Buyers! Click on the Newsletter tab on my
>> Home Page and read about 6 questions a Buyer should ask before making
>> an offer. Read More <http://mikegiesbrecht.com/ViewBlog/14/>*
>> SyndContentImpl.type=text/plain SyndContentImpl.interface=interface
>> com.sun.syndication.feed.synd.SyndContent
>>
>>
>> -Trevor Cox
>> http://skahasoftware.com
>> ------------------------------------------------------------------------
>
Hi,
My name is Salman, I am new to Xwiki. I want to pull information from xwiki using Query plugin. Can any one help me from where to start?
Regards,
Salman Qaiser
Hi All
I've added patch for SaveAction to allow redirect to "edit" rather than
"view" i.e. SaveEdit action. The patch file is attached to jira for review /
inclusion.
Duke
Hi All,
At the moment I'm using the HTML <head> / <meta> tags to redirect a page to
another page. The initial redirect page is need to do some processing which
then determines which page to redirect to. The bad news is that the page
loads in the browser then loads the final page which looks a bit ugly.
Is there a way to internally redirect on the server side to load and display
another page without using the browser redirect?
Thanks
Duke
on a proper installation of xwiki with ldap authentication configuration :
when i tried to authenticate with a user in Mysql BUT NOT in my LDAP
server (user : Admin) i can logged in with any (wrong) password !!
is it a configuration problem ?
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com
Hi all,
What's wrong with this code :
public class testsynchro {
public static void main(String [] args) throws XWikiException,
HibernateException {
XWikiContext context = new XWikiContext();
context.setDatabase("xwiki");
context.setUser("XWiki.superadmin");
XWikiConfig config = new XWikiConfig();
config.put("xwiki.store.class",
"com.xpn.xwiki.store.XWikiHibernateStore");
config.put("xwiki.store.hibernate.path",
"/var/lib/tomcat4/webapps/xwiki/WEB-INF/hibernate.cfg.xml");
XWiki xwiki = new XWiki(config, context);
context.setWiki(xwiki);
HashMap map = new HashMap();
map.put("password", "toto");
xwiki.createUser("toto", map, "", "", "edit", context);
}
}
TOTO is created, but it gives me always error :
- Error performing load command
org.hibernate.ObjectNotFoundException: No row with the given identifier
exists: [com.xpn.xwiki.objects.classes.BaseClass#-905821124]
at
org.hibernate.ObjectNotFoundException.throwIfNull(ObjectNotFoundException.java:27)
at
org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:118)
at
org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:167)
at
org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:79)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:588)
at
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiClass(XWikiHibernateStore.java:1194)
at
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:589)
at
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
at com.xpn.xwiki.XWiki.createUser(XWiki.java:1764)
at testsynchro.main(testsynchro.java:49)
thanx !
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com
Hi all,
I'm currently working on a customization of XWiki. So I did create a new
skin, defined my 'view.vm' and a couple of other files including my own CSS.
When I test the skin, my '.vm' and other files are OK except my CSS
files... In fact, except the files included by a $xwiki.getSkinFile("...").
I searched in the source code (com.xpn.xwiki.XWiki) and found that the
method 'resourceExists(String)' returns false if the path is not
prefixedwith a '/'. Anyway, the method 'getSkinFile(String, String,
XWikiContext)' creates a String as
String path = "skins/" + skin + "/" + filename;
In my case, the file "skins/lego/style.css" cannot be found unless I add
a '/' before "skins".
So I may be mistaking but as the rest of the pathes are prefixed by a
'/', I think a developper should have a look to this case.
Thanks and regards,
--
Arnaud Thimel
Société Code Lutin - http://www.codelutin.com
Hello to everybody
I am newbie to this list and to XWiki as a whole, and I am glad to be part
of your community.
As a part of the Google Summer of Code 2006 program I am working on the Form
Editor. I have set up a page to help the process. You can find it at
http://FormEditor.XWiki.com. I would be glad to hear any comments from you.
Please notice the link issues (
http://formeditor.xwiki.com/xwiki/bin/edit/Main/Issues) where I put some
things that are not ready to be put on the main page.
Thanks,
Nebojša