问题标签 [xwiki]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
asp.net - IIS rewrite rule for basic auth on the querystring
I am trying to automatically log in users to an Xwiki install via basic auth. This is because help is stored in the wiki, but we want the retrieval process to be transparent to the user.
We push the user off to a url (via an <a>
tag) like:
http://username:password@xwiki.example.org/xwiki/bin/view/Main?basicauth=1
This works fine in every browser except Internet Explorer (see: http://support.microsoft.com/kb/834489
. Unfortunately, 80% of our user base uses Internet Explorer and it is not an option to have them type in the credentials manually.
Currently, we have IIS 7.5 sitting in front of Xwiki and proxying all requests to the Tomcat instance on another server. This works fine. To solve my problem, I thought I could use a IIS rewrite rule to turn a url like this:
http://xwiki.example.org/xwiki/bin/view/Main?basicauth=1&_username=username&_password=password
into this:
http://username:password@xwiki.example.org/xwiki/bin/view/Main?basicauth=1&_username=username&_password=password
The idea being that IIS would substitute the _username/_password querystring parameters into the URL and pass it off to Tomcat, and Xwiki would ignore the extra parameters.
I have created a URL rewrite rule like:
When I go 'Test pattern' in IIS and supply my url, all the backreferences ({R:x}) match up to the data I want. However, when I visit the URL in my browser, the rewrite rule fails to invoke.
Is there any way I can achieve my desired behaviour?
java - 如何在 Eclipse 中使用 xml-rpc 为组设置权限
我尝试创建一个新组,但我无法设置权限
我的代码是
我尝试以与创建用户相同的方式执行此操作,但我无法分配权限。
http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples#HUser:CreateANewUser
帮助!!
database - XWiki - 数据库(如何创建 XWO_ID?)
我知道 XWD_ID (xwikidoc) 是如何创建的,但我不知道 XWO_ID (xwikiobject) 是如何创建的。我知道这与表 xwikidates、xwikiintegers、xwikilargestrings 的 ID 相同……但我不知道它是如何创建的。你能帮助我吗 ?
谢谢,
卡罗琳。
grails - Grails - 如何将 wiki 页面嵌入到 Grails 应用程序中
我希望我的应用程序的某些页面使用基于 wiki 的技术,例如 XWiki、MoinMoin、Tiki Wiki……我主要关心的是不必重新编码“编辑”、“预览”、“历史比较器”特征。
我怎么能那样做?iframe 会是一个解决方案吗?有人已经这样做了吗?
任何建议都是最受欢迎的。先感谢您。
rest - 使用 REST 创建一个 BlogPost XWiki
我需要(使用 XWiki API REST)创建一个 BlogPost。但我不知道使用 REST ... 使用此命令:
并使用此 XML 文件:
我在空间中创建了一个页面Main
。但我想在空间中发布一个 BlogPost Blog
。我必须使用什么标记?(我在这里找到了这个命令)
java - Web应用程序的名称总是战争的名称吗?
我正在尝试在 Tomcat 上安装 XWiki。我检查了 web.xml 并发现:
但localhost:8080/xwiki
返回错误 404:
描述 请求的资源 (/xwiki) 不可用。
我还发现:
但同样的问题:
描述 请求的资源 (//XWikiService) 不可用。
我的安装有问题吗?我在 catalina.out 中没有发现任何错误。但是当我尝试战争名称时:
本地主机:8080/xwiki-enterprise-web-4.1.2/
有用!
我应该检查什么?
java - xwiki java.lang.OutOfMemoryError: PermGen 空间
我刚刚使用war文件在我的本地机器上下载并设置了xwiki 。我正在使用 hsql 通过 tomcat 6 运行它。我已经启动并运行它,但每次我使用它并进入我正在做的任何事情的第 5 或第 6 页时,我都会收到错误消息java.lang.OutOfMemoryError: PermGen space
我已将此行添加到我的 catalina.bat 文件set JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms1536m -Xmx1536m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=1024m -XX:MaxPermSize=1024m -XX:+DisableExplicitGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -XX:UseConcMarkSweepGC"
中,但它似乎没有解决问题。
任何帮助表示赞赏。
编辑
完整的 catalina.bat 文件:
bin\setclasspath.bat
java - 如何扩展不在我的项目中的类
我有一个项目,其中编写了身份验证机制,如果有人试图访问 xwiki,我希望它使用 xwiki 自定义身份验证将他们重定向到我的项目的登录页面。
我正在尝试与我的项目分开编写一个类并与 xwiki 分开,将其打包为一个 jar 并将其放入 xwiki 项目的 xwiki WEB-INF/lib 文件夹中,因为这就是 xwiki 自定义的说明验证。
问题是,我需要编写的类导入了一些 xwiki 类。如果我用这些导入编写一个单独的类,它将无法正确编译。
如果它是一个需要进入 xwiki 的 WEB-INF/lib 文件夹的单独类,我应该如何创建一个扩展某些 xwiki 类的类?
这是某人发布的示例https://www.box.com/shared/9kamt5d9c5。
简单的例子
当我将我的 jar 文件添加到我的 xwiki 并运行它时,我收到以下错误:
java - 如何使用 FileUploadPlugin 在 XWiki 中创建带有进度条的自定义 FileUpload
任何人都有关于如何在 XWiki 中使用进度条创建自定义 FileUpload 的任何想法或代码(更好)FileUploadPlugin
?
我想要的是如何立即从 XWiki 服务器端获取进度数据?
谢谢
java - 用于 Java 的 Creole 1.0 到 HTML5 渲染器
我想建立一个 CMS/Wiki,我想用 HTML5 来做。
不幸的是,我一直在寻找可以将Creole 1.0语法作为输入并将其呈现为 HTML5 的 Wiki 渲染引擎,有人可以为此目的指向我的库吗?
我的第二个选择是为XWiki编写一个渲染器来支持 HTML5。关于如何开发这样的东西的任何想法?