Hi,
In order to fix issue http://jira.xwiki.org/jira/browse/XWIKI-1325
(Renaming a web page only updates backlinks in one language version)
we need to store the language in the XWikiLink object/table.
One solution then it modify XWikiHibernateStore from List
loadBacklinks() which just return doc names to List<XWikiLink>
loadBacklinks().
I have it almost done here but I wanted to ask you what you think.
Another solution (but might be too complex for now) would be to
include the language in doc full name by inventing a new syntax.
For example: "wiki:Space.doc:language"
In this case there's no change required to XWikiLink object/DB, nor
for the loadBacklinks() method. The change is either in the code that
calls getBackLinks() or in XWiki.getDocument(documentName) so that
documentName supports language.
WDYT?
Thanks
-Vincent
Hi!
I just created the page
http://dev.xwiki.org/xwiki/bin/view/Design/SingleSignOn where I'll document
everything regarding my Single Sign-On project.
Since I didn't get any feedback the last time I asked this question I'll ask
it again:
Another question. Just looking at OpenID now. What are the plans for it?
Should it be enabled by default? Should it be possible to turn it off?
I would like to see OpenID support out of the box. I don't know if it makes
sense to turn it off.. What happens with existing OpenID users if someone
turns it off?
Should we really start with the integration of a big framework like OpenSSO?
Wouldn't it be better to implement OpenID support for example with a
dedicated OpenID
library? We should also consider the fact that ESOE for example simple uses
the OpenID4Java library and OpenSSO doesn't support OpenID (authentication)
at all.
I think it's much easier for the user if everything is bundled with XWiki so
that he doesn't need to install any other component or complex service like
ESOE or OpenSSO.
If it's OK for you I would start creating the architecture and describe
detailed how I would like to implement OpenID support with a OpenID library
the next days. Then ask for some feedback on that and finally begin to
implement this. My last exam is next Monday (July, 7th) so afterwards I'm
finally free to work exclusively for XWiki :-)
Cheers,
Markus
Today is the .. Bug Fixing Day ! :)
Rules for picking bugs:
a) bugs with patches available
b) bugs with High Development Priority defined. For Core:
http://jira.xwiki.org/jira/secure/IssueNavigator.jspa?mode=hide&requestId=1…
c) bugs planned for the current release
d) bugs with Medium Development Priority defined. For Core:
http://jira.xwiki.org/jira/secure/IssueNavigator.jspa?mode=hide&requestId=1…
Everyone is invited to help out and not just committers:
* contributors can send patches
* users can vote for their most important issues
* bug reporters should be ready to verify that the fix does solve their problem
JV.
Hi,
I'd like to tackle the error rendering part of the new rendering module.
Right now there are several locations where the rendering can fail:
* a Macro can fail to be located
* a Macro can fail during execution
* a link can fail to be resolved. For example if the access to the
database fails when looking up the document corresponding to the link
name. Or if the link has an invalid format.
WikiModel will normally not generate any exception while parsing so we
shouldn't have any exception to handle there. Haven't checked Doxia
yet on this.
In any case I see 2 options to handle the cases listed above:
Solution 1: Generate an ErrorBlock
===========================
This means replacing the original block (MacroBlock or LinkBlock) by
an ErrorBlock which will then get rendered accordingly (with some kind
of error box in the XHTML renderer for example).
Pros: Shows exactly where the problem is in the document and render
the rest of the document.
Cons: It's possible to overlook the fact that there's a rendering
error since it doesn't blow up when an error happens
Solution 2: Fail the rendering process with an exception
===========================================
We'll then need some error handling code in XWiki to handle exceptions
thrown by the XDOM.traverse() method.
Pros: Not possible to avoid the fact that there's an error in the
document somewhere
Cons: Makes rendering process more "fragile" and possibly make it
harder to find out where the problem is located. Note that to
alleviate this we would need to implement some code to tell the user
where the problem happened exactly in the code (this could be done by
adding some offset/length attributes to the Blocks).
Personally I'm still hesitating but I think maybe the best would be to
combine both solutions, i.e. do the following:
* Generate the rendered document with rendered ErrorBlocks
* Throw an exception which contains the rendered document, thus
allowing the error handling the ability display the rendered document
with its errors displayed inline.
WDYT?
Thanks
-Vincent
Hi guys!
I'm trying to add my own macros on xwiki but they are functions made in
java.
for example if I had to edit a xwiki page and added
xwiki.myplugin.function("Mikhael") on the preview my function would show the
following Text : "Hello Mikhael your plugin is working!". Now what I want to
know is how do a turn xwiki.myplugin.function("Mikhael") into for example "
$hi("Mikhael") "? Give it a more macro look.
I look foward to your answers and thank you for helping out
Mikhael
--
View this message in context: http://www.nabble.com/Java-functions-as-macro-tp18214356p18214356.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi devs,
Finally, i've had the time to put up a small demo of the drawing API using
Tatami(http://tatami.googlecode.com), i would like to commit it to the
sandbox, but in order to do that i need write permitions for the user
mjbento.
Now, regarding the demo, i've only implemented the basic objects and object
operations. Right now it's more of a case show of the Tatami performance
than the real deal, because, in order to do that it would have to be ported
into a API with all the functionalities implemented.
User tip: After you finish the drawing of an object, the Select tool is
automatically selected. In order to move the objects, simply click them in
Select mode.
So, finally, please check it out if you have some time, I would really
apreciate some feedback on this.
Best regards,
Miguel Bento.
I have created a new panel in xwiki. And i want to apply a separate class
for that particular panel.
Where i have to give that class.
In the panel creator window or in the macros.vm file.
--
Prathap
I was trying to figure out how to dynamically create a panel so I was looking
at create.vm
shown here:
#if($tocreate=="panel")
#set($docname=$title.replaceAll("/", "%2F"))
#if(!$template || $template == "")
#set($template="Panels.PanelTemplate")
#end
#set($newdoc=$xwiki.getDocument($docname))
#if($newdoc.isNew())
#set($pcontent = "#")
#set($pcontent =
$pcontent.concat("panelheader('${title}')${xwiki.getNl()}${xwiki.getNl()}#"))
#set($pcontent = $pcontent.concat("panelfooter()"))
#set($pcontent = $util.encodeURL($pcontent))
$response.sendRedirect($newdoc.getURL("inline",
"template=${template}&Panels.PanelClass_0_name=${title}&Panels.PanelClass_0_content=$pcontent"))
#else
$response.sendRedirect($newdoc.getURL("view",
"xpage=docalreadyexists"))
#end #end
.
.
and I quickly got lost. It looks like you first create a document from in
panels space something like
XWikiDocument doc = context.getWiki().getDocument("XWiki.MyPanell",
context);
Then it looks like $pcontent concatenates some calls to velocity macros
together. Then it looks like it is url encoded so it can be passed as http
response. Then I am completely lost with the sendRedirect statement. Does
it redirect to process the templates and then return the response?
Is there a better example for me to look at or perhaps someone generous
enough to provide me with even more help? You guys have been very generous
with help and I would like to Thank you! BTW congratulations on the "Big
News"
Glenn Everitt
--
View this message in context: http://www.nabble.com/How-can-I-dynamically-create-a-panel--tp16406339p1640…
Sent from the XWiki- Dev mailing list archive at Nabble.com.
How to change the "Redirects to the Main.WebHome" to some other page.
Need to change in the web.xml file.
<welcome-file-list>
<welcome-file>*SpaceName/PageName*</welcome-file>
</welcome-file-list>
--
Prathap
Hi list,
I am trying to use the addAttachment call to add an attachment to a page via
xmlrpc.
So far I have used groovy and python (code further down), both give me the
same error message:
xmlrpclib.Fault: <Fault 0: 'No method matching arguments: java.lang.String,
java.lang.String, java.util.HashMap, [B'>
After digging into the src I found addAttachment in:
XWikiXmlRpcClient.java (part of -core)
/**
* Add a new attachment.
*
* @param contentId Ignored. (It is here because the Confluence API signature declares it)
* @param attachment The Attachment object describing the attachment.
* @param attachmentData The actual attachment data.
* @return An Attachment object describing the newly added attachment.
* @throws XmlRpcException
* @category ConfluenceAPI
*/
public Attachment addAttachment(Integer contentId, Attachment attachment,
byte[] attachmentData) throws XmlRpcException
{
Object object =
invokeRpc("addAttachment", token, contentId, attachment.toMap(), attachmentData);
return (Attachment) new Attachment((Map<String, Object>) object);
}
As you can see contentId is defined as Integer not String. When using an integer
in the rpc call I get this error message:
xmlrpclib.Fault: <Fault 0: 'Failed to invoke method addAttachment in class
com.xpn.xwiki.xmlrpc.XWikiXmlRpcHandler: An XWiki id must be in the form
Space.Page[?param=value¶m=value&...]'>
When looking at the server log I can see:
Caused by:
java.lang.IllegalArgumentException: An XWiki id must be in the form
Space.Page[?param=value¶m=value&...]
at org.xwiki.xmlrpc.model.XWikiExtendedId.<init>(XWikiExtendedId.java:37)
at com.xpn.xwiki.xmlrpc.XWikiXmlRpcHandler.addAttachment(XWikiXmlRpcHandler.java:929)
...
And when looking at that method:
public XWikiExtendedId(String string)
{
if (string.indexOf(".") == -1) {
throw new IllegalArgumentException(
"An XWiki id must be in the form Space.Page[?param=value¶m=value&...]");
}
So question is, how do I actually add an attachment to a page?
Stefan
------ python -------8<----------------------
#!/usr/bin/python
import xmlrpclib
f = open('images/foo.jpg', 'rb') #Open file as a binary file
file = f.read()
data = xmlrpclib.Binary(file) #Make the byte array
server_url = 'http://localhost:8080/xwiki/xmlrpc/confluence';
s = xmlrpclib.Server(server_url);
token = s.confluence1.login('login', 'pass');
page_list = s.confluence1.getPages(token, 'MySpace') #Get the pages in the space
new_attachment = dict(id = '', pageId = '', title = '', fileName = 'filename', fileSize = '', contentType = 'content type', created = '', creator = '', url = '', comment = 'Some comment') #Make a attachment container
for page in page_list:
if page['title'] == 'AttachMe':
s.confluence1.addAttachment(token, page['id'], new_attachment, data)
------ python ------->8----------------------
------ groovy -------8<----------------------
import groovy.net.xmlrpc.XMLRPCServerProxy
import java.io.File
server = "localhost:8080";
username = "user";
password = "pass";
serverProxy = new XMLRPCServerProxy("http://${server}/xwiki/xmlrpc/confluence")
try {
println "Logging in...";
token = serverProxy.confluence1.login(username, password)
} catch (Exception e) {
println "Cannot login! Check username or password..."
throw e;
}
println "Logged in";
try {
def attach = [:];
# load file with PAGENAME<SPACE>IMAGETOATTACH per line
println "Loading image list";
new File("images.txt").eachLine { line ->
array = line.split(" ");
attach.put(array[0], array[1]);
attachment = [id : '', pageId : '', title : '', fileName : 'filename', fileSize : '', contentType : 'content type', created : '', creator : '', url : '', comment : 'Some comment'];
bytes = new File(array[1]).readBytes();
page = serverProxy.confluence1.getPage(token, "MySpace.${array[0]}");
serverProxy.confluence1.addAttachment(token, page.id, attachment, bytes);
}
} finally {
serverProxy.confluence1.logout(token);
}
------ groovy ------->8----------------------
regards
Stefan
--
I did it just to piss you off. :-P
-- Branden Robinson in a message to debian-devel
Hi all
I have deployed the new xwiki-enterprise-wiki-1.5-milestone-2.war in my
tomcat with mysql database.
I can't able to find the Administration page link in the xwiki.
Can any tell, where can i get that link in xwiki.
--
Prathap
Hi Fabio,
Now I'm working on the costume implementation of the IDocumentPartitioner
which uses the XDOM parser.
I have also look at the FastPartitioner implementation in-oder to get
understand how the partitioning work.
As far as I can understand, to register partitions with the IDocument,
requires the offset and the length of each token retured by the partitione.
But currently that information is not avalable in the Blocks returend by the
parser.
WDUT ?
Is ther any other way of doing this ? I need help on this
I aslo look try to run the org.xwiki.xdomexplorer you gave to me.After mvn
compile and run the project as a eclipse plugin it gives a errer sayying
Error opening the editor.
org.xwiki.xdomexplorer.editors.XWikiEditor.I'm working on Eclipce JEE 3.3.2
version.Should I need to run this in different eclipse package ?
Cheers
-- Malaka Ekanayake
CSE UOM
Dear Dev,
Curriki now has three volunteer developers working with our code base. We
also have quite a few Curriki specific dev topics to cover. Since we are
looking to release the Curriki code at http://curriki.xwiki.org, folks have
quested a Curriki specific mailing list. This message requests Ludovic to
make such a list and also invites all of you to join the Curriki mailing
list. We will, of course, continue to use Devs for all issues of relevance
to the larger XWiki community.
Best,
Joshua Marks
CTO
Curriki: The Global Education and Learning Community
jmarks(a)curriki.org
www.curriki.org
US 831-685-3511
Hi devs,
I posted here http://tinyurl.com/43z5q4 a roadmap for the new WYSIWYG
editor. I hope we'll have a first version at the end of July and a second
one at the end of August. Comments are welcome.
Thanks,
Marius
After creating a new user he didn't get any registration confirmation mail.
Even after i have configured the Outgoing SMTP Server also in preferences.
Anyone know the reason.
--
Prathap
Hi,
First time I tried 'XWiki Watch' (standalone JAR). I like the idea very
much.
Is it planned to support manual added pages too? The use-case would be, if
someone finds a specific article, which other team members could maybe use
too. So instead adding the whole RSS (if even one is available) you would
just add the specific link to the article and comment it, group it, tag and
flag it...
Cheers,
Squirrel
PS: Could you maybe add a link to the actual Watch space, too (on the first
page of the installation and on the sidebar)? I tried the whole time to
click at the 'Watch' menu entry at the top, but this isn't 'XWiki Watch' but
the default watch from XWiki, I figured...*g*
Good day.
I test work of xwiki virtual mode with mysql and discovered, that if I
follow Administration Guide and create database user xwiki, than switching
between wiki-s in virtual mode is failed with exception like:
Access denied for user 'xwiki'@'127.0.0.1' to database 'a22ii'
When I set user root in hibernate.cfg.xml than all is good.
1. So, this must be noted in Administration Guide.
2. And why I write to list: I discovered that
'grant all on *.* to xwiki(a)127.0.0.1' does not fix situation ..
So, this is something wrang with my mysql ? [fresh install from Fedora9
packages] or exists some extra magic to grant access to all databases to
xwiki mysql user ?
--
Ruslan Shevchenko
GradSoft. http://www.gradsoft.ua
Hi devs,
The current Rights implementation treats the registration as a special case, being the only right
that is denied to guests in an empty wiki.
I propose that we change this by default to be true, but allow it to be configured in xwiki.cfg (and
only there, since guests can edit XWikiPreferences).
Anyone against it?
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
Hi guys,
I know, it's kind of late to give you a general feedback for the new admin
interface, nevertheless I'd like to point some things out:
* The icons are nice, but way too big (tested on 1280x800, FF3, Opera &
Konqueror)
* In the 'Rights' section the two tables don't have the same width, though
the same content and space is unnecessarily wasted (this is true for most
sections) ..
* I miss some structure, categories...everything seems now cluttered...I
know, underneath not much changed, but compared with the previous surface
it's now quite obvious to me. Ie. the 'User' and the 'Group' section. They
just make no sense anymore. I guess you could easily integrate the 'Group'
section into the 'User' section and call it 'User Administration'. Some
clickable filter (titles like 'username' 'groupname' etc.) and a search
input-field. And instead editing the group and add a new user to the group,
you add the group(s) to the user. If you edit a group (click on the groups
name) you will then not adding users but change the rights for the group
('Rights' section)....if you add a group you give it a name and set the
groups rights.
* I miss a content overview...this interferes somehow with spaces, pages and
rights...
* The space preferences are (still) puzzling to me, although I don't have a
better solution in my sleeves...
Hmm...I don't have enough time *right now* to explain in deep what I
mean...actually I'm not quite sure about what I mean either...it's just a
feeling that there is something not quite right...I don't know. I'm sorry
I'm this late with my input...
I hope it's not useless and if so, feel free to ignore this post ;-)
I'm testing now the functional part of it.
Cheers,
Squirrel
We should separate the curriki commiters from the xwiki commiters.
We could also make the list of commiters manageable from
http://curriki.xwiki.org
We could or have to (I'm not sure if it is necessary) also move the code
to a separate svn tree
--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
hi Fabio/Vincent
As you have requested, I have uploaded the sample code which uses the xwiki
parser. I have written a maven script to build the sample code. It prints
the xdom object model in to a tree structure. And it also uses the
Parser.traverse() to reprint the xwiki document to the console.
hear is the url http://svn.xwiki.org/svnroot/sandbox/xdom/
In order to undestand how the parser wokes i exaimed it with several xwiki
documents.I think there are some points needed to be clarified about the
parser.It would be greate if you can tell me the criteria which has been
used to build the xdom tree from the xwiki.
For an example consider the following xwiki
plaintext*bold~~bolditalik~~bold*
is this syntax valid?
This is the tree structure of the xdom
XDOM
---ParagraphBlock
---WordBlock
---BoldBlock
---WordBlock
---BoldBlock
---WordBlock
---BoldBlock
---WordBlock
In the above tree bolditalic part is not reflected.
Any comment on this
Thanks
-- Malaka Ekanayake
CSE UOM
Evelina Slatineanu wrote:
>
> For the new Administration application to work properly in an empty wiki
> (create users, groups, set rights etc), the following files have to be moved
> from XE to Administration:
>
> Xwiki.Admin
> Xwiki.Users
> Xwiki.XwikiUserSheet
> Xwiki.XWikiUserTemplate
> Xwiki.AdminGroup
> Xwiki.AllGroup
> Xwiki.Groups
> Xwiki.XwikiGroupSheet
> Xwiki.XwikiGroupTemplate
> Xwiki.Rights
> Xwiki.GlobalRights
> Xwiki.DefaultSkin
> Xwiki.Skins
> Xwiki.XwikiPreferences
>
Since XE will always contain Administration, I see no danger in doing this. In the end XE should
only be an empty shell with several other applications included in it.
So, +1
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
On Jun 26, 2008, at 9:05 PM, tmortagne (SVN) wrote:
> Author: tmortagne
> Date: 2008-06-26 21:05:24 +0200 (Thu, 26 Jun 2008)
> New Revision: 10858
>
> Modified:
> xwiki-platform/core/trunk/xwiki-cache/xwiki-cache-jbosscache/src/
> main/java/org/xwiki/cache/jbosscache/internal/
> JBossCacheCacheConfiguration.java
> xwiki-platform/core/trunk/xwiki-cache/xwiki-cache-jbosscache/src/
> test/java/org/xwiki/cache/jbosscache/JBossCacheCacheTest.java
> Log:
> XWIKI-1744: Use JBoss Cache by default in XWiki
> * improve JBoss cache configuration loading
[snip]
> public void testCreateAndDestroyCacheLRUMaxEntries() throws
> ComponentLookupException, Exception
> {
> - /*CacheFactory factory = getCacheFactory();
> + CacheFactory factory = getCacheFactory();
>
> CacheConfiguration conf = new CacheConfiguration();
> LRUEvictionConfiguration lec = new LRUEvictionConfiguration();
> lec.setMaxEntries(1);
> + // Force JBoss eviction interval to the minimum
> +
> lec.put(JBossCacheCacheConfiguration.CONFX_EVICTION_WAKEUPINTERVAL,
> 1);
> conf.put(LRUEvictionConfiguration.CONFIGURATIONID, lec);
>
> Cache<Object> cache = factory.newCache(conf);
> @@ -36,19 +39,24 @@
>
> cache.set("key2", 2);
>
> + // Wait for the JBoss Eviction policy to be called
> + Thread.sleep(1000);
warning, warning, warning! (insert flashing lights here)
[snip]
> assertEquals("value", cache.get("key"));
>
> - Thread.sleep(1000);
> + // Wait for the JBoss Eviction policy to be called
> + Thread.sleep(3000);
Same, but worse... :)
This reminds me of the setSpeed() in our selenium tests that I've
removed in the RMUI tests.
Note that I'm not proposing a solution since I have no clue and
haven't read the code yet.
BTW isn't it dangerous to switch cache implementation in a RC? I'd say
it is.... I don't even think we've tested it in any real instance so
I'd be -0 to do that before testing it in real for several days/week.
WDYT?
Thanks
-Vincent
Hi everyone,
Yesterday was our third bug fixing day. The following bugs were fixed: http://tinyurl.com/6jve9d
- Sergiu
XWIKI-2498 Exporting a page with an image to PDF fails on Jetty
XWIKI-715 Arguments passed to radeox macros like {image} or {attach}
should not be rendered
XWIKI-2296 EventCalendar Exception after creating Events
XWIKI-2509 Empty StringProperty-s are loaded as null in Oracle
XWIKI-2510 Make the Link and Url filters more stable
XAPANELS-51 Context root 'xwiki' is hard coded in the search panel
- Artem
XSALBATROSS-30 Import / Export script chokes on documents with ' in
name
XWIKI-2472 Wrong mapping for stats on oracle
- Jean-Vincent
XE-256 Exception while generating lucene search RSS feed
So that's a total of 9 bugs fixed. Well done everybody and thanks to
all who participated. A special congratulations to Sergiu who's again
done more than anyone else (despite the fact that he "was busy and
wouldn't be able to do much" ;)). Another congratulations to both
Sergiu and Artem who have participated to all 3 bugfixing days so far.
Total High Score Bugs Fixed Over All BugFixingDay Sessions:
* Sergiu: 13
* Artem: 4
* Thomas: 4
* Fabio: 4
* Vincent: 2
* Jean-Vincent: 1
Let's try to beat sergiu next time ;)
Thanks
-Vincent