[
https://issues.apache.org/jira/browse/SHINDIG-1550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053690#comment-13053690
]
Bastian Hofmann commented on SHINDIG-1550:
------------------------------------------
I can't get it to work, the PHP code works fine, but caja can't read the file
although it's present:
com.google.caja.plugin.UriFetcher$UriFetchException: unknown:///unknown:0+0:
failed to load external url
file:/tmp/shindig_unittests/caja/uncajoled_cfcd208495d565ef66e7dff9f98764da.html
at
com.google.caja.plugin.UriFetcher$ChainingUriFetcher$1.fetch(UriFetcher.java:91)
at
com.google.caja.parser.ParserContext.guessCharProducer(ParserContext.java:223)
at
com.google.caja.parser.ParserContext.guessCharProducer(ParserContext.java:197)
at com.google.caja.parser.ParserContext.build(ParserContext.java:308)
at
com.google.caja.plugin.PluginCompilerMain.parseInputs(PluginCompilerMain.java:230)
at
com.google.caja.plugin.PluginCompilerMain.run(PluginCompilerMain.java:183)
at
com.google.caja.plugin.PluginCompilerMain.main(PluginCompilerMain.java:381)
Caused by: com.google.caja.plugin.UriFetcher$UriFetchException:
unknown:///unknown:0+0: failed to load external url
file:/tmp/shindig_unittests/caja/uncajoled_cfcd208495d565ef66e7dff9f98764da.html
at
com.google.caja.plugin.DataUriFetcher.fetchBinary(DataUriFetcher.java:84)
at com.google.caja.plugin.DataUriFetcher.fetch(DataUriFetcher.java:75)
at
com.google.caja.plugin.UriFetcher$ChainingUriFetcher$1.fetch(UriFetcher.java:85)
... 6 more
java.lang.IllegalStateException: Not enough arguments to create a CharProducer
at
com.google.caja.parser.ParserContext.guessCharProducer(ParserContext.java:213)
at com.google.caja.parser.ParserContext.build(ParserContext.java:308)
at
com.google.caja.plugin.PluginCompilerMain.parseInputs(PluginCompilerMain.java:230)
at
com.google.caja.plugin.PluginCompilerMain.run(PluginCompilerMain.java:183)
at
com.google.caja.plugin.PluginCompilerMain.main(PluginCompilerMain.java:381)
E.com.google.caja.plugin.UriFetcher$UriFetchException: unknown:///unknown:0+0:
failed to load external url
file:/tmp/shindig_unittests/caja/uncajoled_cfcd208495d565ef66e7dff9f98764da.html
at
com.google.caja.plugin.UriFetcher$ChainingUriFetcher$1.fetch(UriFetcher.java:91)
at
com.google.caja.parser.ParserContext.guessCharProducer(ParserContext.java:223)
at
com.google.caja.parser.ParserContext.guessCharProducer(ParserContext.java:197)
at com.google.caja.parser.ParserContext.build(ParserContext.java:308)
at
com.google.caja.plugin.PluginCompilerMain.parseInputs(PluginCompilerMain.java:230)
at
com.google.caja.plugin.PluginCompilerMain.run(PluginCompilerMain.java:183)
at
com.google.caja.plugin.PluginCompilerMain.main(PluginCompilerMain.java:381)
Caused by: com.google.caja.plugin.UriFetcher$UriFetchException:
unknown:///unknown:0+0: failed to load external url
file:/tmp/shindig_unittests/caja/uncajoled_cfcd208495d565ef66e7dff9f98764da.html
at
com.google.caja.plugin.DataUriFetcher.fetchBinary(DataUriFetcher.java:84)
at com.google.caja.plugin.DataUriFetcher.fetch(DataUriFetcher.java:75)
at
com.google.caja.plugin.UriFetcher$ChainingUriFetcher$1.fetch(UriFetcher.java:85)
... 6 more
java.lang.IllegalStateException: Not enough arguments to create a CharProducer
at
com.google.caja.parser.ParserContext.guessCharProducer(ParserContext.java:213)
at com.google.caja.parser.ParserContext.build(ParserContext.java:308)
at
com.google.caja.plugin.PluginCompilerMain.parseInputs(PluginCompilerMain.java:230)
at
com.google.caja.plugin.PluginCompilerMain.run(PluginCompilerMain.java:183)
at
com.google.caja.plugin.PluginCompilerMain.main(PluginCompilerMain.java:381)
> Caja for PHP
> -------------
>
> Key: SHINDIG-1550
> URL: https://issues.apache.org/jira/browse/SHINDIG-1550
> Project: Shindig
> Issue Type: New Feature
> Components: PHP
> Environment: Require a JVM installed on the Host
> Reporter: Casiva Agustin
> Priority: Minor
> Labels: caja
> Attachments: caja-bin.tar.gz, caja-php-full.diff,
> core-file-changed-only.diff, gForCaja.xml, php-caja.diff
>
>
> This Patch is for getting working Caja on PHP. To generate the cajoled
> content uses the command line utility of caja.
> The flow is like this
> 1 - The content of the Gadget will be rendered on GadgetHtmlRenderer
> 2 - If the Gadget Requires caja then, GadgetHtmlRenderer saves the uncajoled
> content of the gadget on the file system (location defined on container.php)
> 3 - Then GadgetHtmlRenderer will call to Cajoling class that will take the
> uncajoled content of the gadget and will run the cajole process.
> 4 - After that, Cajoling will return the custom content to run on the Browser
> with the Caja Runtime.
> This patch requires the binaries of Caja installed on the System (I choose
> features/bin/caja-bin for put this files, this can be changed on
> container.php).
> The PHP service requires the exec function to execute the caja process.
> For testing propouse I use a single gadget file (attached to the Issue).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira