[jira] [Commented] (COCOON-2352) XMLEncoder doesn't support Unicode surrogate pairs

2016-10-10 Thread Ben Fortuna (JIRA)

[ 
https://issues.apache.org/jira/browse/COCOON-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15563730#comment-15563730
 ] 

Ben Fortuna commented on COCOON-2352:
-

Hmm, I guess from that failed build that you are still maintaining 
compatibility with Java 1.4 (Character.isLowSurrogate() was introduced in 1.5). 
I guess we can work around that although I'm not sure anyone is using Java 1.4 
anymore.. ;)


> XMLEncoder doesn't support Unicode surrogate pairs
> --
>
> Key: COCOON-2352
> URL: https://issues.apache.org/jira/browse/COCOON-2352
> Project: Cocoon
>  Issue Type: Bug
>  Components: * Cocoon Core, Blocks: Serializers
>Affects Versions: 2.1.12
>Reporter: Ben Fortuna
>Assignee: Francesco Chicchiriccò
> Fix For: 2.1.13
>
>
> Whilst investigating an issue with the Sling project and support for emoji 
> characters, I've come to notice that the XMLEncoder used by HTMLSerializer 
> doesn't support Unicode surrogate pairs to represent higher order unicode 
> characters.
> A simple unit test that demonstrates this issue is here:
> https://github.com/micronode/whistlepost/blob/master/whistlepost-rewrite-lib/src/test/groovy/org/apache/cocoon/components/serializers/encoding/XMLEncoderTest.groovy
> More background info here also: SLING-5973
> This seems to have been identified/addressed in other Apache projects also:
> https://issues.apache.org/jira/browse/THRIFT-3403?jql=text%20~%20%22surrogate%20pairs%22



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (COCOON-2355) XSP classes not found when server context path contains multiple directories

2016-10-10 Thread Calvin Simmons (JIRA)

 [ 
https://issues.apache.org/jira/browse/COCOON-2355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Calvin Simmons updated COCOON-2355:
---
Component/s: (was: * Cocoon Core)
 Blocks: XSP

> XSP classes not found when server context path contains multiple directories
> 
>
> Key: COCOON-2355
> URL: https://issues.apache.org/jira/browse/COCOON-2355
> Project: Cocoon
>  Issue Type: Bug
>  Components: Blocks: XSP
>Affects Versions: 2.1.12
>Reporter: Calvin Simmons
>
> Cocoon is unable to access generated xsp classes when a server is configured 
> with a context path more than one level deep. 
> server.xml context:
>  docBase="context" path="/level1/level2"> 
> The class files will be cached with a folder name /level#level2 and when they 
> are accessed a class not found exception will be generated.
> org.apache.cocoon.ProcessingException: Language Exception
> Caused by: org.apache.cocoon.components.language.LanguageException: Could not 
> load class for program 'org\apache\cocoon\www\conf\forms\file_xsp' due to a 
> java.lang.ClassNotFoundException: org.apache.cocoon.www.conf.forms.file_xsp
> at 
> org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProgram(JavaLanguage.java:173)
> at 
> org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:178)
> at 
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loadProgram(ProgramGeneratorImpl.java:410)
> ... 73 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: [DISCUSS] Set minimum JDK version to 1.5 for Cocoon 2.1

2016-10-10 Thread Antonio Gallardo
Hi folks,

+1 for 1.5.

If in the future we have the need to move to a more recent version (ie:
because a patch), then we should discuss it.

Best Regards,

Antonio Gallardo.

On 07/10/16 03:46, Francesco Chicchiriccò wrote:
> Hi all,
> as recently noticed during the (unfortunately rejected) patch for
> COCOON-2354 [1], it might make sense to upgrade the current minimum
> JDK requirement for Cocoon 2.1 from 1.4 to 1.5, mainly to ease some
> upgrades and help Cocoon 2.1 living in the modern world.
>
> Besides 3rd part library updates, some work could be needed to upgrade
> our Java code, so help would be appreciated.
>
> WDYT?
> Regards.
>
> [1]
> https://lists.apache.org/thread.html/c03a2390ddd45b801a25e9946a49276693652870f4f4fbe732d8@%3Cdev.cocoon.apache.org%3E
>



