Giter Site home page Giter Site logo

stiuil06 / spring-maven-repository Goto Github PK

View Code? Open in Web Editor NEW

This project forked from renaudcerrato/appengine-maven-repository

0.0 0.0 0.0 235 KB

Free Private Maven repositories written in Spring Framework.

Java 1.58% HTML 4.74% Kotlin 93.68%

spring-maven-repository's People

Contributors

achuinard avatar gautamjain avatar matthewcosgrove avatar mp1 avatar peschmae avatar renaudcerrato avatar slartus avatar stiuil06 avatar zed-kun avatar

Watchers

 avatar

spring-maven-repository's Issues

Improve upload files flow

Currently, ResourceController#put endpoint just takes HttpServletRequest, then forwards it to StorageService#store.
We should better use Spring capabilities and use something like MultipartFile as endpoint parameter.

Add access control system.

Add access control system similar to this from appengine-maven-repository.

Information from appengine-maven-repository README:

Minimalistic access control is provided through the following permissions: write, read, or list.

The list permission allows users to list the content of the repository but prohibits downloads. The read permission allows downloads (and implies list). The write permission allows uploads (and implies read).

Anonymous users are supported by using "*" for both username and password. For example, ::read will allow anonymous read access.

Improve RequestMapping to endpoints

We are currently manually considering to which endpoint should be request forwarded.
This happens in method: ResourceController#getDispatcher and ResourceController#putFileDispatcher.
We should better use Spring capabilities and use regex as value in @GetMapping and @PutMapping annotations.
I tried to do it while porting basic functionality but it turned out to be difficult to achive. Has even been created query on StackOverFlow.

Generate hashes for uploaded files

First of all, check if it should be done by the server or client that uploads files.

As with any artifactory, we need hashes to all uploaded files.
Needed hashes:

  • sha1
  • md5

Example:
For greeter-1.0.0.jar should be created two files in the same dir greeter-1.0.0.jar.md5 and greeter-1.0.0.jar.sha1, bot with appropriate content.

Improve upload endpoint

Currently, the endpoint returns "redirect:/".
This causes that file has been uploaded but clients inform about upload error.
Probably because clients don't receive proper http status, instead they receive redirection to home page.

Add loggers to app

Add loggers to the application for following operations:

  • download files (read),
  • upload files (write),
  • listing available files (list)

log levels to consider

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.