1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-06-06 18:30:51 +00:00
Commit Graph

28 Commits

Author SHA1 Message Date
HeinrichAD
09a7ce4973 add security features + java property support
- set `ALLOW_PLANTUML_INCLUDE` only once and decentralized inside the `DiagramResponse` class and call this init method after initializing the server
- set `PLANTUML_SECURITY_PROFILE` to `INTERNET` by default (BREAKING CHANGES)
- add possibility to set PlantUML system properties over a file with `PLANTUML_PROPERTY_FILE`
- adjust documentation
- add "Breaking changes" hint to README
2023-06-13 22:57:07 +02:00
Florian
ec7b9f9b1a Add metadata Servlet
- add new servlet to get meta data from PlantUML diagram
- meta data get not only be requested as text but also as json if you set the `Accept`-header to json
- add `metadata` servlet tests
- GET: like the Proxy where you can pass a URL which the servlet will use to fetch the diagram image
- POST: file upload
2023-05-11 21:34:32 +02:00
Florian
6538be2047 fix: PDF servlet
Since the update of `bastik` the PDF servlet didn't work anymore.

Problems:
- No PDF UnitTest existed
- Pom dependency `org.apache.xmlgraphics.batik-all` change nearly every dependency to `optional` starting with version `1.15`, hence some important dependencies like the SVG converter were missing
- `DiagramResponse.CONTENT_TYPE` had no mime type value for PDF

Changes:
- add PDF UnitTest
- remove `batik-all` dependency and only include the dependencies PlantUML requires for the PDF generation:
  * batik-dom
  * batik-svgrasterizer (includes batik-dom)
  * batik-svggen
  * fop
- remove own `DiagramResponse.CONTENT_TYPE` mapping and use `FileFormat.getMimeType()`
2023-05-09 19:45:21 +02:00
Florian
e6566b58bd revert missing tests + small fixes
- revert the 4 missing tests, e.g. proxy test from commit 20468f5
- add virtual host name `test.localhost` to embedded jetty server
  (JUnit Tests) since localhost and IP-Addresses are no longer
  supported by the proxy and use this address inside proxy `src`
- add `test-localhost` support for the docker tests. To support
  this the docker hostname need to be set to test.localhost by:
  `--hostname=test.localhost` (only for the docker tests)
- proxy: add file format support for PDF
- proxy: add error messages on "bad request" response
- proxy: remove dead code
- old proxy: add error messages on "bad request" response
- fix incorrect README link to docs
- add `HTTP_PROXY_READ_TIMEOUT` option -- close #240
2023-05-04 18:30:58 -04:00
Arnaud Roques
20468f5bd9 Temporary remove tests 2022-12-06 19:18:43 +01:00
Arnaud Roques
df9c10604a improve tests 2022-12-06 19:06:00 +01:00
Arnaud Roques
0154160c7d Improve tests 2022-12-06 18:52:30 +01:00
Arnaud Roques
4d65def8bb Improve proxy management 2022-12-06 18:42:54 +01:00
aadrian
2d011e233e The ProxyServlet should handle maps too. 2022-06-29 23:35:41 +02:00
Florian
9cb9cec6ca update jetty and tomcat to latest version 2021-10-17 18:46:03 +02:00
Florian
deda3c2256 update + restructure pom and add missing javadoc 2021-10-13 12:25:18 +02:00
Florian
098e630a28 update and fix checkstyle and javadoc plugins 2021-10-11 19:22:18 +02:00
Florian
8d5be87f03 update junit test classes and there dependencies 2021-10-11 18:43:18 +02:00
Arnaud Roques
9bc56edca6 Fix security #122 2019-09-26 19:13:07 +02:00
Arnaud Roques
83138142c5 Fix security #122 2019-09-26 19:08:48 +02:00
Norbert.Nogacki@tomtom.com
a53416b4da Added support for Authorization header 2019-05-17 16:24:27 +02:00
Jesse Tan
68b819844d Add eps format to proxy 2017-06-28 12:59:27 +02:00
Arnaud Roques
67e9aeb992 version 2017.09 2017-04-05 21:57:35 +02:00
arnaudroques
e7ed068417 Fix format management 2015-12-10 19:38:37 +01:00
Maxime Sinclair
d3e42fd17a Parameter 'format' changed to 'fmt'
and System.out deletion
2015-12-10 16:43:56 +01:00
Shane McCarron
d21bb445f8 Added support for specifying format to proxy
The proxy servlet only could generate PNG. Should be possible to
proxy the other supported formats too.
2015-12-07 09:49:17 -06:00
Maxime Sinclair
fd2b6e7c02 [TASK] Checkstyle report and mvn site configuration 2014-02-06 18:28:06 +01:00
Maxime Sinclair
4c845a5dcd [FEATURE] Proxy returns the correct Content-type 2013-12-02 12:45:11 +01:00
Maxime Sinclair
b9d71300df [FEATURE] First HTTPS support 2013-11-29 15:58:23 +01:00
maximesinclair
7c8f361826 [FEATURE] Proxy redesign, first step 2013-11-25 22:35:58 +01:00
maximesinclair
ac9d0e02ca [BUGFIX] Trick to avoid a lot of IllegalStateException 2013-10-31 22:54:53 +01:00
Maxime Sinclair
ce168633ad [TASK] Full coding style clean up 2013-07-10 17:07:24 +02:00
Maxime Sinclair
d7ecaaa992 Refactoring of the Proxy service 2013-07-09 15:44:36 +02:00