Code Monkey home page Code Monkey logo

verapdf-rest's People

Contributors

acdha avatar ancarian avatar bdoubrov avatar carlwilson avatar darrendignam avatar daryaromanchuk avatar dependabot[bot] avatar ekaterinakomar avatar evgeniy-prudnikov avatar georgetarazevich avatar helix84 avatar jlleitschuh avatar jstaerk avatar max-zhuk avatar maximplusov avatar nikitakovaliov92 avatar proxynexus avatar rstorey avatar timurkamalov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

verapdf-rest's Issues

Autodetect PDF profile

It would be great if you could upload and test a PDF without having to know in advance which profile to select. If it were up to me, this would be the default option. I'm working on implementing this in my fork. If you're aware of any obstacles, I'm all ears. Also, if you want a pull request, let me know.

Deployed version and branch

Hi,

Which version and branch is deployed on http://demo.verapdf.org? When I checkout and run the rest client, I get other validation errors than on http://demo.verapdf.org.

Thanks
Stefan

Add version number to the footer

As a user of veraPDF, I would prefer knowing exactly which version of the validation library the demo at http://demo.verapdf.org/ is based upon.

It doesn't matter where exactly this information is placed, but I think the footer is the most natural place.

java.lang.IllegalStateException: You need to provide an instance of SwaggerBundleConfiguration

Following the merge of the PR #53
when I try to start veraPDF-rest, I get a Java backtrace:

% java -jar target/verapdf-rest-0.1.0-SNAPSHOT.jar server
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.fasterxml.jackson.module.afterburner.util.MyClassLoader (file:/home/alexis/new_boite/dev/veraPDF-rest/target/verapdf-rest-0.1.0-SNAPSHOT.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.fasterxml.jackson.module.afterburner.util.MyClassLoader
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
INFO  [2021-03-29 08:48:39,565] io.dropwizard.server.DefaultServerFactory: Registering jersey handler with root path prefix: /
INFO  [2021-03-29 08:48:39,568] io.dropwizard.server.DefaultServerFactory: Registering admin handler with root path prefix: /
INFO  [2021-03-29 08:48:39,568] io.dropwizard.assets.AssetsBundle: Registering AssetBundle with name: css for path /css/*
INFO  [2021-03-29 08:48:39,585] io.dropwizard.assets.AssetsBundle: Registering AssetBundle with name: js for path /js/*
INFO  [2021-03-29 08:48:39,585] io.dropwizard.assets.AssetsBundle: Registering AssetBundle with name: img for path /img/*
java.lang.IllegalStateException: You need to provide an instance of SwaggerBundleConfiguration
at io.federecio.dropwizard.swagger.SwaggerBundle.run(SwaggerBundle.java:59)
at io.federecio.dropwizard.swagger.SwaggerBundle.run(SwaggerBundle.java:46)
at io.dropwizard.setup.Bootstrap.run(Bootstrap.java:200)
at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:42)
at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:87)
at io.dropwizard.cli.Cli.run(Cli.java:78)
at io.dropwizard.Application.run(Application.java:93)
at org.verapdf.rest.app.VeraPdfRestApplication.main(VeraPdfRestApplication.java:45)
zsh: exit 1     java -jar target/verapdf-rest-0.1.0-SNAPSHOT.jar server

I'm on Ubuntu 20.04 LTS with openJDK 11 (same error with openJDK 14). I'm not the only one to have this problem, cf the comments in the PR.

The workaround is to checkout the code before the merge of the PR:

git checkout 7f1970f81d3d55e1804dafbc60596d3f2c5cfb38
mvn clean package

Then veraPDF-rest starts without problem.

Upgrade dependencies

Dropwizard is now on 1.1.2, and other dependencies are due for upgrade as well. I've done this in my fork, and not encountered any bugs. I'll submit a pull request if you like.

Can't build due to openpreservation.org down.

Can't build for the past days due to openpreservation.org being down.

[ERROR] Non-resolvable parent POM for org.verapdf:verapdf-rest:0.1.0-SNAPSHOT: Could not transfer artifact org.verapdf:verapdf-parent:pom:1.0.17 from/to vera-pdfbox (http://artifactory.opf-labs.org/artifactory/vera-pdfbox-local): Failed to transfer file: http://artifactory.opf-labs.org/artifactory/vera-pdfbox-local/org/verapdf/verapdf-parent/1.0.17/verapdf-parent-1.0.17.pom. Return code is: 502 , ReasonPhrase:Bad Gateway. and 'parent.relativePath' points at wrong local POM @ line 6, column 11 -> [Help 2]

have a generated openAPI/swagger specification

openAPI is a file format which specifies machine-readably how REST APIs can be used, with the swagger editor one can then create sample clients in 53 languages. There is a swagger/openapi plugin for dropwizard which allows that the according swagger.yml file is created automatically from some annotations.

Somebody who presents this (unfortunately in german) https://media.ccc.de/v/froscon2017-1985-einfache_rest-apis_mit_dropwizard_und_swagger (Slides https://programm.froscon.de/2017/system/event_attachments/attachments/000/000/469/original/20170818_LeanIX_Presentation_Froscon.pdf )

VeraPDF-Rest brought me to dropwizard. I'm using the swagger plugin on my own project ( https://github.com/ZUGFeRD/mustangserver ) and I would like to try to integrate it with verapdf-rest. First step: upgrade dropwizard to exactly that version which works with the swagger plugin.
Second step: add some annotations, maybe use a bundle, change the config file slightly.

Perhaps the URL should be updated

I've had some feedback at an OPF event and the demo.verapdf.org domain seems to be a problem for some organisations. It suggests that the product isn't "ready". Maybe we should use validator.verapdf.org and forward the old URL.

build failure (dependency URL change)

[ERROR] Failed to execute goal on project verapdf-rest: Could not resolve dependencies for project org.verapdf:verapdf-rest:jar:0.1.0-SNAPSHOT: Failed to collect dependencies at com.yunspace.dropwizard:dropwizard-xml:jar:41: Failed to read artifact descriptor for com.yunspace.dropwizard:dropwizard-xml:jar:41: Could not transfer artifact com.yunspace.dropwizard:dropwizard-xml:pom:41 from/to jcenter (http://jcenter.bintray.com): Access denied to: http://jcenter.bintray.com/com/yunspace/dropwizard/dropwizard-xml/41/dropwizard-xml-41.pom -> [Help 1]

https://jfrog.com/blog/secure-jcenter-with-https/

Page refresh is needed to re-use the form

Steps to reproduce:

  1. Select a file in step 1, click Next.
  2. Select a profile in step 2, click Next.
  3. Click the circle for step 2, change the selected profile, click Next. Then click circle 3.
  4. Click the circle for step 1, change the selected file, click Next.

Observed behavior:

  1. When I try to go back to step 2 to change my selection and repeat the previous operation, nothing happens when I click next. When I click circle 3, an Exception message appears briefly and then I get the same report as I did the first time I was on step 3.
  2. If change the selected file and attempt to repeat the same operation (without refreshing the page) I get the same validation report as I did the first time.

Expected behavior:

  1. It should be more clear to end users that a page refresh is required to perform a new operation.
  2. It's not obvious that the form inputs, which aren't disabled and can have their inputs changed, have no effect on the resulting report on step 3 unless/ until the page is refreshed.

Notes:
It seems like maybe some instructions are needed and/or perhaps the form inputs should be disabled once the form is used. I don't want to disappear the report without some kind of intentional user action because they might not have saved the report results from the previous operation. I'm working on this in my fork, but I'm not sure what the best solution might be yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.