Re: [DISCUSS] Set minimum JDK version to 1.5 for Cocoon 2.1

2016-10-10 Thread Francesco Chicchiriccò

FYI,
another applied patch that we should reject instead, because it requires 
1.5:


https://builds.apache.org/job/Cocoon%202.1.X/111/console

On 08/10/2016 13:14, Francesco Chicchiriccò wrote:

Wow, did not expect this...
To be clear, are you proposing to move to 1.8 the binary AND source 
compatibility?

Even wilder: how would you see moving the 2_1_X branch to GIT with github 
integration, thus allowing us accepting pull requests?

We'll definitely need some help here...
Regards.

Il 8 ottobre 2016 06:43:06 CEST, David Crossley  ha 
scritto:

I agree. It should also enable better participation at both Cocoon
and at Apache Forrest. There were also many supporting products
that could then be updated. Lets go to 8.

-David

Insight 49 wrote:

+1, and I strongly agree with Alfred.

Cocoon 2.1 is a good stable platform, but doesn't encourage new
participation, partly I suspect, because many people and businesses
run Java 8 or 7 (as you know, you get all kinds of build errors when
trying to build cocoon using those Java versions).

If we can upgrade the code, classes and supporting jars, I'd

recommend

Java version 7 or 8.

As an example, the very successful Apache Solr search uses Java 8!

"You will need the Java Runtime Environment (JRE) version 1.8 or

higher."

https://cwiki.apache.org/confluence/display/solr/Installing+Solr

Dan


On 10/7/16, Nathaniel, Alfred  wrote:

+1 but I would go straight to 6, 7, or even 8.
Past experience is that it is a real nuisance trying to support an

ancient

JDK no developer is actually using anymore.

Cheers, Alfred.

-Original Message-
From: Francesco Chicchiriccò [mailto:ilgro...@apache.org]
Sent: Freitag, 7. Oktober 2016 11:46
To: dev@cocoon.apache.org
Subject: [DISCUSS] Set minimum JDK version to 1.5 for Cocoon 2.1

Hi all,
as recently noticed during the (unfortunately rejected) patch for
COCOON-2354 [1], it might make sense to upgrade the current minimum

JDK

requirement for Cocoon 2.1 from 1.4 to 1.5, mainly to ease some

upgrades

and help Cocoon 2.1 living in the modern world.

Besides 3rd part library updates, some work could be needed to

upgrade

our Java code, so help would be appreciated.






--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/



[jira] [Commented] (COCOON-2352) XMLEncoder doesn't support Unicode surrogate pairs

2016-10-10 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/COCOON-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15561631#comment-15561631
 ] 

Hudson commented on COCOON-2352:


