Giter Club home page Giter Club logo

print's Introduction

Maven Package upon a push Quality Gate Status

Print Service

Overview

A reference implementation to print euin, reprint, qrcode credential types in PDF format. This service is intended to be custimized and used by a card printing agency who need to onboard onto MOSIP as Credential Partner before deploying the service.

  1. Receives events from WebSub.
  2. Fetches templates from Masterdata.
  3. After creating PDF card print service upload the same to Datashare.
  4. Publishes event to WebSub with updated status and Datashare link.

The card data in JSON format is publised as WebSub event. The print service consumes the data from event, decrypts using partner private key and converts into PDF using a predefined template.

Build and run (for developers)

Refer Build and Run.

Deploy

The deploy print service in production follow the given steps:

  1. Onboard your organisation as Credential Partner.
  2. Place your .p12 file in ../src/main/resources folder.
  3. Set configuration as in given here.
  4. Build and run as given here.

Configuration

Refer to the configuration guide.

Test

Automated functaionl tests available in Functional Tests repo.

License

This project is licensed under the terms of Mozilla Public License 2.0.

print's People

Contributors

ckm007 avatar dhanendra06 avatar gsasikumar avatar harishmejari8496 avatar mahammedtaheer avatar mandeepdhiman123 avatar nayakrounak avatar pjoshi751 avatar prafulrakhade avatar pramod444 avatar rakshitha650 avatar rakshithb1 avatar sowmya695 avatar syedsalman3753 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

print's Issues

Potential issue

The @PreAuthenticateContentAndVerifyIntent secret parameter cannot contain spaces in its value. For example, using a value of test password will transmit a value in the http with an invisible character but is not a space, but is instead 0x2b in wireshark trace. Fyi.

[BUG] Unable to correctly determine the image format type of the base64 encoded jpeg2000 image

This bug is detected in branch 1.1.2. I also scan the code, it is also in branch 1.1.3.

Mismatch image type header from actual image type content

To Reproduce
It can only be reproduced when integrating a third-party component. I believe the offending line is in the following:

  • For branch 1.1.3 it is in line 572 of PrintServiceImpl.java.
  • For branch 1.1.2 it is line 551 of PrintServiceImpl.java.

The image type is hardcoded as data:image/png;base64. The problem only manifests when integrating a third-party component which tries to convert the base64 encoded image content to other format. If the image content is of type jpeg2000 format, then the header should describe it as such.

Expected behavior
The header should describe the image type in order for third-party component to properly handle the image content

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Server OS: [RHEL 7, CentOS 7]
  • Client OS : [Windows 10, Ubuntu 18.04 LTS etc]
  • Build : [build that is being used]
  • Browser : [Chrome, Firefox, Edge]

Attach logs
The code line# is already provided with regards to root cause.

Additional context
The image type is needed in this particular line of the third-party component: https://github.com/newlogic/mosip-print/blob/idpass-integration4/src/main/java/org/idpass/lite/IDPassReaderComponent.java#L71

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.