Re: [xwiki-users] Link to page on a sub-wiki

2016-06-29 Thread D R
Hi,

thanks for the answers. I prefixed the link with "doc:" but the problem
persists. The link to the "not existing page" is:

http://wiki/xwiki/wiki/products/create/A+Product/The+Page?parent=Doku.Page+with+link

To verify the correctness of my link I copied the above to the address bar
of my browser and replaced "/create/" with "/view/" and voila, the page is
shown. So my link is indeed correct which makes the problem even stranger
...

Any further ideas? Otherwise it seems I need to hard-link :-[

Regards,
Dennis

2016-06-28 17:19 GMT+02:00 Clemens Klein-Robbenhaar <
c.robbenh...@espresto.com>:

> I first thought so, too, but this feature did not exist in XWiki 7.0.1 so
> it is unlikely to be the problem here
>
> Paul Libbrecht wrote:
> > I've been encountering frequent missing "WebHome" by inadvertently
> > creating pages which end up being non-terminal. Maybe that helps?
> >
> > paul
> >
> > Clemens Klein-Robbenhaar wrote:
> >> Maybe there is yet another whitespace missing, or the like?
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)

2016-06-29 Thread Kemalettin OCAK
Hi,

I am trying to deploy production version( .war deployment ) of XWIKI to 
Oracle11g and Tomcat environment. I tried every version of xwiki with different 
versions of Tomcat.  It deploys the application succesfully but when i request 
http://localhost:8080/xwiki keep getting
"NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)" 
error. As far as i see, tables are created at the database but i cant pass this 
error.
I also tried with tomcat and h2 database to check whether it's database related 
issue and same stack trace.
I also tried with Weblogic 11g application server and Oracle 11g database and 
same stack trace.


P.S: I could run standalone version.

Kemalettin Ocak
Uzman Mühendis
Havelsan A.Ş.

