Commit Graph

49 Commits

Author SHA1 Message Date
Martin Lippert
c04aade997 added spel syntax validation for xml spring config files 2020-07-25 12:06:54 +02:00
Martin Lippert
f5a5599686 enable SpEL syntax validation for anntation hierarchies and fixed additional test cases 2020-07-13 16:26:18 +02:00
Martin Lippert
11df688a3d refactored spel syntax validation and enabled it for additional annotations and named parameters 2020-07-11 22:09:04 +02:00
Kris De Volder
a873fcf7ee Fix for GH_449 2020-04-17 12:02:28 -07:00
Kris De Volder
02d2da126c Fix for https://github.com/spring-projects/sts4/issues/404
... with regression test.
2020-03-17 09:16:53 -07:00
Martin Lippert
b466676eee optimize handling of type dependencies when scanning symbols to avoid keeping track of self-references and binary types 2020-02-14 18:03:30 +01:00
Martin Lippert
6413bcb7cc initial change towards multi-file symbol indexing on change events 2020-01-29 16:27:03 +01:00
Kris De Volder
0ac214b7ca Improve support for nested property goto definition..
... in application.yml

See: https://www.pivotaltracker.com/story/show/169240253
2019-11-07 10:04:36 -08:00
BoykoAlex
39e8d4a769 PT #168807109: Switch XML scanning to specific folders rather than globs 2019-10-03 19:01:15 -04:00
BoykoAlex
63a5a7ecbb Update XML indexer config in single future 2019-09-13 14:33:54 -04:00
Martin Lippert
4d7f9b127c https fix 2019-07-28 17:24:48 +02:00
Kris De Volder
61c79f5281 Another attempt to fix test failures 2019-07-26 09:10:19 -07:00
Kris De Volder
bd061a4ec3 Take superclass into account for properties CTRL-click
See: https://github.com/spring-projects/sts4/issues/326
2019-07-25 13:11:14 -07:00
Kris De Volder
dd98511c1c Regression tests for symbol dependency handling 2019-06-14 15:45:13 -07:00
BoykoAlex
93d7b0290e PT #163378521: Test added 2019-05-17 14:40:01 -04:00
BoykoAlex
e3e9d5cfda Missing piece of a test project 2019-05-09 16:23:27 -04:00
BoykoAlex
14dfc325c8 XML bean property names: include super classes in the lookup 2019-05-09 15:50:54 -04:00
BoykoAlex
3b396e975f PT #165419026: Hyperlinks in XML config files 2019-05-08 11:39:00 -04:00
BoykoAlex
652f5dcbcd PT #165080768, #165662425: Selective Java, XML symbol scanning 2019-05-05 23:23:33 -04:00
Martin Lippert
473c8a1b78 support constant value extraction for request mapping symbols for constants from the same class than the request mapping 2019-05-02 09:36:29 +02:00
Martin Lippert
0b8a952e55 resolve constants within the AST to get real value instead of constant name 2019-04-30 09:44:25 +02:00
BoykoAlex
3dd1c2dfd0 PT #164943593: XML bean scanning exclude output folders and pom 2019-04-02 21:58:58 -04:00
Spring Operator
af8b7f975d URL Cleanup. RMs not on localhost https URL.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* [ ] http://gophercloud.io/docs/ (200) with 1 occurrences could not be migrated:
   ([https](https://gophercloud.io/docs/) result SSLHandshakeException).
* [ ] http://man7.org/linux/man-pages/man7/glob.7.html (200) with 1 occurrences could not be migrated:
   ([https](https://man7.org/linux/man-pages/man7/glob.7.html) result AnnotatedConnectException).
* [ ] http://services.typefox.io/open-source/jenkins/job/lsp4j/job/master/lastStableBuild/artifact/build/p2-repository/ (200) with 1 occurrences could not be migrated:
   ([https](https://services.typefox.io/open-source/jenkins/job/lsp4j/job/master/lastStableBuild/artifact/build/p2-repository/) result SSLHandshakeException).

These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* [ ] http://cfapps.io:1000/hello (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1000/hello ([https](https://cfapps.io:1000/hello) result ConnectTimeoutException).
* [ ] http://cfapps.io:1001/hello (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1001/hello ([https](https://cfapps.io:1001/hello) result ConnectTimeoutException).
* [ ] http://cfapps.io:1002/hello (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1002/hello ([https](https://cfapps.io:1002/hello) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/ (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1111/ ([https](https://cfapps.io:1111/) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/fromEnv/hello-world (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1111/fromEnv/hello-world ([https](https://cfapps.io:1111/fromEnv/hello-world) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/fromenvironment/hello-world (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1111/fromenvironment/hello-world ([https](https://cfapps.io:1111/fromenvironment/hello-world) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/fromlaunchconfig/hello-world (ConnectTimeoutException) with 10 occurrences migrated to:
  https://cfapps.io:1111/fromlaunchconfig/hello-world ([https](https://cfapps.io:1111/fromlaunchconfig/hello-world) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/frompropsfile/hello-world (ConnectTimeoutException) with 8 occurrences migrated to:
  https://cfapps.io:1111/frompropsfile/hello-world ([https](https://cfapps.io:1111/frompropsfile/hello-world) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/hello-world (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1111/hello-world ([https](https://cfapps.io:1111/hello-world) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/inner-class (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1111/inner-class ([https](https://cfapps.io:1111/inner-class) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/inner-inner-class (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1111/inner-inner-class ([https](https://cfapps.io:1111/inner-inner-class) result ConnectTimeoutException).
* [ ] http://cfapps.io:1111/mockedpath/hello-world (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:1111/mockedpath/hello-world ([https](https://cfapps.io:1111/mockedpath/hello-world) result ConnectTimeoutException).
* [ ] http://cfapps.io:999/find (ConnectTimeoutException) with 14 occurrences migrated to:
  https://cfapps.io:999/find ([https](https://cfapps.io:999/find) result ConnectTimeoutException).
* [ ] http://cfapps.io:999/goodbye (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:999/goodbye ([https](https://cfapps.io:999/goodbye) result ConnectTimeoutException).
* [ ] http://cfapps.io:999/greetings (ConnectTimeoutException) with 4 occurrences migrated to:
  https://cfapps.io:999/greetings ([https](https://cfapps.io:999/greetings) result ConnectTimeoutException).
* [ ] http://cfapps.io:999/hello (ConnectTimeoutException) with 4 occurrences migrated to:
  https://cfapps.io:999/hello ([https](https://cfapps.io:999/hello) result ConnectTimeoutException).
* [ ] http://cfapps.io:999/mockedpath/greetings (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:999/mockedpath/greetings ([https](https://cfapps.io:999/mockedpath/greetings) result ConnectTimeoutException).
* [ ] http://cfapps.io:999/mockedpath/hello (ConnectTimeoutException) with 2 occurrences migrated to:
  https://cfapps.io:999/mockedpath/hello ([https](https://cfapps.io:999/mockedpath/hello) result ConnectTimeoutException).
* [ ] http://cloud-controller-ng.service.cf.internal:9022 (UnknownHostException) with 1 occurrences migrated to:
  https://cloud-controller-ng.service.cf.internal:9022 ([https](https://cloud-controller-ng.service.cf.internal:9022) result UnknownHostException).
* [ ] http://org.eclipse.ui.intro/execute?command= (UnknownHostException) with 2 occurrences migrated to:
  https://org.eclipse.ui.intro/execute?command= ([https](https://org.eclipse.ui.intro/execute?command=) result UnknownHostException).
* [ ] http://dist.springsource.com/snapshot/TOOLS/sts4-language-server-integrations/nightly (403) with 1 occurrences migrated to:
  https://dist.springsource.com/snapshot/TOOLS/sts4-language-server-integrations/nightly ([https](https://dist.springsource.com/snapshot/TOOLS/sts4-language-server-integrations/nightly) result 403).
* [ ] http://foobar.com/munhings.tar.gz (404) with 1 occurrences migrated to:
  https://foobar.com/munhings.tar.gz ([https](https://foobar.com/munhings.tar.gz) result 404).

These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://dist.springsource.com/snapshot/STS4/nightly-distributions.html with 5 occurrences migrated to:
  https://dist.springsource.com/snapshot/STS4/nightly-distributions.html ([https](https://dist.springsource.com/snapshot/STS4/nightly-distributions.html) result 200).
* [ ] http://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html with 1 occurrences migrated to:
  https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html ([https](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) result 200).
* [ ] http://maven.apache.org/xsd/maven-4.0.0.xsd with 2 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* [ ] http://stackoverflow.com with 1 occurrences migrated to:
  https://stackoverflow.com ([https](https://stackoverflow.com) result 200).
* [ ] http://stackoverflow.com/questions/6132529/antlr-parsing-java-properties with 1 occurrences migrated to:
  https://stackoverflow.com/questions/6132529/antlr-parsing-java-properties ([https](https://stackoverflow.com/questions/6132529/antlr-parsing-java-properties) result 200).
* [ ] http://stackoverflow.com/tags/spring-tools-4 with 1 occurrences migrated to:
  https://stackoverflow.com/tags/spring-tools-4 ([https](https://stackoverflow.com/tags/spring-tools-4) result 200).
* [ ] http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html with 1 occurrences migrated to:
  https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ([https](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) result 200).
* [ ] http://www.apple.com/DTDs/PropertyList-1.0.dtd with 7 occurrences migrated to:
  https://www.apple.com/DTDs/PropertyList-1.0.dtd ([https](https://www.apple.com/DTDs/PropertyList-1.0.dtd) result 200).
* [ ] http://www.eclipse.org/legal/epl-v10.html with 64 occurrences migrated to:
  https://www.eclipse.org/legal/epl-v10.html ([https](https://www.eclipse.org/legal/epl-v10.html) result 200).
* [ ] http://www.java.com/en/download/help/error_hotspot.xml with 1 occurrences migrated to:
  https://www.java.com/en/download/help/error_hotspot.xml ([https](https://www.java.com/en/download/help/error_hotspot.xml) result 200).
* [ ] http://www.springframework.org/schema/beans/spring-beans.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200).
* [ ] http://www.springframework.org/schema/context/spring-context.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/context/spring-context.xsd ([https](https://www.springframework.org/schema/context/spring-context.xsd) result 200).
* [ ] http://www.springframework.org/schema/data/jpa/spring-jpa.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/data/jpa/spring-jpa.xsd ([https](https://www.springframework.org/schema/data/jpa/spring-jpa.xsd) result 200).
* [ ] http://www.springframework.org/schema/tx/spring-tx.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/tx/spring-tx.xsd ([https](https://www.springframework.org/schema/tx/spring-tx.xsd) result 200).
* [ ] http://contributor-covenant.org with 1 occurrences migrated to:
  https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301).
* [ ] http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
  https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301).

These URLs were intentionally ignored.

* http://localhost:3000 with 8 occurrences
* http://localhost:8080/greeting with 1 occurrences
* http://localhost:9000 with 6 occurrences
* http://maven.apache.org/POM/4.0.0 with 4 occurrences
* http://www.springframework.org/schema/beans with 4 occurrences
* http://www.springframework.org/schema/context with 2 occurrences
* http://www.springframework.org/schema/data/jpa with 2 occurrences
* http://www.springframework.org/schema/p with 1 occurrences
* http://www.springframework.org/schema/tx with 2 occurrences
* http://www.w3.org/1999/XSL/Transform with 4 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 3 occurrences

Create https URLs for RMs not on local host
2019-03-21 12:02:19 -04:00
Spring Operator
e2d604f023 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* http://my.repository.com/repo/path (200) with 1 occurrences could not be migrated:
   ([https](https://my.repository.com/repo/path) result SSLHandshakeException).

These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://sha256timestamp.ws.symantec.com/sha256/timestamp (InvalidMediaTypeException) with 3 occurrences migrated to:
  https://sha256timestamp.ws.symantec.com/sha256/timestamp ([https](https://sha256timestamp.ws.symantec.com/sha256/timestamp) result ConnectTimeoutException).
* http://www.myhost.com/maven/jdk14 (500) with 1 occurrences migrated to:
  https://www.myhost.com/maven/jdk14 ([https](https://www.myhost.com/maven/jdk14) result 500).

These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://dist.springsource.com/release/TOOLS/third-party/misc-p2-repo/ with 1 occurrences migrated to:
  https://dist.springsource.com/release/TOOLS/third-party/misc-p2-repo/ ([https](https://dist.springsource.com/release/TOOLS/third-party/misc-p2-repo/) result 200).
* http://maven.apache.org/xsd/settings-1.0.0.xsd with 1 occurrences migrated to:
  https://maven.apache.org/xsd/settings-1.0.0.xsd ([https](https://maven.apache.org/xsd/settings-1.0.0.xsd) result 200).
* http://spring.io/tools with 3 occurrences migrated to:
  https://spring.io/tools ([https](https://spring.io/tools) result 200).
* http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html with 1 occurrences migrated to:
  https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html ([https](https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html) result 200).
* http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html with 1 occurrences migrated to:
  https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html ([https](https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html) result 200).
* http://www.springframework.org/schema/beans/spring-beans.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200).
* http://www.pivotal.io with 1 occurrences migrated to:
  https://www.pivotal.io ([https](https://www.pivotal.io) result 301).

These URLs were intentionally ignored.

* http://maven.apache.org/SETTINGS/1.0.0 with 2 occurrences
* http://www.springframework.org/schema/beans with 2 occurrences
* http://www.springframework.org/schema/p with 1 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 2 occurrences

Revert timestamp switch
2019-03-20 13:45:27 -04:00
Spring Operator
4d43e68820 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* http://sha256timestamp.ws.symantec.com/sha256/timestamp (400) migrated to:
  http://sha256timestamp.ws.symantec.com/sha256/timestamp ([https](https://sha256timestamp.ws.symantec.com/sha256/timestamp) result ConnectTimeoutException).
* http://s3-test.spring.io/sts4/vscode-extensions/ (403) migrated to:
  http://s3-test.spring.io/sts4/vscode-extensions/ ([https](https://s3-test.spring.io/sts4/vscode-extensions/) result SSLHandshakeException).

# Fixed URLs

## Fixed Success
These URLs were fixed successfully.

* http://www.apache.org/licenses/LICENSE-2.0 migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-06 00:05:19 -06:00
Martin Lippert
a261770210 housekeeping 2019-02-27 11:38:40 +01:00
BoykoAlex
2b2413ee60 JDT LS based index for searches and refactorings to replace Jandex 2019-02-22 17:23:22 -05:00
Martin Lippert
891e65e4bd take XML bean definitions without explicit bean ID into account when creating symbols 2019-02-06 14:54:28 +01:00
Martin Lippert
daca3514df enable workspace symbol queries to be parameterized with location prefixes and unlimited number of results 2019-01-31 10:27:54 +01:00
Martin Lippert
9ab5cd6c8d refactored the spring symbol indexing mechanics, extracted the overall mechanism from the java specific parts to open it up for other file types 2019-01-15 09:19:20 +01:00
Martin Lippert
9d6c5584cf added test case for indexing symbols for regular non-boot spring projects 2018-12-28 09:32:24 +01:00
BoykoAlex
4184d049bd PT #160496285: Fix Properties TypeUtil to find inner enums in the index 2018-12-13 17:32:35 -05:00
Martin Lippert
58cdc2d703 first version of re-introduced content-assist for spring data repositories 2018-11-13 21:18:50 +01:00
Kris De Volder
49ef8dcf3f Show proper description with valuehints from metadata 2018-11-09 14:07:46 -08:00
BoykoAlex
f2be2c717b PT #155474415: CTRL-CLICK navigation from .properties to Java 2018-11-07 16:35:07 -05:00
Kris De Volder
b190c8fe2c Add mvn wrapper to test cloud-rabbit test projects
It is required for CI build
2018-10-23 12:22:58 -07:00
Kris De Volder
d8314683be Fix issue with nested project classpath finder
Choose the most nested project in case of ambiguity.
2018-10-23 11:10:16 -07:00
Kris De Volder
248098112e Take inherited pojo properties into account
In yaml / properties editor.
2018-10-22 16:49:39 -07:00
Kris De Volder
6717306d8f Convert language servers to Boot apps 2018-10-02 15:39:15 -07:00
Martin Lippert
64e7bbad45 firt rough cut to include conditional and profile annotations in bean symbols instead of their own ones 2018-08-07 15:11:05 +02:00
Martin Lippert
44a8e43861 added missing empty application.yml file back for empty boot test project, otherwise random failures 2018-08-03 11:52:08 +02:00
Kris De Volder
0b1b5cdf2a Fix https://www.pivotaltracker.com/story/show/153107266
Completions inside of @Value(...) context now also suggest 'ad-hoc' properties
that are defined in application.properties or application.yml (in addition to
regular properties defined via @ConfigurationProperties).
2018-08-01 15:23:57 -07:00
Kris De Volder
1383fff41d Treat @Inject as synonymous to @Autowired 2018-07-06 15:24:10 -07:00
Martin Lippert
36ddd52f82 take content and accept types into account for annotation-defined request mapping symbols 2018-03-12 14:35:04 +01:00
Martin Lippert
62f975d74c added more complex nested webflux router case and extracted symbol generation logic for routes 2018-03-11 20:08:46 +01:00
Martin Lippert
3023bc22e8 further improvements to webflux symbol and code lens analysis, including content and accept type identification 2018-03-11 08:24:33 +01:00
Martin Lippert
7328932b7c added media types to webflux symbol and code lens logic 2018-03-08 13:28:23 +01:00
Martin Lippert
bdebabf696 ignore abstract bean definition methods while scanning for bean symbols 2018-03-06 11:24:29 +01:00
Kris De Volder
27859bf670 Remove commons-boot 2018-02-26 12:14:26 -08:00