-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid type of downloaded plugin #201
Comments
Encountered the same problem this morning with the org.intellij.scala:2017.1.15 plugin so this appears to be systemic on the backend. As mentioned above, the downloaded filename now has the query string appended so the check in PluginDependencyManager for file type fails because the downloaded filename no longer ends in ".zip" or ".jar". The plugin-repository-rest-client is hitting the following URL for the scala plugin mentioned above:
As expected, the server is returning a 302 redirect. However, the
and the downloadFile method is calling:
which explains why the filename on disk now has query parameters on it. So it looks like we are broken until plugin-repository-rest-client strips off the query parameters when it is forming the target filename. |
On a related note, while investigating this issue, I noticed that the
|
It would be great if users can customize plugins repo url (and use custom binary artifacts storage, i.e. artifactory, and avoid such problems) |
@lukaville Gradle is flexible enough for this, just download the plugin from anywhere you want and attach it via |
We're going to implement a workaround on the plugins repo side and deploy it tomorrow. The new version of |
@zolotov, I don't want to store binary files in version control repository :( |
Store it in artifactory as you suggested
I don't see any hacks in it and I don't understand why it should be done before dependency resolving. Actually, you can do this as a part of dependency resolving. So, nothing from |
@baron1405 I still not sure how to fix that issue, so I cannot promise, sorry. But I'll definitely take a look at it. |
@zolotov good point about implementing this as part of dependency resolving. Thanks, I'll try it. |
@lukaville actually, I've already implemented a maven interface in plugins repository. It's quite hacky but it can be resolved by default Gradle resolver and cached by artifactory. Here is the description: http://www.jetbrains.org/intellij/sdk/docs/plugin_repository/api/maven_interface.html.
|
Today we rolled back the fix at
|
Works great! Thanks @zolotov for the thoughtful discussion and quick resolution. |
The old version was causing problems when downloading the kotlin plugin due to the server now including query string parameters in the downloaded .zip filename See issue: JetBrains/intellij-platform-gradle-plugin#201
The old version was causing problems when downloading the kotlin plugin due to the server now including query string parameters in the downloaded .zip filename See issue: JetBrains/intellij-platform-gradle-plugin#201 Signed-off-by: Travis Grathwell <tgrathwell@pivotal.io>
Intellij plugin resolving fails with "Invalid type of downloaded plugin" error:
It seems that something changed on jetbrains plugin repository backend. Now name of downloaded file contains GET params:
kotlin-plugin-1.1.1-release-IJ2016.3-1.zip?updateId=33474&pluginId=6954
and zip/jar file type checks fail (https://github.com/JetBrains/gradle-intellij-plugin/blob/master/src/main/groovy/org/jetbrains/intellij/dependency/PluginDependencyManager.groovy#L125).The text was updated successfully, but these errors were encountered: