Hi devs,
HttpServletResponse#sendRedirect() accepts relative URLs. Do you know
or remember why we explicitly generate absolute URLs in
Utils#getRedirect() which is used in lots of places in old core to get
the redirect URL. There is no comment to explain why we treat redirect
URLs different than the rest of the URLs we generate (which are
relative).
I would like to change Utils#getRedirect() to generate URLs relative
to the servlet container root as it should. Here's the change
https://github.com/xwiki/xwiki-platform/commit/029ece1585ad03fd6402c12446be…
(on an old branch).
Thanks,
Marius
Hi devs and users,
It looks like the Korean translation is broken in several places. While
most translations are OK, some are just random ISO-8859-1 characters,
probably a bad encoding setting when the file was initially imported
into l10n.xwiki.org. Could someone look at the translations and at least
remove the broken ones?
Anybody can remove broken translations from
http://l10n.xwiki.org/xwiki/bin/XE/XWikiCoreResources?action=viewall&langua…
If they look like 스페이스 블로그 (스페이스 내 포스트 모음) they're good.
If they look like 등록 정보 이름은 이 네이밍 they're bad.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
Hello,
I have worked in the past months on a application based on XWiki to be
able to add test cases, mark executed test cases in a nice and easier way,
and have a better visibility over the manual testing we perform when
testing XWiki.
The application was designed to be as generic as possible, so anyone can
use it for their purpose.
I'd like to request a repository on contrib so I can commit it in order to
obtain feedback and code review.
repo i'd like to have: xwiki-testreporting-application, but if you have a
better suggestion, feel free to tell me.
Regards,
Sorin B.
Hi,
I've modified l10n locally to support custom mapping and updated all the
HQL queries which required it. Quick testing shows that it is working.
I'll need a test server to do some performance testing, as well as migrate
to innoDB and see if everything is working fine. While looking at the l10n
server, there seems to be regular out of memory which I don't understand
where they come from as the server is setup with 1GB. It could come from
the L10NGroovy caches but it might be necessary to do some testing using a
memory analyzer.
Once the migration is ready, we'll probably need to take l10n offline for a
day to perform the migration on the latest data.
During this process I would like to publish the l10n application on
xwiki-contrib. Could somebody create the "application-l10n" repository ?
Ludovic
--
Ludovic Dubost
Founder and CEO
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
Hi Marius,
Thanks for your response, the get action works very well for rendering the
target link as a part of my current page if the target link is originally
for view action, now I need to edit this content, which is only a part of
the page, I only need to edit this part, I tried to use get action to get
the dom portion of the edit action content and render it for this area in
the page, but it does not work, with get, I can only get the dom for view
html content, not edit html content, for example, for this url:
http://mydomain/xwiki/bin/edit/blog/Bering+Land+Bridge
if I use http://mydomain/xwiki/bin/get/blog/Bering+Land+Bridge, I will get
the content for view action of this:
http://mydomain/xwiki/bin/view/blog/Bering+Land+Bridge, not the content for
the edit action, I like to display the edit inline form for this area so
users can edit this part and keep the other parts of the page unchanged.
Any suggestions?
Thanks very much for your thoughtful help.
David
On Sat, Dec 15, 2012 at 5:29 AM, Marius Dumitru Florea <
mariusdumitru.florea(a)xwiki.com> wrote:
> On Sat, Dec 15, 2012 at 5:53 AM, Geo Du <dddu88(a)gmail.com> wrote:
> > Hi Marius,
> >
> > This works, but my problem is that I have a xwiki page, I have a link on
> > this page, when I click on this link, a javascript function is called,
> with
> > the call, I want to include a new xwiki page at the bottom of the current
> > page without reloading the current old content (like appending a new
> page to
> > the current page without change of the old content), the new appended
> > content could be in edit or view mode.
> > My question is the approach you have here is to use display macro, how to
> > trigger this macro inside javascript code? also how to avoid reloading
> the
> > old content when appending new content? since in the old page I have some
> > search results listed, I do not want to lose it and make users have to
> > search again.
>
> You cannot (directly) use the display macro in JavaScript code because
> they belong to two different worlds. The display macro is executed on
> the server side long before the JavaScript is executed on the client
> side, in the browser. What you have to do is to catch the click event
> on the link, make an AJAX (
> http://prototypejs.org/doc/latest/ajax/Ajax/index.html ) call to
> retrieve the target of that link (another wiki page I assume) and
> append it to the DOM document. In order to retrieve only the rendered
> content of the target page, without the page header, footer, panels,
> etc, you can use the 'get' action, e.g. /xwiki/bin/get/Sandbox/WebHome
> .
>
> Hope this helps,
> Marius
>
> >
> >
> > Thanks for your help.
> > David
> >
> > On Mon, Nov 5, 2012 at 3:33 AM, Marius Dumitru Florea
> > <mariusdumitru.florea(a)xwiki.com> wrote:
> >>
> >> The display macro works for me as you would expect. For instance, if I
> >> create a page with this content:
> >>
> >> ----------8<----------
> >> {{velocity}}
> >> Current action: $xcontext.action
> >> {{/velocity}}
> >>
> >> {{display reference="Blog.BlogIntroduction"/}}
> >> ---------->8----------
> >>
> >> in view mode I can see the blog post preceded by "Current action:
> >> view" and in "Inline Form" edit mode I can edit the blog post, which
> >> is preceded by "Current action: edit".
> >>
> >> Hope this helps,
> >> Marius
> >>
> >> On Fri, Nov 2, 2012 at 10:18 PM, Geo Du <dddu88(a)gmail.com> wrote:
> >> > Hi Marius,
> >> >
> >> > Thanks for your response, it works when I use display macro to include
> >> > the
> >> > testpage into the other page, but I need also to include (display) the
> >> > page
> >> > with inline mode inside the other page, since user can click the edit
> >> > pencil
> >> > button on the right corner of the testpage to edit it, right now the
> >> > edit
> >> > button will lead to the testpage in inline mode but the testpage is
> not
> >> > inside the other page which originally include(display) the testpage.
> >> >
> >> > So how to include or display a page with inline mode into another
> page?
> >> >
> >> > Thanks for your help.
> >> >
> >> > David
> >> >
> >> > On Fri, Nov 2, 2012 at 3:06 AM, Marius Dumitru Florea
> >> > <mariusdumitru.florea(a)xwiki.com> wrote:
> >> >>
> >> >> On Thu, Nov 1, 2012 at 10:51 PM, Geo Du <dddu88(a)gmail.com> wrote:
> >> >> >
> >> >> > Hi All,
> >> >> >
> >> >> > I want to include one page into another page in terms of content
> >> >> > instead
> >> >> > of
> >> >> > velocity code, for example, the Blog.WebHome is a page without
> >> >> > velocity
> >> >> > code if you choose Edit->Wiki, but it has Blog.BlogClass if you
> >> >> > select
> >> >> > Edit->Objects, from Blog.WebHome page, I can create a new post with
> >> >> > tile
> >> >> > testpage, now the Blog.testpage is the new page created that I need
> >> >> > to
> >> >> > include into another page, this testpage has no velocity code from
> >> >> > Edit_>Wiki. so how to include that page into a different page?
> >> >> >
> >> >>
> >> >> > I tried: include Macro, includeInContext Macro, includeTopic Macro,
> >> >> > none
> >> >> > of
> >> >> > them displays the testpage for me, any idea?
> >> >>
> >> >> "display" is the key. You want to display not to include. See
> >> >> http://extensions.xwiki.org/xwiki/bin/view/Extension/Display+Macro .
> >> >>
> >> >> Hope this helps,
> >> >> Marius
> >> >>
> >> >> >
> >> >> > Thanks very much for your help.
> >> >> >
> >> >> > David
> >> >> > _______________________________________________
> >> >> > devs mailing list
> >> >> > devs(a)xwiki.org
> >> >> > http://lists.xwiki.org/mailman/listinfo/devs
> >> >> _______________________________________________
> >> >> devs mailing list
> >> >> devs(a)xwiki.org
> >> >> http://lists.xwiki.org/mailman/listinfo/devs
> >> >
> >> >
> >
> >
>
Hi,
I've done some improvements on L10N to allow to have a status of the
Platform/XE/XEM translations by language.
The supported language panel now points to this page:
http://l10n.xwiki.org/xwiki/bin/view/L10N/StatusByLanguage?language=fr
which shows how many missing translations we have for each bundle of
Platform/XE/XEM.
Note that the first time this page is called for a language it is a bit
slow, then the data is saved in cache until there is a new translation
added. You need to be logged in to see the data.
Ludovic
--
Ludovic Dubost
Founder and CEO
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
Hello again, thanks very much for all the help so far.
I have an event listener which I have created as an xwiki component as per
the instructions I followed previously. However my event listener while the
code seemingly looks correct, is failing completely on one line.
While I have put print line statements in to find the line that is causing
the problem, I can't seem to find any output to show me why my line is
wrong. I am almost certain it will be some kind of basic mistake and I am
sure you fine folks could point it out almost immediately but it would be
more helpful for me if I could find out why my code is wrong, so I can learn
from it.
How could I find out why this line is failing? Is there a log from these
sort of failures in xwiki that I haven't found?
Thanks very much again!
--
View this message in context: http://xwiki.475771.n2.nabble.com/Event-listener-getObject-failing-tp758333…
Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi devs,
Initially I didn't activate the resource skin extensions plugins (jsrx
and ssrx) for security considerations, since they can be used to read
any file from the classpath. I had forgotten to work on that, and now
they have been enabled and used in their current implementation for a
while. This means that changing the behavior will cause backward
incompatibilities...
So, I'm proposing that all skin resources packaged inside Jars should
reside under the /skinx/ root directory. This prefix shouldn't be
included in the pulled URL, it will be appended internally, and enforced
to prevent any /skinx/../privateresource tricks.
For example:
$xwiki.jsrx.use('/gmaps/gmaps.js')
will look for /skinx/gmaps/gmaps.js inside jars and the /classes/ directory.
As a migration plan I'd like to implement this check ASAP, add a
configuration for enabling the old behavior (if no resource was found
with the skinx prefix, search without the prefix), which should be set
to true by default in 4.5. Trigger a warning (in the logs) when such a
deprecated resource is found. For 5.0 we switch to false by default, and
in 6.0 we remove the switch completely.
WDYT?
--
Sergiu Dumitriu
http://purl.org/net/sergiu
Hello everybody,
I am proud to announce that after some very busy months, I have committed
the first version of the Vagrant maven module.
This module will allow us to create out of the box XWiki based virtual
machines (based on Virtual Box) on different environments. It is based on
Vagrant and uses Puppet for provisioning.
The current feature set is very limited, only creating a VM with a xwiki
user. In near future, I will work on making it truly useful. The most
common use cases are:
1) Testing on different environments (our automated tests suite also)
2) Testing the Debian packages Thomas created
2) An easy way to download XWiki (for end-users) without any configuration
effort.
Since this is a long time goal, I'd like to have your feedback about all
aspects in order to make it a truly useful module.
Link to the first jira of this project:
http://jira.xwiki.org/browse/XCONTRIB-184
Code is publicly available at:
https://github.com/xwiki-contrib/xwiki-enterprise-vagrant
I encourage everybody to try it and provide feedback.
Regards,
Sorin B.