Dikkat: Bu elektronik posta mesaji kisisel ve ozeldir. Eger size 
gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz.Firmamiza gelen 
ve giden mesajlar virus taramasindan gecirilmektedir. Mesajdaki gorusler 
gondericiye ait olup HAVELSAN A.S. resmi gorusu olmak zorunda degildir. 
Attention: This e-mail message is private and privileged.If you are not the 
recipient for whom this e-mail message is intended, please notify the sender 
immediately and delete this e-mail message from your system.All sent and 
received e-mail messages go through a virus scan. Any opinions presented in 
this e-mail message are solely those of the author and do not necessarily 
represent HAVELSAN A.S.`s formal and authorized views.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)

2016-06-29 Thread Vincent Massol
Hi,

> On 29 Jun 2016, at 09:37, Kemalettin OCAK  wrote:
> 
> Hi,
> 
> I am trying to deploy production version( .war deployment ) of XWIKI to 
> Oracle11g and Tomcat environment. I tried every version of xwiki with 
> different versions of Tomcat.  It deploys the application succesfully but 
> when i request http://localhost:8080/xwiki keep getting
> "NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)" 
> error. As far as i see, tables are created at the database but i cant pass 
> this error.

You should be able to check the xwiki log files to provide the full stack trace.

Thanks
-Vincent

> I also tried with tomcat and h2 database to check whether it's database 
> related issue and same stack trace.
> I also tried with Weblogic 11g application server and Oracle 11g database and 
> same stack trace.
> 
> 
> P.S: I could run standalone version.
> 
> Kemalettin Ocak
> Uzman Mühendis
> Havelsan A.Ş.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Link to page on a sub-wiki

2016-06-29 Thread Pascal BASTIEN
Hi,

Use Ctrl+R and type "Product", select your desired page and copy/paste exact 
fullname (from popup window) in your wikilink [[Your nice page>>exact 
fullname]] .
Check  if your page is not hidden before.

Pascal B


En date de : Mer 29.6.16, D R  a écrit :

 Objet: Re: [xwiki-users] Link to page on a sub-wiki
 À: "XWiki Users" 
 Date: Mercredi 29 juin 2016, 10h47
 
 Hi,
 
 thanks for the answers. I prefixed the link
 with "doc:" but the problem
 persists. The link to the "not existing
 page" is:
 
 
http://wiki/xwiki/wiki/products/create/A+Product/The+Page?parent=Doku.Page+with+link
 
 To verify the correctness of
 my link I copied the above to the address bar
 of my browser and replaced "/create/"
 with "/view/" and voila, the page is
 shown. So my link is indeed correct which makes
 the problem even stranger
 ...
 
 Any further ideas? Otherwise
 it seems I need to hard-link :-[
 
 Regards,
 Dennis
 
 2016-06-28 17:19 GMT+02:00
 Clemens Klein-Robbenhaar <
 c.robbenh...@espresto.com>:
 
 > I first thought so, too,
 but this feature did not exist in XWiki 7.0.1 so
 > it is unlikely to be the problem here
 >
 > Paul Libbrecht
 wrote:
 > > I've been encountering
 frequent missing "WebHome" by inadvertently
 > > creating pages which end up being
 non-terminal. Maybe that helps?
 > >
 > > paul
 > >
 > > Clemens Klein-Robbenhaar wrote:
 > >> Maybe there is yet another
 whitespace missing, or the like?
 >
 ___
 > users mailing list
 > users@xwiki.org
 > http://lists.xwiki.org/mailman/listinfo/users
 >
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)

2016-06-29 Thread Kemalettin OCAK
Here is the root cause:

HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed 
to extract Entity Resource Reference from URL 
[http://localhost:8080/xwiki/bin/view/Main/]

type Exception report

message com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to 
extract Entity Resource Reference from URL 
[http://localhost:8080/xwiki/bin/view/Main/]

description The server encountered an internal error that prevented it from 
fulfilling this request.

exception

javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 
11007 in 0: Failed to extract Entity Resource Reference from URL 
[http://localhost:8080/xwiki/bin/view/Main/]

org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)

org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)

org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)

org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)

org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)

org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)

root cause

com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity 
Resource Reference from URL [http://localhost:8080/xwiki/bin/view/Main/]
com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:821)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:764)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:238)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:193)

org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)

org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)

org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)

org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)

org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)

root cause

java.lang.RuntimeException: Failed to locate wiki descriptor for alias 
[localhost]

org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:80)

org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61)

org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.extract(DomainWikiReferenceExtractor.java:47)

org.xwiki.url.internal.standard.entity.BinEntityResourceReferenceResolver.extractWikiReference(BinEntityResourceReferenceResolver.java:51)

org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:92)

org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:51)

org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:61)

org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:47)

org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:65)


Re: [xwiki-users] Integrate clipboard.js into XWiki application

2016-06-29 Thread Clemens Klein-Robbenhaar
Uh, tough, is there something like a stack trace for the error message?

First stop would be to check is the clipboard.min.js is really loaded and 
displays without error,
but I guess it does as otherwise the problem would appear on page load already 
...

One thing that looks odd to me is:
>   

This will render the value of the sTxtPassword field as clipboard target; I 
guess you want to use the id of the input field instead, e.g.



or something like that. At least the generated HTML should look this.

HTH
Clemens

D R wrote on  29.06.2016, 14:52
> Hi,
> 
> I'm trying to implement a basic password manager as an XWiki application. I
> have short text fields for username and password. In view mode the password
> is replaced by ** to hide it from prying eyes.
> 
> Now I'd like to have a button next to the username and password fields for
> copying the values to the clipboard.
> 
> I found two sources:
> 1.
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Cross-browser+JavaScript+clipboard+access
> 2. https://clipboardjs.com/
> 
> As the Wiki entry (1) is rather old I tried to replace it by (2) but I'm
> not sure how to insert the code exactly.
> 
> I uploaded the clipboard.min.js as an attachment to the Application code
> page.
> My Application sheet looks like this:
> 
> {{velocity}}
> {{html wiki="true"}}
> #set ($discard = $doc.use('XPass.Code.XPassClass'))
> #set($theSharedPanel = $xwiki.getDocument('XPass.Code'))
> 
> (% class="xform" %)
> (((
>   
> var clipboard = new Clipboard('.btn');
> clipboard.on('success', function(e) {
> console.log(e);
> });
> clipboard.on('error', function(e) {
> console.log(e);
> });
>   
>   ;  for="XPass.Code.XPassClass_0_sTxtName">$escapetool.xml($doc.displayPrettyName('sTxtName',
> false, false))
>   : $doc.display('sTxtName')
>   ;  for="XPass.Code.XPassClass_0_sListCategory">$escapetool.xml($doc.displayPrettyName('sListCategory',
> false, false))
>   : $doc.display('sListCategory')
>   ;  for="XPass.Code.XPassClass_0_sTxtURL">$escapetool.xml($doc.displayPrettyName('sTxtURL',
> false, false))
>   : $doc.display('sTxtURL')
>   ;  for="XPass.Code.XPassClass_0_lTxtDesc">$escapetool.xml($doc.displayPrettyName('lTxtDesc',
> false, false))
>   : $doc.display('lTxtDesc')
>   ;  for="XPass.Code.XPassClass_0_sTxtUser">$escapetool.xml($doc.displayPrettyName('sTxtUser',
> false, false))
>   : $doc.display('sTxtUser')
> 
>   ;  for="XPass.Code.XPassClass_0_sTxtPassword">$escapetool.xml($doc.displayPrettyName('sTxtPassword',
> false, false))
>   :
>   #if ($context.display == 'edit')
> $doc.display('sTxtPassword')
>   #else
> ~*~*~*~*~*~*~*~*~*~*
>   #end
>   
> 
>   
> )))
> {{/html}}
> {{/velocity}}
> 
> Now then pressing the "Copy to clipboard" button the clipboard is not
> updated and the console shows:
> "ReferenceError: Clipboard is not defined"
> 
> I'm not sure where to place the scripts to make it work so mybe someone can
> enlighten me.
> 
> Regards,
> Dennis
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Link to page on a sub-wiki

2016-06-29 Thread Clemens Klein-Robbenhaar
The simple things look simple only if one knows the solution ...

thanks for telling us that this fixes the issue, no need to feel dumber, 
happens to me all the time ;)

D R wrote:
> OMG, writing the wiki in lowercase solved the issue.
> Sometimes it's the most simple things ... and now I feel even dumber.
> Thanks for the help!
> 
> 2016-06-29 14:45 GMT+02:00 Clemens Klein-Robbenhaar <
> c.robbenh...@espresto.com>:
> 
>>
>> This looks totally strange to me.
>> I just tried to reproduce with an old 7.0.1 installation I had lying
>> around, and I cannot reproduce it there; the link works without problems
>>
>> my last try: as I tested with HSQL-DB (which is not case sensitive with
>> database names) but you likely have a production ready DB which does:
>> does it help to use the lowercase "products:" (i.e. the name of the DB =
>> id of the wiki, instead of the name of the wiki)?
>> i.e. something like:
>>
>> [[Label>>products:A Product.The Page]]
>>
>> or:
>>
>> [[Label>>doc:products:A Product.The Page]]
>>
>>
>>
>> D R wrote:
>>> Hi,
>>>
>>> thanks for the answers. I prefixed the link with "doc:" but the problem
>>> persists. The link to the "not existing page" is:
>>>
>>>
>> http://wiki/xwiki/wiki/products/create/A+Product/The+Page?parent=Doku.Page+with+link
>>>
>>> To verify the correctness of my link I copied the above to the address
>> bar
>>> of my browser and replaced "/create/" with "/view/" and voila, the page
>> is
>>> shown. So my link is indeed correct which makes the problem even stranger
>>> ...
>>>
>>> Any further ideas? Otherwise it seems I need to hard-link :-[
>>>
>>> Regards,
>>> Dennis
>>>
>>> 2016-06-28 17:19 GMT+02:00 Clemens Klein-Robbenhaar <
>>> c.robbenh...@espresto.com>:
>>>
 I first thought so, too, but this feature did not exist in XWiki 7.0.1
>> so
 it is unlikely to be the problem here

 Paul Libbrecht wrote:
> I've been encountering frequent missing "WebHome" by inadvertently
> creating pages which end up being non-terminal. Maybe that helps?
>
> paul
>
> Clemens Klein-Robbenhaar wrote:
>> Maybe there is yet another whitespace missing, or the like?
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Link to page on a sub-wiki

2016-06-29 Thread Pascal BASTIEN
ho sorry, I mean Ctrl+G  "Jump to any page in the wiki (Meta+G)"


En date de : Mer 29.6.16, D R  a écrit :

 Objet: Re: [xwiki-users] Link to page on a sub-wiki
 À: "Pascal BASTIEN" 
 Date: Mercredi 29 juin 2016, 14h39
 
 Hi,
 pressing
 CTRL+R seems to just reload the page ... starting to type
 "product" does lots of fuzzy things ending up in
 displaying the page source code.
 Well now I feel dumb.
 Regards,Dennis
 2016-06-29 11:39 GMT+02:00
 Pascal BASTIEN :
 Hi,
 
 
 
 Use Ctrl+R and type "Product", select your desired
 page and copy/paste exact fullname (from popup window) in
 your wikilink [[Your nice page>>exact fullname]] .
 
 Check  if your page is not hidden before.
 
 
 
 Pascal B
 
 
 
 
 
 En date de : Mer 29.6.16, D R 
 a écrit :
 
 
 
  Objet: Re: [xwiki-users] Link to page on a sub-wiki
 
  À: "XWiki Users" 
 
  Date: Mercredi 29 juin 2016, 10h47
 
 
 
  Hi,
 
 
 
  thanks for the answers. I prefixed the link
 
  with "doc:" but the problem
 
  persists. The link to the "not existing
 
  page" is:
 
 
 
  
http://wiki/xwiki/wiki/products/create/A+Product/The+Page?parent=Doku.Page+with+link
 
 
 
  To verify the correctness of
 
  my link I copied the above to the address bar
 
  of my browser and replaced "/create/"
 
  with "/view/" and voila, the page is
 
  shown. So my link is indeed correct which makes
 
  the problem even stranger
 
  ...
 
 
 
  Any further ideas? Otherwise
 
  it seems I need to hard-link :-[
 
 
 
  Regards,
 
  Dennis
 
 
 
  2016-06-28 17:19 GMT+02:00
 
  Clemens Klein-Robbenhaar <
 
  c.robbenh...@espresto.com>:
 
 
 
  > I first thought so, too,
 
  but this feature did not exist in XWiki 7.0.1 so
 
  > it is unlikely to be the problem here
 
  >
 
  > Paul Libbrecht
 
  wrote:
 
  > > I've been encountering
 
  frequent missing "WebHome" by inadvertently
 
  > > creating pages which end up being
 
  non-terminal. Maybe that helps?
 
  > >
 
  > > paul
 
  > >
 
  > > Clemens Klein-Robbenhaar wrote:
 
  > >> Maybe there is yet another
 
  whitespace missing, or the like?
 
  >
 
  ___
 
  > users mailing list
 
  > users@xwiki.org
 
  > http://lists.xwiki.org/mailman/listinfo/users
 
  >
 
  ___
 
  users mailing list
 
  users@xwiki.org
 
  http://lists.xwiki.org/mailman/listinfo/users
 
 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Link to page on a sub-wiki

2016-06-29 Thread Vincent Massol

> On 29 Jun 2016, at 15:06, Clemens Klein-Robbenhaar 
>  wrote:
> 
> The simple things look simple only if one knows the solution ...
> 
> thanks for telling us that this fixes the issue, no need to feel dumber, 
> happens to me all the time ;)

Indeed and it also shows that we can improve error reporting. For example in 
this case, we could notice that the wiki is invalid and report it as such.

Thanks
-Vincent

> D R wrote:
>> OMG, writing the wiki in lowercase solved the issue.
>> Sometimes it's the most simple things ... and now I feel even dumber.
>> Thanks for the help!
>> 
>> 2016-06-29 14:45 GMT+02:00 Clemens Klein-Robbenhaar <
>> c.robbenh...@espresto.com>:
>> 
>>> 
>>> This looks totally strange to me.
>>> I just tried to reproduce with an old 7.0.1 installation I had lying
>>> around, and I cannot reproduce it there; the link works without problems
>>> 
>>> my last try: as I tested with HSQL-DB (which is not case sensitive with
>>> database names) but you likely have a production ready DB which does:
>>> does it help to use the lowercase "products:" (i.e. the name of the DB =
>>> id of the wiki, instead of the name of the wiki)?
>>> i.e. something like:
>>> 
>>> [[Label>>products:A Product.The Page]]
>>> 
>>> or:
>>> 
>>> [[Label>>doc:products:A Product.The Page]]
>>> 
>>> 
>>> 
>>> D R wrote:
 Hi,
 
 thanks for the answers. I prefixed the link with "doc:" but the problem
 persists. The link to the "not existing page" is:
 
 
>>> http://wiki/xwiki/wiki/products/create/A+Product/The+Page?parent=Doku.Page+with+link
 
 To verify the correctness of my link I copied the above to the address
>>> bar
 of my browser and replaced "/create/" with "/view/" and voila, the page
>>> is
 shown. So my link is indeed correct which makes the problem even stranger
 ...
 
 Any further ideas? Otherwise it seems I need to hard-link :-[
 
 Regards,
 Dennis
 
 2016-06-28 17:19 GMT+02:00 Clemens Klein-Robbenhaar <
 c.robbenh...@espresto.com>:
 
> I first thought so, too, but this feature did not exist in XWiki 7.0.1
>>> so
> it is unlikely to be the problem here
> 
> Paul Libbrecht wrote:
>> I've been encountering frequent missing "WebHome" by inadvertently
>> creating pages which end up being non-terminal. Maybe that helps?
>> 
>> paul
>> 
>> Clemens Klein-Robbenhaar wrote:
>>> Maybe there is yet another whitespace missing, or the like?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Integrate clipboard.js into XWiki application

2016-06-29 Thread D R
Hi,

I made the suggested change:


But still nothing is being copied to the clipboard.

Log files are empty but now in the console I also see:

ReferenceError: Clipboard is not defined

 Testeintrag+1:556
 Testeintrag+1:556:5
Error: Mismatched anonymous define() module: function (){var t,e,n;return
function t(e,n,o){function i(a,c){if(!n[a]){if(!e[a]){var
s="function"==typeof require&if(!c&)return s(a,!0);if(r)return
r(a,!0);var l=new Error("Cannot find module '"+a+"'");throw
l.code="MODULE_NOT_FOUND",l}var
u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var
n=e[a][1][t];return i(n?n:t)},u,u.exports,t,e,n,o)}return
n[a].exports}for(var r="function"==typeof
require&,a=0;ao;o++)n[o].fn.apply(n[o].ctx,e);return
this},off:function(t,e){var
n=this.e||(this.e={}),o=n[t],i=[];if(o&)for(var
r=0,a=o.length;a>r;r++)o[r].fn!==e&[r].fn._!==e&(o[r]);return
i.length?n[t]=i:delete
n[t],this}},e.exports=o},{}],8:[function(e,n,o){!function(i,r){if("function"==typeof
t&)t(["module","select"],r);else if("undefined"!=typeof
o)r(n,e("select"));else{var
a={exports:{}};r(a,i.select),i.clipboardAction=a.exports}}(this,function(t,e){"use
strict";function n(t){return t&__esModule?t:{"default":t}}function
o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a
function")}var i=n(e),r="function"==typeof Symbol&&"symbol"==typeof
Symbol.iterator?function(t){return typeof t}:function(t){return
t&&"function"==typeof Symbol&===Symbol?"symbol":typeof
t},a=function(){function t(t,e){for(var n=0;n

[xwiki-users] Redirect to page on 'Save' action

2016-06-29 Thread Andrew Kuang
Hi there,

I had a question regarding the redirect that is happening in the SaveAction
class. When you have a title such as "1 & 2", hitting 'Save' will make the
AJAX call and redirect you to "www.wiki.com/bin/view/1+%26+2". The encoding
of the '&' appears to be done in the call to Util.getRedirect('view',
context) in the SaveAction class. 

I want to be able to redirect to "www.wiki-name.com/bin/view/1+&+2" so that
users do not have to see the encoded URL (in case they wish to copy-paste
the url elsewhere). I was able to do this by extending the SaveAction class
into a class of my own, overriding the action() method, and doing a string
replace of all instances of "%26" with "&"; however, this is a very hacky
solution.

I was hoping to get input on any other alternative ways to provide cleaner
URLs to my users. Thank you!



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Redirect-to-page-on-Save-action-tp7600164.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [myxwiki] new wiki request

2016-06-29 Thread Thomas Mortagne
You can access your new wiki on http://wikimobdoc.myxwiki.org.

Enjoy !

On Wed, Jun 29, 2016 at 12:48 PM, Lucie Nahassia
 wrote:
> Description :
> We are a french phd students group defending the working and research
> conditions in our university.This wiki would allow us to organize our
> collaborative projects and our meetings, and to keep track of all our
> decisions.
>
> Owner name : Lucie Nahassia
> wikiname : wikimobdoc
>
> 
> Lucie Nahassia
> Doctorante en Géographie
> Université Paris 1 Panthéon Sorbonne
> UMR 8504 Géographie cités, équipe P.A.R.I.S.
>
> 06.81.06.62.47
> lucie.nahas...@gmail.com
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)

2016-06-29 Thread Clemens Klein-Robbenhaar
Uh, oh, this looks like this problem reported last year:
http://markmail.org/thread/4iigsjpxdaw2qzzq

the issue went away there when using mySQL - for unknown reasons, so that time 
we did not really find a solution.
hope we can do better this time.


- Ursprüngliche Nachricht -
Von: Kemalettin Ocak
Am:  Wednesday, 29.06.2016, 12:20
An: Xwiki Users
Betreff: Re: [xwiki-users] NullPointerException at  
HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)


> Here is the root cause:
> 
> HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in 0: 
> Failed to extract Entity Resource Reference from URL 
> [http://localhost:8080/xwiki/bin/view/Main/]
> 
> type Exception report
> 
> message com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to 
> extract Entity Resource Reference from URL 
> [http://localhost:8080/xwiki/bin/view/Main/]
> 
> description The server encountered an internal error that prevented it from 
> fulfilling this request.
> 
> exception
> 
> javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 
> 11007 in 0: Failed to extract Entity Resource Reference from URL 
> [http://localhost:8080/xwiki/bin/view/Main/]
>   
> org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
[...]
> 
> root cause
> 
> com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract 
> Entity Resource Reference from URL 
> [http://localhost:8080/xwiki/bin/view/Main/]
>   com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:821)
>   com.xpn.xwiki.XWiki.getXWiki(XWiki.java:764)
[...]
> root cause
> 
> java.lang.RuntimeException: Failed to locate wiki descriptor for alias 
> [localhost]
>   
> org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:80)
>   
> org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61)
[...]

here is where the XWQL query is send as HQL query instead of being translated:

> 
> root cause
> 
> org.xwiki.query.QueryException: Exception while executing query. Query 
> statement = [ select doc.fullName from XWikiDocument as doc , BaseObject as 
> _o1 where ( doc.object ( XWiki.XWikiServerClass ) . server = :wikiAlias and 
> doc.name like 'XWikiServer%' ) and doc.fullName=_o1.name and 
> _o1.className='XWiki.XWikiServerClass' ]
>   
> com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:175)
>   
> org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:72)
>   org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287)
>   
> org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:118)
[..]
> root cause
> 
> java.lang.NullPointerException
>   org.hibernate.hql.ast.HqlSqlWalker.lookupProperty(HqlSqlWalker.java:560)
>   
> org.hibernate.hql.antlr.HqlSqlBaseWalker.addrExpr(HqlSqlBaseWalker.java:4774)
>   
> org.hibernate.hql.antlr.HqlSqlBaseWalker.expr(HqlSqlBaseWalker.java:1326)
[...]

 and here the dot in " doc.fullName" or "doc.object" triggers the NPE in the 
hibernate HQL Query parser :-/

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Link to page on a sub-wiki

2016-06-29 Thread Clemens Klein-Robbenhaar

This looks totally strange to me.
I just tried to reproduce with an old 7.0.1 installation I had lying around, 
and I cannot reproduce it there; the link works without problems

my last try: as I tested with HSQL-DB (which is not case sensitive with 
database names) but you likely have a production ready DB which does:
does it help to use the lowercase "products:" (i.e. the name of the DB = id of 
the wiki, instead of the name of the wiki)?
i.e. something like:

[[Label>>products:A Product.The Page]]

or:

[[Label>>doc:products:A Product.The Page]]



D R wrote:
> Hi,
> 
> thanks for the answers. I prefixed the link with "doc:" but the problem
> persists. The link to the "not existing page" is:
> 
> http://wiki/xwiki/wiki/products/create/A+Product/The+Page?parent=Doku.Page+with+link
> 
> To verify the correctness of my link I copied the above to the address bar
> of my browser and replaced "/create/" with "/view/" and voila, the page is
> shown. So my link is indeed correct which makes the problem even stranger
> ...
> 
> Any further ideas? Otherwise it seems I need to hard-link :-[
> 
> Regards,
> Dennis
> 
> 2016-06-28 17:19 GMT+02:00 Clemens Klein-Robbenhaar <
> c.robbenh...@espresto.com>:
> 
>> I first thought so, too, but this feature did not exist in XWiki 7.0.1 so
>> it is unlikely to be the problem here
>>
>> Paul Libbrecht wrote:
>>> I've been encountering frequent missing "WebHome" by inadvertently
>>> creating pages which end up being non-terminal. Maybe that helps?
>>>
>>> paul
>>>
>>> Clemens Klein-Robbenhaar wrote:
 Maybe there is yet another whitespace missing, or the like?
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 

mit freundlichen Grüßen
Clemens Klein-Robbenhaar

-- 
Clemens Klein-Robbenhaar
Software Development
EsPresto AG
Breite Str. 30-31
10178 Berlin/Germany
Tel: +49.(0)30.90 226.763
Fax: +49.(0)30.90 226.760
robbenh...@espresto.com
www.espresto.de

HRB 77554 B - Berlin-Charlottenburg
Vorstand: Maya Biersack, Peter Biersack
Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
Zertifiziert nach ISO 9001:2008
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Integrate clipboard.js into XWiki application

2016-06-29 Thread D R
Hi,

I'm trying to implement a basic password manager as an XWiki application. I
have short text fields for username and password. In view mode the password
is replaced by ** to hide it from prying eyes.

Now I'd like to have a button next to the username and password fields for
copying the values to the clipboard.

I found two sources:
1.
http://extensions.xwiki.org/xwiki/bin/view/Extension/Cross-browser+JavaScript+clipboard+access
2. https://clipboardjs.com/

As the Wiki entry (1) is rather old I tried to replace it by (2) but I'm
not sure how to insert the code exactly.

I uploaded the clipboard.min.js as an attachment to the Application code
page.
My Application sheet looks like this:

{{velocity}}
{{html wiki="true"}}
#set ($discard = $doc.use('XPass.Code.XPassClass'))
#set($theSharedPanel = $xwiki.getDocument('XPass.Code'))

(% class="xform" %)
(((
  
var clipboard = new Clipboard('.btn');
clipboard.on('success', function(e) {
console.log(e);
});
clipboard.on('error', function(e) {
console.log(e);
});
  
  ; $escapetool.xml($doc.displayPrettyName('sTxtName',
false, false))
  : $doc.display('sTxtName')
  ; $escapetool.xml($doc.displayPrettyName('sListCategory',
false, false))
  : $doc.display('sListCategory')
  ; $escapetool.xml($doc.displayPrettyName('sTxtURL',
false, false))
  : $doc.display('sTxtURL')
  ; $escapetool.xml($doc.displayPrettyName('lTxtDesc',
false, false))
  : $doc.display('lTxtDesc')
  ; $escapetool.xml($doc.displayPrettyName('sTxtUser',
false, false))
  : $doc.display('sTxtUser')

  ; $escapetool.xml($doc.displayPrettyName('sTxtPassword',
false, false))
  :
  #if ($context.display == 'edit')
$doc.display('sTxtPassword')
  #else
~*~*~*~*~*~*~*~*~*~*
  #end
  

  
)))
{{/html}}
{{/velocity}}

Now then pressing the "Copy to clipboard" button the clipboard is not
updated and the console shows:
"ReferenceError: Clipboard is not defined"

I'm not sure where to place the scripts to make it work so mybe someone can
enlighten me.

Regards,
Dennis
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)

2016-06-29 Thread Kemalettin OCAK
Yes, i read that thread till the end but didn't tried MySql. I tried H2 to be 
sure if it's database related issue but same stack trace. I am planning to use 
that wiki in our server environment. We use weblogic as application server and 
Oracle11g as database server. Actually, after i test standalone version in my 
desktop, i tried to deploy xwiki to weblogic and had several errors. I passed 
all of them and stucked at this one. After that i gave a try to Apache Tomcat 
and same issue. I am trying to make it work for a week but i am desperate now. 
I think, i will use standalone version at the production environment :)

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Clemens 
Klein-Robbenhaar
Sent: Wednesday, June 29, 2016 2:54 PM
To: users@xwiki.org
Subject: Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( 
HqlSqlWalker.java:560)

Uh, oh, this looks like this problem reported last year:
http://markmail.org/thread/4iigsjpxdaw2qzzq

the issue went away there when using mySQL - for unknown reasons, so that time 
we did not really find a solution.
hope we can do better this time.


- Ursprüngliche Nachricht -
Von: Kemalettin Ocak
Am:  Wednesday, 29.06.2016, 12:20
An: Xwiki Users
Betreff: Re: [xwiki-users] NullPointerException at  
HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)


> Here is the root cause:
> 
> HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in 0: 
> Failed to extract Entity Resource Reference from URL 
> [http://localhost:8080/xwiki/bin/view/Main/]
> 
> type Exception report
> 
> message com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to 
> extract Entity Resource Reference from URL 
> [http://localhost:8080/xwiki/bin/view/Main/]
> 
> description The server encountered an internal error that prevented it from 
> fulfilling this request.
> 
> exception
> 
> javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 
> 11007 in 0: Failed to extract Entity Resource Reference from URL 
> [http://localhost:8080/xwiki/bin/view/Main/]
>   
> org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
[...]
> 
> root cause
> 
> com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract 
> Entity Resource Reference from URL 
> [http://localhost:8080/xwiki/bin/view/Main/]
>   com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:821)
>   com.xpn.xwiki.XWiki.getXWiki(XWiki.java:764)
[...]
> root cause
> 
> java.lang.RuntimeException: Failed to locate wiki descriptor for alias 
> [localhost]
>   
> org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:80)
>   
> org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61)
[...]

here is where the XWQL query is send as HQL query instead of being translated:

> 
> root cause
> 
> org.xwiki.query.QueryException: Exception while executing query. Query 
> statement = [ select doc.fullName from XWikiDocument as doc , BaseObject as 
> _o1 where ( doc.object ( XWiki.XWikiServerClass ) . server = :wikiAlias and 
> doc.name like 'XWikiServer%' ) and doc.fullName=_o1.name and 
> _o1.className='XWiki.XWikiServerClass' ]
>   
> com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:175)
>   
> org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:72)
>   org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287)
>   
> org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:118)
[..]
> root cause
> 
> java.lang.NullPointerException
>   org.hibernate.hql.ast.HqlSqlWalker.lookupProperty(HqlSqlWalker.java:560)
>   
> org.hibernate.hql.antlr.HqlSqlBaseWalker.addrExpr(HqlSqlBaseWalker.java:4774)
>   
> org.hibernate.hql.antlr.HqlSqlBaseWalker.expr(HqlSqlBaseWalker.java:1326)
[...]

 and here the dot in " doc.fullName" or "doc.object" triggers the NPE in the 
hibernate HQL Query parser :-/

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Dikkat: Bu elektronik posta mesaji kisisel ve ozeldir. Eger size 
gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz.Firmamiza gelen 
ve giden mesajlar virus taramasindan gecirilmektedir. Mesajdaki gorusler 
gondericiye ait olup HAVELSAN A.S. resmi gorusu olmak zorunda degildir. 
Attention: This e-mail message is private and privileged.If you are not the 
recipient for whom this e-mail message is intended, please notify the sender 
immediately and delete this e-mail message from your system.All sent and 
received e-mail messages go through a virus scan. Any opinions presented in 
this e-mail message are solely those of the author and do not necessarily 
represent HAVELSAN A.S.`s formal and 

