Hello I am not an expert but i know the CF2021 Ugr...
# adobe
s
Hello I am not an expert but i know the CF2021 Ugrade to 9 broke wddx, so i reverted back to 8 and its working back again
g
Do you have a simple proof of concept that demonstrates that it's broken? (If so, I'll test using CommandBox to verify and then search our codebase for WDDX. I don't think we're using this format anymore, but I'd rather invest time checking this before any data loss occurs.)
d
We had a couple apps that WDDX broke in an updater due. It had something to do with a java version. I don't remember specifics as we moved away from using WDDX entirely.
d
Broke it like it crashes? Returns incorrect data? What exact commands do that?
s
well, let me see if i can get an error, i do not have much details but i do have have the error details
Exception during WDDX operation. java.lang.StringIndexOutOfBoundsException: String index out of range: 0.
it happens on this line <cfwddx action="wddx" input="#somdata#" OUTPUT="Ixml#">
s
what is the value of #somdata#... also that # in the output attribute would probably cause an error
d
review the available actions for cfwddx 🙂
s
yes, like Dave is mentioning... action="wddx" is not a valid option for that attribute
basically that line of code would error on any version of CF as far as I can tell
d
but I don't get that error. something else is going on, or you're not reporting what you did or the result accurately.
On 2021.0.09.330148, this works without error, returns correct data:
Copy code
<cfscript>
	x = {asdf="qwer", tyui=123};
	writeDump(var=x, label="x");
	cfwddx(action="cfml2wddx", input=x, output="w");
	writeOutput(encodeforhtml(w));
