Re: [xwiki-users] XWiki REST authentication
Hi Dilipkumar, On Sun, Nov 8, 2009 at 9:49 PM, Dilipkumar Jadhav jadhav.dilipku...@gmail.com wrote: Hello folks, XWiki REST authentication can be BASIC authentication or XWiki browser sessions. Found XWIKI-3268 (http://jira.xwiki.org/jira/browse/XWIKI-3268) which stated the same. However is there a possibility to add username/password used by the XWiki users into the HTTPClient authentication methods. At present, BASIC authentication would mean creating a username/password again for the users. And relying on cookies mechanism requires that the XWiki user should be logged into XWiki through a browser before s/he can make REST requests. Either ways, an http client won't be able to authenticate users without making them put an extra effort to login manually somewhere. As far as I know, your BASIC authentication username / password are the same as your standard XWiki Username / Password. That is, if an user has a XWiki account, he can login through basic authentication using that same account. Thus you don't need to create a new account / password for your users. Guillaume Please let me know your views on this one If there is a work around to this. Thank you guys. Regards, Dilipkumar Jadhav ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] problem getting inline edit for pages with objects
Hi Regan, the solution provided by Sergiu does work (I've used it a number of times already). You have to add the XWiki.SheetClass object to the page that is called by the include (which in your case seems to be 'Projects.TestRequestClassSheet' ). Are you sure you: 1. Added the object to the right page? 2. All your application's pages are in syntax 2? 3. You tried clicking on 'Edit' once on your test page (and not directly on 'wiki' or 'wysiwyg')? You can check out how this works in the latest version of the bulletin board application: http://code.xwiki.org/xwiki/bin/view/Applications/BulletinBoardApplication (look at BBCode.CategoryClassSheet) Or by looking at the FAQ tutorial: http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial#HCreatethePageDesignSheet Hope this helps, Guillaume On Mon, Nov 9, 2009 at 5:47 AM, Regan Gill rg...@acceptsoftware.com wrote: Thank you for the reply. Unfortunately that doesn't do anything for this case for some reason. Is there an example some where I can look at that does work and maybe I can determine what is different. -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Sergiu Dumitriu Sent: Sunday, November 08, 2009 3:30 PM To: XWiki Users Subject: Re: [xwiki-users] problem getting inline edit for pages with objects On 11/09/2009 12:22 AM, Regan Gill wrote: Hi, I apologize in advance for the lengthy email. I am using XWiki Enterprise 2.0.24043 now, after upgrading from 1.9.2 recently. I have some custom classes created a year ago and I have tried to convert all their pages to 2.0 syntax. There have been quite a few problems I have been able to solve, but there is one that I am quite confused about. I need the pages that have these class objects to default to inline edit mode since that is the only useful way for the users to enter the data. In the older (pre 2.0) version this happened automatically -- although I don't know why, it was like magic -- and things were fine. Now when the user clicks the edit menu it automatically goes to WYSIWYG (or wiki depending on the user). I thought I could get around this by redirecting the edit to inline, I think I was able to do this in older versions of xwiki. I have tried many versions of code like this: {{velocity filter=none}} ## check for admin is so that I can still edit pages in wiki as normal, ## but non admin users should get the inline version #set($hasGlobalAdmin = $xwiki.hasAccessLevel(admin, $context.user, XWiki.XWikiPreferences)) #if($context.action == 'edit' !$hasGlobalAdmin) ## for redirection, I tried a few different methods like ## $response.sendRedirect($doc.getURL('inline')) ## and this $response.sendRedirect($xwiki.getURL($doc.name, 'inline')) ## tried with and without the stop #stop #else {{include document=Projects.TestRequestClassSheet/}} You must add an object of type XWiki.SheetClass to the Projects.TestRequestClassSheet document. No need to do anything else. #end {{/velocity}} but instead is does this crazy thing of sending the entire page to a WYSIWYG editor (meaning the entire xwiki page with the top menus, panels, everything) with the page I am trying to edit showing as if it was inline but not actually editable. The URL in the browser doesn't change at all. However if I just choose the inline edit mode to start or type in the url /xwiki/bin/inline/Projects/mynewtestrequest for example that works like it should. I tried upgrading to XWiki Enterprise 2.0.3.24848 and the behavior persists. I fear I am going to have to get into the java code to find a solution, which means a lot more work -- so I am appealing to the group to see if there is something easier that I am not seeing. It appears to me that the $redirect support has changed somehow. TIA for your help! Regan -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ 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 -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki REST authentication
On Nov 8, 2009, at 9:49 PM, Dilipkumar Jadhav wrote: Hello folks, XWiki REST authentication can be BASIC authentication or XWiki browser sessions. Found XWIKI-3268 (http://jira.xwiki.org/jira/browse/XWIKI-3268 ) which stated the same. However is there a possibility to add username/password used by the XWiki users into the HTTPClient authentication methods. At present, BASIC authentication would mean creating a username/ password again for the users. And relying on cookies mechanism requires that the XWiki user should be logged into XWiki through a browser before s/he can make REST requests. Either ways, an http client won't be able to authenticate users without making them put an extra effort to login manually somewhere. Please let me know your views on this one If there is a work around to this. As Guillaume already hinted, the username/password for HTTP basic authentication are the same as the XWiki username/password you use to login to your XWiki using the web interface. To be more precise the XWiki REST authentication works in the following way (priority order): 1) If an authorization header is present the provided username/ password are checked using the XWiki auth service. As said before these credentials are the same of the ones you will use to login using the web interface. 2) If an authorization header is NOT present, but in the request there are session information about a previous login, then this information is used to authenticate the user. 3) If everything fails (neither HTTP basic auth headers nor session information are present), then the request is associated to the Guest user In all cases, XWiki auth components are used to perform authentication so, at a lower level, authentication works exactly as the one in the web interface, using the same usernames and passwords. Hope this helps. -Fabio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] RSS Feed for Space Blog
I figured it out: On a new page include the following code (XWiki 1.0 syntax) and replace the string passed to getDocument with the space.page containing you blog posts: #includeMacros(Blog.RssCode) ## ## ## #set ($blogDoc = $xwiki.getDocument(Marketing.Marketing-Blog)) ##getTargetBlog($blogDoc) #getBlogEntries($blogDoc $entries) #set($entries = $xwiki.wrapDocs($entries)) #displayBlogRss($blogDoc $entries) Best regards Philipp ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XWiki REST authentication
Hi Fabio Guillame, It was fairly simple after all. J My bad that I confused XWiki authorization with tomcat basic authorization which we would configure in the tomcat-users.xml. Also, if I am not wrong, I could set the host, port to null authscope to ANY_REALM in the following snippet (apache httpclient authentication methods): Credentials defaultcreds = new UsernamePasswordCredentials(username, password); client.getState().setCredentials(new AuthScope(myhost, 80, AuthScope.ANY_REALM), defaultcreds); As always, thank you for your detailed timely response Fabio Guillame. Regards, Dilipkumar Jadhav ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] declare sections in the page
Hello i saw some posts here for defining page sections. (http://n2.nabble.com/some-questions-concerning-editing-pages-more-specific-section-behaviour-XWiki-1-8M1-td2197026.html#a2197026) what i did and fail apparently was: have some tables in a page and i wanted to define each table as a section, so that when to edit, the user cand edit just the specific table he wants to. not the hole part. so i created for test 2 tables with titles: 1. section 1 ..the actual table 1.1 section 2 ..the actual table but the sections weren't created. Is there any documentation for this, please? Thank you -- View this message in context: http://n2.nabble.com/declare-sections-in-the-page-tp3973361p3973361.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
[xwiki-users] [ANN] New Top Level Project : XWiki Contrib
Hello all, We are happy to inform you a new Top Level Project as been created : XWiki Contrib. (see http://www.xwiki.org/xwiki/bin/view/Main/Forge for a list of all Top Level Projects). As its name state, The *XWiki Contrib Project* provides hosting for projects related to XWiki. These projects are not part of the official XWiki distributions and are not maintained by the XWiki development team. The idea is that anyone with a project can be hosted in the XWiki Contrib project. XWiki Contrib can provide projects with: * A SVN directory in the XWiki repository * Issue tracking on XWiki's JIRA instance * Documentation pages on xwiki.org websites. To find out more about it and get the all the details, we encourage you to read the XWiki Contrib introduction at http://contrib.xwiki.org/ Now don't hesitate to request hosting for your project on the dev list or to bother us with any question related to this project. Thanks, Jerome, on behalf of the XWiki Development Team. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [ANN] New Top Level Project : XWiki Contrib
Side note mainly for people working in the former SVN sandbox : The sandbox is now part of the XWiki Contrib project, which means your project has been moved. Likely under http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/ if it has not been inactive for a too long period, under http://svn.xwiki.org/svnroot/xwiki/contrib/retired/ otherwise. Four projects have been promoted directly in the projects directory (at http://svn.xwiki.org/svnroot/xwiki/contrib/projects/ ) since they have been released already (in their case, they were available for download on code.xwiki.org ; note released could also mean a first working version is tagged in SVN). Those projects are : - xwiki-application-meetingmanager - xwiki-application-multipageexport - xwiki-application-recruitmentmanager - xwiki-macro-todo Jerome. On 11/9/09 8:28 PM, Jerome Velociter wrote: Hello all, We are happy to inform you a new Top Level Project as been created : XWiki Contrib. (see http://www.xwiki.org/xwiki/bin/view/Main/Forge for a list of all Top Level Projects). As its name state, The *XWiki Contrib Project* provides hosting for projects related to XWiki. These projects are not part of the official XWiki distributions and are not maintained by the XWiki development team. The idea is that anyone with a project can be hosted in the XWiki Contrib project. XWiki Contrib can provide projects with: * A SVN directory in the XWiki repository * Issue tracking on XWiki's JIRA instance * Documentation pages on xwiki.org websites. To find out more about it and get the all the details, we encourage you to read the XWiki Contrib introduction at http://contrib.xwiki.org/ Now don't hesitate to request hosting for your project on the dev list or to bother us with any question related to this project. Thanks, Jerome, on behalf of the XWiki Development Team. ___ 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] Save and continue from another function
Hello I apologize if this is a stupid question, but I haven't been able to figure it out yet. I want to write a javascript function that can trigger the save and continue button on the edit page. Can anybody show me some sample code or explain how to do this? Thanks Jeremy ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Skinless on myxwiki, why?
Hi, One of my users reported seeing skinless page after login. I created a new account and see the skinless page also. I can see normal page login or not. (parents2.myxwiki.org) Wei-hsing ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XEclipse syntax highlighting and code completion
Hi, I can't seem to get the syntax highlighting and code completion working in XEclipse, is there anything that needs to be done to get this working or should it work out of the box? Thanks, Radek ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XEclipse syntax highlighting and code completion
Hi Radek, On Nov 10, 2009, at 7:23 AM, Radek Rekas wrote: Hi, I can't seem to get the syntax highlighting and code completion working in XEclipse, is there anything that needs to be done to get this working or should it work out of the box? It'll work OOB but only for the XWiki 1.0 syntax for now. We need someone to make it work for the 2.0 syntax. Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users