FAILURE: Integrated in Jenkins build Cocoon 2.1.X #111 (See 
[https://builds.apache.org/job/Cocoon%202.1.X/111/])
[COCOON-2352] Support for Unicode surrogate pairs - This closes #1 (ilgrosso: 
[http://svn.apache.org/viewvc/?view=rev=1764023])
* (edit) 
BRANCH_2_1_X/src/blocks/serializers/java/org/apache/cocoon/components/serializers/EncodingSerializer.java
* (edit) 
BRANCH_2_1_X/src/blocks/serializers/java/org/apache/cocoon/components/serializers/encoding/XMLEncoder.java
* (add) BRANCH_2_1_X/src/blocks/serializers/test
* (add) BRANCH_2_1_X/src/blocks/serializers/test/org
* (add) BRANCH_2_1_X/src/blocks/serializers/test/org/apache
* (add) BRANCH_2_1_X/src/blocks/serializers/test/org/apache/cocoon
* (add) BRANCH_2_1_X/src/blocks/serializers/test/org/apache/cocoon/components
* (add) 
BRANCH_2_1_X/src/blocks/serializers/test/org/apache/cocoon/components/serializers
* (add) 
BRANCH_2_1_X/src/blocks/serializers/test/org/apache/cocoon/components/serializers/encoding
* (add) 
BRANCH_2_1_X/src/blocks/serializers/test/org/apache/cocoon/components/serializers/encoding/XMLEncoderTestCase.java


> XMLEncoder doesn't support Unicode surrogate pairs
> --
>
> Key: COCOON-2352
> URL: https://issues.apache.org/jira/browse/COCOON-2352
> Project: Cocoon
>  Issue Type: Bug
>  Components: * Cocoon Core, Blocks: Serializers
>Affects Versions: 2.1.12
>Reporter: Ben Fortuna
>Assignee: Francesco Chicchiriccò
> Fix For: 2.1.13
>
>
> Whilst investigating an issue with the Sling project and support for emoji 
> characters, I've come to notice that the XMLEncoder used by HTMLSerializer 
> doesn't support Unicode surrogate pairs to represent higher order unicode 
> characters.
> A simple unit test that demonstrates this issue is here:
> https://github.com/micronode/whistlepost/blob/master/whistlepost-rewrite-lib/src/test/groovy/org/apache/cocoon/components/serializers/encoding/XMLEncoderTest.groovy
> More background info here also: SLING-5973
> This seems to have been identified/addressed in other Apache projects also:
> https://issues.apache.org/jira/browse/THRIFT-3403?jql=text%20~%20%22surrogate%20pairs%22



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (COCOON-2352) XMLEncoder doesn't support Unicode surrogate pairs

2016-10-10 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/COCOON-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Francesco Chicchiriccò updated COCOON-2352:
---
Fix Version/s: 2.1.13

> XMLEncoder doesn't support Unicode surrogate pairs
> --
>
> Key: COCOON-2352
> URL: https://issues.apache.org/jira/browse/COCOON-2352
> Project: Cocoon
>  Issue Type: Bug
>  Components: * Cocoon Core, Blocks: Serializers
>Affects Versions: 2.1.12
>Reporter: Ben Fortuna
>Assignee: Francesco Chicchiriccò
> Fix For: 2.1.13
>
>
> Whilst investigating an issue with the Sling project and support for emoji 
> characters, I've come to notice that the XMLEncoder used by HTMLSerializer 
> doesn't support Unicode surrogate pairs to represent higher order unicode 
> characters.
> A simple unit test that demonstrates this issue is here:
> https://github.com/micronode/whistlepost/blob/master/whistlepost-rewrite-lib/src/test/groovy/org/apache/cocoon/components/serializers/encoding/XMLEncoderTest.groovy
> More background info here also: SLING-5973
> This seems to have been identified/addressed in other Apache projects also:
> https://issues.apache.org/jira/browse/THRIFT-3403?jql=text%20~%20%22surrogate%20pairs%22



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (COCOON-2352) XMLEncoder doesn't support Unicode surrogate pairs

2016-10-10 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/COCOON-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Francesco Chicchiriccò updated COCOON-2352:
---
Affects Version/s: 2.1.12

> XMLEncoder doesn't support Unicode surrogate pairs
> --
>
> Key: COCOON-2352
> URL: https://issues.apache.org/jira/browse/COCOON-2352
> Project: Cocoon
>  Issue Type: Bug
>  Components: * Cocoon Core, Blocks: Serializers
>Affects Versions: 2.1.12
>Reporter: Ben Fortuna
>Assignee: Francesco Chicchiriccò
> Fix For: 2.1.13
>
>
> Whilst investigating an issue with the Sling project and support for emoji 
> characters, I've come to notice that the XMLEncoder used by HTMLSerializer 
> doesn't support Unicode surrogate pairs to represent higher order unicode 
> characters.
> A simple unit test that demonstrates this issue is here:
> https://github.com/micronode/whistlepost/blob/master/whistlepost-rewrite-lib/src/test/groovy/org/apache/cocoon/components/serializers/encoding/XMLEncoderTest.groovy
> More background info here also: SLING-5973
> This seems to have been identified/addressed in other Apache projects also:
> https://issues.apache.org/jira/browse/THRIFT-3403?jql=text%20~%20%22surrogate%20pairs%22



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Assigned] (COCOON-2352) XMLEncoder doesn't support Unicode surrogate pairs

2016-10-10 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/COCOON-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Francesco Chicchiriccò reassigned COCOON-2352:
--

Assignee: Francesco Chicchiriccò

> XMLEncoder doesn't support Unicode surrogate pairs
> --
>
> Key: COCOON-2352
> URL: https://issues.apache.org/jira/browse/COCOON-2352
> Project: Cocoon
>  Issue Type: Bug
>  Components: * Cocoon Core, Blocks: Serializers
>Reporter: Ben Fortuna
>Assignee: Francesco Chicchiriccò
>
> Whilst investigating an issue with the Sling project and support for emoji 
> characters, I've come to notice that the XMLEncoder used by HTMLSerializer 
> doesn't support Unicode surrogate pairs to represent higher order unicode 
> characters.
> A simple unit test that demonstrates this issue is here:
> https://github.com/micronode/whistlepost/blob/master/whistlepost-rewrite-lib/src/test/groovy/org/apache/cocoon/components/serializers/encoding/XMLEncoderTest.groovy
> More background info here also: SLING-5973
> This seems to have been identified/addressed in other Apache projects also:
> https://issues.apache.org/jira/browse/THRIFT-3403?jql=text%20~%20%22surrogate%20pairs%22



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (COCOON-2352) XMLEncoder doesn't support Unicode surrogate pairs

2016-10-10 Thread JIRA

[ 
https://issues.apache.org/jira/browse/COCOON-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15561543#comment-15561543
 ] 

Francesco Chicchiriccò commented on COCOON-2352:


Hi [~fortuna], thanks for your PR (which is also the very first coming from 
github, wow...)!

As you can see from [1] (I had to download the PR as diff, then rework it a bit 
to make it compatible with Cocoon 2.1 JUnit tests [2]), your changes are now 
incorporated.
I have also added [3] to properly handle XMLEncoder#highSurrogate 
re-initialization.

Shall we close this issue, then?

[1] http://svn.apache.org/viewvc?view=revision=1764023
[2] http://cocoon.apache.org/2.1/installing/tests.html
[3] 
http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/serializers/java/org/apache/cocoon/components/serializers/EncodingSerializer.java?r1=1764023=1764022=1764023

> XMLEncoder doesn't support Unicode surrogate pairs
> --
>
> Key: COCOON-2352
> URL: https://issues.apache.org/jira/browse/COCOON-2352
> Project: Cocoon
>  Issue Type: Bug
>  Components: * Cocoon Core, Blocks: Serializers
>Reporter: Ben Fortuna
>
> Whilst investigating an issue with the Sling project and support for emoji 
> characters, I've come to notice that the XMLEncoder used by HTMLSerializer 
> doesn't support Unicode surrogate pairs to represent higher order unicode 
> characters.
> A simple unit test that demonstrates this issue is here:
> https://github.com/micronode/whistlepost/blob/master/whistlepost-rewrite-lib/src/test/groovy/org/apache/cocoon/components/serializers/encoding/XMLEncoderTest.groovy
> More background info here also: SLING-5973
> This seems to have been identified/addressed in other Apache projects also:
> https://issues.apache.org/jira/browse/THRIFT-3403?jql=text%20~%20%22surrogate%20pairs%22



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (COCOON-2352) XMLEncoder doesn't support Unicode surrogate pairs

2016-10-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/COCOON-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15561538#comment-15561538
 ] 

ASF GitHub Bot commented on COCOON-2352:


Github user asfgit closed the pull request at:

https://github.com/apache/cocoon/pull/1


> XMLEncoder doesn't support Unicode surrogate pairs
> --
>
> Key: COCOON-2352
> URL: https://issues.apache.org/jira/browse/COCOON-2352
> Project: Cocoon
>  Issue Type: Bug
>  Components: * Cocoon Core, Blocks: Serializers
>Reporter: Ben Fortuna
>
> Whilst investigating an issue with the Sling project and support for emoji 
> characters, I've come to notice that the XMLEncoder used by HTMLSerializer 
> doesn't support Unicode surrogate pairs to represent higher order unicode 
> characters.
> A simple unit test that demonstrates this issue is here:
> https://github.com/micronode/whistlepost/blob/master/whistlepost-rewrite-lib/src/test/groovy/org/apache/cocoon/components/serializers/encoding/XMLEncoderTest.groovy
> More background info here also: SLING-5973
> This seems to have been identified/addressed in other Apache projects also:
> https://issues.apache.org/jira/browse/THRIFT-3403?jql=text%20~%20%22surrogate%20pairs%22



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)