Orbeon如何调解PDF生成

时间:2013-05-31 11:17:36

标签: orbeon

运行Orbeon 4.2.0.201305301915-PE

我已经通过FB启用了基于表单的权限,并且对PDF和View进程有不同的行为。 IE浏览器。具有查看权限的用户没有PDF权限。看起来PDF生成在不同的安全上下文中运行,因为如果我向“anybody”添加读取然后它可以工作。 此日志显示成功的视图操作:

2013-05-31 10:50:06,962 INFO  ProcessorService  - /xforms-server - Received request
2013-05-31 10:50:06,985 INFO  ProcessorService  - /xforms-server - Timing: 23
2013-05-31 10:50:07,113 INFO  ProcessorService  - /xforms-server-submit - Received request
2013-05-31 10:50:07,119 INFO  ProcessorService  - /xforms-server-submit - Timing: 6
2013-05-31 10:50:07,131 INFO  ProcessorService  - /fr/parkers/test/view/b4a1a6b9e8a497e54d005e8731a68f51b7262718 - Received request
2013-05-31 10:50:07,144 INFO  ProcessorService  - /fr/service/persistence/crud/parkers/test/form/form.xhtml - Received request
2013-05-31 10:50:07,151 INFO  ProcessorService  - /fr/service/exist/crud/parkers/test/form/form.xhtml - Received request
2013-05-31 10:50:07,166 INFO  ProcessorService  - /fr/service/persistence/crud/parkers/test/form/form.xhtml - Timing: 22
2013-05-31 10:50:07,174 INFO  ProcessorService  - /fr/service/exist/crud/parkers/test/form/form.xhtml - Timing: 23
2013-05-31 10:50:07,236 INFO  ProcessorService  - /fr/parkers/test/view/b4a1a6b9e8a497e54d005e8731a68f51b7262718 - Received request
2013-05-31 10:50:07,244 INFO  ProcessorService  - /fr/service/exist/crud/parkers/test/data/b4a1a6b9e8a497e54d005e8731a68f51b7262718/data.xml - Received request
2013-05-31 10:50:07,259 INFO  ProcessorService  - /fr/service/exist/crud/parkers/test/data/b4a1a6b9e8a497e54d005e8731a68f51b7262718/data.xml - Timing: 15
2013-05-31 10:50:07,260 INFO  ProcessorService  - /fr/service/persistence/crud/parkers/test/data/b4a1a6b9e8a497e54d005e8731a68f51b7262718/data.xml - Timing: 24
2013-05-31 10:50:07,278 WARN  XFormsServer  - xxf:instance() - instance not found {instance id: "fb-variables"}
2013-05-31 10:50:07,287 WARN  XFormsServer  - instance() - instance not found {instance id: "error-summary-control-bottom$fr-errors-instance"}
2013-05-31 10:50:07,337 INFO  ProcessorService  - /fr/parkers/test/view/b4a1a6b9e8a497e54d005e8731a68f51b7262718 - Timing: 206

之后是PDF生成失败:

2013-05-31 10:50:12,908 INFO  ProcessorService  - /fr/parkers/test/pdf/b4a1a6b9e8a497e54d005e8731a68f51b7262718 - Received request
2013-05-31 10:50:12,921 INFO  ProcessorService  - /fr/service/persistence/crud/parkers/test/form/form.xhtml - Received request
2013-05-31 10:50:12,930 INFO  ProcessorService  - /fr/service/exist/crud/parkers/test/form/form.xhtml - Received request
2013-05-31 10:50:12,950 INFO  ProcessorService  - /fr/service/exist/crud/parkers/test/form/form.xhtml - Timing: 20
2013-05-31 10:50:12,959 INFO  ProcessorService  - /fr/service/persistence/crud/parkers/test/form/form.xhtml - Timing: 38
2013-05-31 10:50:12,997 INFO  PageFlowControllerProcessor  - unauthorized {controller: "oxf:/apps/fr/page-flow.xml", method: "GET", path: "/fr/parkers/test/pdf/b4a1a6b9e8a497e54d005e8731a68f51b7262718", status-code: "403"}
2013-05-31 10:50:13,003 INFO  ProcessorService  - /fr/parkers/test/pdf/b4a1a6b9e8a497e54d005e8731a68f51b7262718 - Timing: 95
2013-05-31 10:50:13,021 INFO  ProcessorService  - /xforms-server - Received request
2013-05-31 10:50:13,048 INFO  ProcessorService  - /xforms-server - Timing: 26

1 个答案:

答案 0 :(得分:0)

我无法重现您所描述的问题。我创建了一个具有以下权限的表单:

permission

然后以具有角色a的用户身份登录,转到表单的新页面,保存,将摘要页面加载为组b中的用户,并在摘要页面上查看以下内容:

enter image description here

在那里,两个按钮( Review PDF )工作正常,如果我进入视图页面,那么点击< em> PDF 按钮,它也可以。如果您正在执行其他步骤,请随时更新您的问题并对此答案发表评论。