Forum Discussion
Brian_69413
Nimbostratus
Nov 12, 2007Conversion error for b64encode
I am encrypting username and password values from the [HTTP::payload] of an HTTP_RESPONSE and decrypting those same values on an HTTP_REQUEST. The values encrypt fine and I can log them as such. The decoding, however, fails saying that there is a conversion error. I have confirmed that it is in fact passing it the the encrypted values and using the same key. Is there something I am missing? Did the encrypted values get messed up when I parse them out of the request?
Thanks for the help!
20 Replies
Sort By
- Deb_Allen_18Historic F5 AccountWiki page updated with accurate notes re: affected versions, and the URI::encode/decode workaround.
- Luke_Lehman
Employee
Hey all,when HTTP_REQUEST { log local0.info "Rule initiated" HTTP::respond 200 content [b64decode [lindex $::banner_png_class 0]] "Content-Type" "image/png" log local0.info "Response Successful" }
- hoolio
Cirrostratus
Which LTM version are you running? Can you take a look at these posts for some ideas and reply here if it still doesn't work? - Luke_Lehman
Employee
Thus far, I've been working in our lab which is running 10.0.0.5401.0. - Luke_Lehman
Employee
OK. Just tried on 9.4.7 320.1 and it worked...hmm, why wouldn't it work in v10? - Luke_Lehman
Employee
Wow. Guess I should have tried everything on v9 earlier on in my testing. - hoolio
Cirrostratus
There could be a bug in 10.0.0. 10.0.1 is out, so you could try upgrading and retesting. - JRahm
Admin
Referencing a class that way in v10 just returns the name of the class. You'll need to use the class command introduced in v10. Check out the bottom example in the wiki page for class: - Luke_Lehman
Employee
Awesome, thanks! - JRahm
Admin
yep, good catch. I updated the wiki. For future reference, if you see these errors, you can edit as well.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects