[
https://issues.apache.org/jira/browse/SLING-12451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17888765#comment-17888765
]
Robert Munteanu commented on SLING-12451:
-----------------------------------------
I am testing the console on top of the latest Sling Starter git version.
1. Create a feature model config file
{noformat} $ cat src/main/features/crypto.json
{
"bundles": [
{
"id": "org.apache.sling:org.apache.sling.commons.crypto:1.1.0",
"start-order": 20
},
{
"id":
"org.apache.servicemix.bundles:org.apache.servicemix.bundles.jasypt:1.9.3_1",
"start-order": 20
}
],
"configurations": {
"org.apache.sling.commons.crypto.internal.EnvironmentVariablePasswordProvider~oauth1":
{
"name": "DUMMY_PASSWORD"
},
"org.apache.sling.commons.crypto.jasypt.internal.JasyptRandomIvGeneratorRegistrar~oauth2":
{
"algorithm": "SHA1PRNG"
},
"org.apache.sling.commons.crypto.jasypt.internal.JasyptStandardPbeStringCryptoService~oauth3":
{
"names": [
"sling-oauth"
],
"algorithm": "PBEWITHHMACSHA512ANDAES_256"
}
}
}
{noformat}
2. Build and launch the starter, providing a dummy password
{noformat} $ rm -rf launcher/ && mvn clean package && DUMMY_PASSWORD=password
target/dependency/org.apache.sling.feature.launcher/bin/launcher -f
target/slingfeature-tmp/feature-oak_tar.json {noformat}
3. Once started, try to use the web console plug-in to encrypt a plaintext value
http://localhost:8080/system/console/sling-commons-crypto-encrypt
With those steps I get the error shown in the description.
This is indeed with {{org.apache.felix:org.apache.felix.http.jetty:5.1.26}} .
> Commons Crypto web console does not show ciphertext after submission
> --------------------------------------------------------------------
>
> Key: SLING-12451
> URL: https://issues.apache.org/jira/browse/SLING-12451
> Project: Sling
> Issue Type: Bug
> Components: Commons
> Reporter: Robert Munteanu
> Assignee: Robert Munteanu
> Priority: Major
> Fix For: Commons Crypto 1.1.2
>
> Attachments: image-2024-10-11-15-17-37-528.png
>
>
> After configuring a {{CryptoService}} instance and navigating to
> [http://localhost:8080/system/console/sling-commons-crypto-encrypt] it should
> be possible to encrypt a message. However, after the submission a generic
> page is displayed
> !image-2024-10-11-15-17-37-528.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)