[
https://issues.apache.org/jira/browse/SLING-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Santiago Gala updated SLING-2613:
---------------------------------
Description:
# start in a clean place
cd /tmp
rm -Rf sling
# download sling standalone (pick your own mirror if needed)
wget http://apache.rediris.es/sling/org.apache.sling.launchpad-6-standalone.jar
# run it in the background
java -jar org.apache.sling.launchpad-6-standalone.jar &
pid=$!
# wait a couple of minutes for it to settle down
sleep 120
curl http://localhost:8080/apps.tidy.json
#{
# "jcr:createdBy": "admin",
# "jcr:created": "Thu Oct 04 2012 15:23:35 GMT+0200",
# "jcr:primaryType": "sling:Folder"
#}
# add a property
curl -D - -Ld "español=sánchez" http://admin:admin@localhost:8080/apps.tidy.json
#... blah blah ...
# recover it again...
curl http://localhost:8080/apps.tidy.json
#{
# "español": "sánchez",
# "jcr:createdBy": "admin",
# "jcr:created": "Thu Oct 04 2012 15:23:35 GMT+0200",
# "jcr:primaryType": "sling:Folder"
# OOPS, it is doubly encoded...
# my locale is es_ES.UTF-8, a standard ubuntu 12.04.1 install
kill -1 $pid
was:
# start in a clean place
cd /tmp
rm -Rf slinng
# download sling standalone (pick your own mirror if needed)
wget http://apache.rediris.es/sling/org.apache.sling.launchpad-6-standalone.jar
# run it in the background
java -jar org.apache.sling.launchpad-6-standalone.jar &
pid=$!
# wait a couple of minutes for it to settle down
sleep 120
curl http://localhost:8080/apps.tidy.json
#{
# "jcr:createdBy": "admin",
# "jcr:created": "Thu Oct 04 2012 15:23:35 GMT+0200",
# "jcr:primaryType": "sling:Folder"
#}
# add a property
curl -D - -Ld "español=sánchez" http://admin:admin@localhost:8080/apps.tidy.json
#... blah blah ...
# recover it again...
curl http://localhost:8080/apps.tidy.json
#{
# "español": "sánchez",
# "jcr:createdBy": "admin",
# "jcr:created": "Thu Oct 04 2012 15:23:35 GMT+0200",
# "jcr:primaryType": "sling:Folder"
# OOPS, it is doubly encoded...
# my locale is es_ES.UTF-8, a standard ubuntu 12.04.1 install
kill -1 $pid
> Sling double encodes posted data
> --------------------------------
>
> Key: SLING-2613
> URL: https://issues.apache.org/jira/browse/SLING-2613
> Project: Sling
> Issue Type: Bug
> Environment: Ubuntu linux 12.04.1
> Reporter: Santiago Gala
> Labels: i18n
>
> # start in a clean place
> cd /tmp
> rm -Rf sling
> # download sling standalone (pick your own mirror if needed)
> wget
> http://apache.rediris.es/sling/org.apache.sling.launchpad-6-standalone.jar
> # run it in the background
> java -jar org.apache.sling.launchpad-6-standalone.jar &
> pid=$!
> # wait a couple of minutes for it to settle down
> sleep 120
> curl http://localhost:8080/apps.tidy.json
> #{
> # "jcr:createdBy": "admin",
> # "jcr:created": "Thu Oct 04 2012 15:23:35 GMT+0200",
> # "jcr:primaryType": "sling:Folder"
> #}
> # add a property
> curl -D - -Ld "español=sánchez"
> http://admin:admin@localhost:8080/apps.tidy.json
> #... blah blah ...
> # recover it again...
> curl http://localhost:8080/apps.tidy.json
> #{
> # "español": "sánchez",
> # "jcr:createdBy": "admin",
> # "jcr:created": "Thu Oct 04 2012 15:23:35 GMT+0200",
> # "jcr:primaryType": "sling:Folder"
> # OOPS, it is doubly encoded...
> # my locale is es_ES.UTF-8, a standard ubuntu 12.04.1 install
> kill -1 $pid
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira