Okay, I rebuilt flex-sdk-converter-extension on my local machine (it's in
the flex-utilities repo, for anyone interested). If I change the URL for
sdk-installer-config-4.0.xml from http to https, it successfully downloads.

So, for some reason, the 301 redirect is not being handled correctly.
Presumably, something changed on the server. Perhaps it was still serving
http in the past, and it was forced to https more recently.

I found this explanation about redirects in Java:

> After discussion among Java Networking engineers, it is felt that we
shouldn't automatically follow redirect from one protocol to another, for
instance, from http to https and vise versa, doing so may have serious
security consequences. Thus the fix is to return the server responses for
redirect. Check response code and Location header field value for redirect
information. It's the application's responsibility to follow the redirect.

Looks like flex-sdk-converter-extension needs to update this URL and get a
new release, since the redirect from http to https won't work.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Tue, Jan 31, 2023 at 9:24 AM Josh Tynjala <joshtynj...@bowlerhat.dev>
wrote:

> I tried changing to playerglobal 32.0, and it is still failing.
> Interestingly, I see these lower level exceptions in the log when I add the
> -X option to mvn:
>
> Caused by:
> org.apache.flex.utilities.converter.retrievers.exceptions.RetrieverException:
> Error parsing 'sdk-installer-config-4.0.xml'
> Caused by: org.xml.sax.SAXParseException: Premature end of file.
>
> So it's trying to download
> http://flex.apache.org/installer/sdk-installer-config-4.0.xml (where it
> will find the URL to playerglobal.swc), and something is going wrong
> parsing that file.
>
> It seems to be valid XML, so maybe it's getting some kind of error
> document from the web server instead of the proper file.
>
> I'll keep digging...
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Tue, Jan 31, 2023 at 8:47 AM Josh Tynjala <joshtynj...@bowlerhat.dev>
> wrote:
>
>> I seem to recall that Adobe stopped making most older versions of
>> playerglobal.swc available for download from their servers. I think it
>> might be only version 32.0 that's still available.
>>
>> We have flash.version set to 20.0 in our pom.xml:
>>
>> <flash.version>20.0</flash.version>
>>
>> We might need to change that to 32.0.
>>
>> Most of us wouldn't notice that the download wasn't available because we
>> installed playerglobal months/years ago, before Adobe removed their
>> downloads, and the Maven extension probably doesn't try to download it
>> again, if it's already available locally.
>>
>> I'm going to try to see if I can mess with my local Maven cache to
>> trigger this error on my computer.
>>
>> --
>> Josh Tynjala
>> Bowler Hat LLC <https://bowlerhat.dev>
>>
>>
>> On Tue, Jan 31, 2023 at 8:35 AM Josh Tynjala <joshtynj...@bowlerhat.dev>
>> wrote:
>>
>>> We use some kind of Maven plugin/extension that downloads
>>> playerglobal.swc from Adobe.
>>>
>>> I think it's the flex-sdk-converter-maven-extension referenced in
>>> .mvn/extensions.xml
>>>
>>> --
>>> Josh Tynjala
>>> Bowler Hat LLC <https://bowlerhat.dev>
>>>
>>>
>>> On Tue, Jan 31, 2023 at 7:43 AM Yishay Weiss <yishayj...@hotmail.com>
>>> wrote:
>>>
>>>> Compiler release is failing [1] due to playerglobal not being found in
>>>> maven repo. I checked and I can’t find com.adobe.flash there [2] any ideas?
>>>>
>>>> [1] Royale_Release_Step_002 #9 Console [Jenkins] (azure.com)<
>>>> http://apacheroyale.francecentral.cloudapp.azure.com:8080/job/Royale_Release_Step_002/lastBuild/console
>>>> >
>>>> [2] Central Repository: com/adobe (apache.org)<
>>>> https://repo.maven.apache.org/maven2/com/adobe/>
>>>>
>>>

Reply via email to