Re: [xwiki-users] Link to page on a sub-wiki

2016-06-29 Thread D R
OMG, writing the wiki in lowercase solved the issue.
Sometimes it's the most simple things ... and now I feel even dumber.
Thanks for the help!

2016-06-29 14:45 GMT+02:00 Clemens Klein-Robbenhaar <
c.robbenh...@espresto.com>:

>
> This looks totally strange to me.
> I just tried to reproduce with an old 7.0.1 installation I had lying
> around, and I cannot reproduce it there; the link works without problems
>
> my last try: as I tested with HSQL-DB (which is not case sensitive with
> database names) but you likely have a production ready DB which does:
> does it help to use the lowercase "products:" (i.e. the name of the DB =
> id of the wiki, instead of the name of the wiki)?
> i.e. something like:
>
> [[Label>>products:A Product.The Page]]
>
> or:
>
> [[Label>>doc:products:A Product.The Page]]
>
>
>
> D R wrote:
> > Hi,
> >
> > thanks for the answers. I prefixed the link with "doc:" but the problem
> > persists. The link to the "not existing page" is:
> >
> >
> http://wiki/xwiki/wiki/products/create/A+Product/The+Page?parent=Doku.Page+with+link
> >
> > To verify the correctness of my link I copied the above to the address
> bar
> > of my browser and replaced "/create/" with "/view/" and voila, the page
> is
> > shown. So my link is indeed correct which makes the problem even stranger
> > ...
> >
> > Any further ideas? Otherwise it seems I need to hard-link :-[
> >
> > Regards,
> > Dennis
> >
> > 2016-06-28 17:19 GMT+02:00 Clemens Klein-Robbenhaar <
> > c.robbenh...@espresto.com>:
> >
> >> I first thought so, too, but this feature did not exist in XWiki 7.0.1
> so
> >> it is unlikely to be the problem here
> >>
> >> Paul Libbrecht wrote:
> >>> I've been encountering frequent missing "WebHome" by inadvertently
> >>> creating pages which end up being non-terminal. Maybe that helps?
> >>>
> >>> paul
> >>>
> >>> Clemens Klein-Robbenhaar wrote:
>  Maybe there is yet another whitespace missing, or the like?
> >> ___
> >> users mailing list
> >> users@xwiki.org
> >> http://lists.xwiki.org/mailman/listinfo/users
> >>
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
> mit freundlichen Grüßen
> Clemens Klein-Robbenhaar
>
> --
> Clemens Klein-Robbenhaar
> Software Development
> EsPresto AG
> Breite Str. 30-31
> 10178 Berlin/Germany
> Tel: +49.(0)30.90 226.763
> Fax: +49.(0)30.90 226.760
> robbenh...@espresto.com
> www.espresto.de
>
> HRB 77554 B - Berlin-Charlottenburg
> Vorstand: Maya Biersack, Peter Biersack
> Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
> Zertifiziert nach ISO 9001:2008
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [myxwiki] new wiki request

2016-06-29 Thread Lucie Nahassia
Description :
We are a french phd students group defending the working and research
conditions in our university.This wiki would allow us to organize our
collaborative projects and our meetings, and to keep track of all our
decisions.

Owner name : Lucie Nahassia
wikiname : wikimobdoc


Lucie Nahassia
Doctorante en Géographie
Université Paris 1 Panthéon Sorbonne
UMR 8504 Géographie cités, équipe P.A.R.I.S.

06.81.06.62.47
lucie.nahas...@gmail.com
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users