</cfscript>
Result is this:
Copy code
<wddxPacket version='1.0'><header/><data><struct><var name='ASDF'><string>qwer</string></var><var name='TYUI'><number>123.0</number></var></struct></data></wddxPacket>
s
ITS A TYPE MISTAKE
ITS WDDX2CFML
s
you typed it wrong here in slack, or it is wrong in your actual code?
s
WRONG IN SLACL
s
no need for all caps... we can only see what you write in slack. It would be helpful if you can show us a simple example of code that we could use to replicate the error
d
Without seeing the actual code all I can do is guess. But StringIndexOutOfBoundsException is normally caused by trying to reference a string part that doesn't exist. For example doing a left() on a blank string. Seeing that your out of range error is 0 would lead me to believe that something like this is happening.
a
Blimey. Same drill as usual @Simone: don't ask a question without the code, the testing, the expectations and how they failed. How is it after all these years you still can't be arsed showing even the minimum level of respect for your peers (and I use that term very very loosely)? Please stop wasting everyone's time.
☝️ 1
d
Never mind the respect, you won't get good answers without ASKING GOOD QUESTIONS!
💯 1
s
i see i am trolled too much, here is my code which throws an error, i debugged a bit and found i am using a custom function which is causing some issues: https://cflib.org/udf/ungzip
Lucee is great in this case, they have an compress and extract functions, but i can't use those in cf 2021.
d
cfzip
a
Yeah, cfzip has been around since ColdFusion 8. https://cfdocs.org/cfzip
d
@Simone You are not being trolled. People here are genuinely trying to help but you are not providing enough to help you. Multiple people have stated what we need to help but you are not providing that. Providing us the code for a library is not your code. If the library is failing than it would be useful for us to see how you are calling the library. Also, supplying nothing beyond "I got this error" all anyone can do is guess as to what the issue is.
💯 1
s
so is there a close matchup for ungzip, i can try to catch it and use unzip to do it, or both are different things, i can't share the block of encypted code because its has a lot of details we have
but i can share i am using irongate errorhandler which has cuased the issue
this what broke it when using ungzip on the display_this.cfm file
a
What makes you think Irongate is causing the issue? It's just exception management, so ought to only come into play once something has already thrown an exception?
s
i am sure it is, because i reverted back to update 8 and it was working, the moment i upgraded to 9, it broken there and i have also pointed a section where it happened actually
gotta go will be back in 3hours
a
i can't share the block of encypted code because its has a lot of details we have
When you create an sscce (as per sscce.org which I have pointed you to numerous times), you don't show us your production code, you create an sscce that demonstrates the issue. Specific code written that shows the problem. This is basic troubleshooting you ought to be doing, by way of understanding the situation you're dealing with. If you haven't done that step, and don't have code you can share when asked, you need to go away and do that first.
You upgraded IronGate from update 8 to update 9? Where are you even downloading it from? I've googled and can see blog articles about it, all of which "installation is easy, download the zip", but no bloody link to D/L the zip from! TBH though, if IronGate is breaking things, then you should be asking IronGate about it, not us... it's not a CFML issue then really is it? Good luck getting support for it though, given it seems to have stopped being a thing in 2013...
s
well, the compiler of the code is coldfusion, so how you can say don't ask us, its an adobe thing and if some code brokes due to upgrade, its not an issue with the code i have its the new version which broke existing code adn that is responbility of a product vendor to keep existing things working, i raised an issue but instead you are blaming me if i did something wong in code, that is very rude. i tried to be very respful in my posts, but when i am stuck at a problem, i try my best to give as musc information as i want and i have already pointed out, the error5 happens on this line error happens here and file is in administrator/bin/dsp_this.cfm
its a UDF function from cflib. i am not sure if there is any close function to it or unzip should work or not, i am not sure o of it,
probably the java update might have broken it, but i do not know behind the scenes thing
a
You said it happened when you upgrade IronGate:
AC: What makes you think Irongate is causing the issue?
SJ: i am sure it is, because i reverted back to update 8 and it was working, the moment i upgraded to 9,
So that means it's not CF's fault, it's something IronGate is doing differently between versions. Don't get uppity because I point out you're not great at providing us useful info to go on. Instead of getting uppity... pay attn to the advice being given, and act on it.
g
@Adam Cameron I think he is pointing out that he upgraded coldfusion version from update 8 to update 9 because I see the iron gate does not have any versions
a
Well I did wonder and that's why I asked for clarification, and they confirmed. So... like... [shrug].
g
Even I see he has not written any which version of Coldfusion
a
But scrolling back to the beginning of the thread, they're talking about CF2021 u8 -> u9, and ppl have been asking for a repro case since right at the beginning and so far nothing.
s
its Coldfusion 2021 Update 9 breaks the ironf=gate but it works on Coldfusion 2021 Update 8
a
i know the CF2021 Ugrade to 9 broke wddx, so i reverted back to 8 and its working back again
That was over a week ago. So I NFI why they're going on about IronGate causing it. This is just representative of not putting enough effort into communicating, and just wasting everyone's time.
So. We're back to waiting for an SSCCE to demonstrate the problem.
s
i don't understand, what you want me to do tyo show you what went wrong, first thing i cannot share code what i have because its production code but what else i should show
a
Write. Some. Code.
Put some effort into this
Write some stand-alone code that shows the problem.
☝️ 1
Don't just go "can't share the production code". We don't care what you can't show is. Start from scratch, write some code that replicates the problem. I mean... for goodness sake... HOW MANY TIMES have I said to you "read sscce.org" and "read http://www.catb.org/~esr/faqs/smart-questions.html". Actually do that. When you decide you need to ask a question... do all that stuff first.
👍 1
We can't help you unless you can actually show us a case of what's going wrong.
d
I have no idea what the issue is anymore. I think everyone here has put more than enough effort into trying to assist. The OP has yet to provide a clear and concise message as to the issue, what they have tried to resolve it, examples of code that shows the issue. This whole tread is basically. .. This is broke, ok.. let me help This and/or this is broke Can you show me what is broke? This is still broken. (repeat) We should all be done here. I know I am.
a
Agreed @dfgrumpy Why I continue is that @Simone asks a lot of questions here, most of which are the same level of coherency as this one. Given they clearly need a lot of help - which we're also obviously prepared to offer, provided they don't take the piss too much - it would be beneficial for them to know how to to ask for help in a way that helps everyone get to the bottom of the issue. Foolishly I continue to hope that at some stage they actually take on board the advice to "help us to help you", and follow the guidance that I linked to. At least try. It's really helpful guidance, and makes it a lot easier to work through problems. However it does take a small amount of effort and learning, and... well... there's very little evidence of either of those going on here. So in the end it all becomes a waste of everyone's time.
👍 3