GithubHelp home page GithubHelp logo

ostepu-lgitlab-core's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

geo5

ostepu-lgitlab-core's Issues

Validierung der Nutzernamen fehlerhaft(?)

Auch auf die Gefahr hin, dass das Projekt abandoned ist:

MMn ist die Validierung der Nutzernames in folgender Zeile fehlerhaft:

'valid_userName',

Die Validierung erfolgt mithilfe einer Regex, die keine Leerzeichen erlaubt:
^([a-zA-Z0-9äöüÄÖÜß]+)$

Der Nutzername, der von Gitlab kommt ist aber (zumindest in der aktuellen Version) der volle Name des Projektbesitzers, wobei Vor- und Nachname mit Leerzeichen getrennt sind:

{
  "object_kind": "tag_push",
  "event_name": "tag_push",
  "before": "0000000000000000000000000000000000000000",
  "after": "cea08c4cf6da436b750a5c8c2e9d1124fa59c964",
  "ref": "refs/tags/SUBMIT_ÜBUNGSBLATT1_3",
  "checkout_sha": "636845e57b7e9eae1f296e53104d97f4445bc6bb",
  "message": "Serie 1 Aufgabe 3",
  "user_id": xx,
  "user_name": "Vorname Mittelname Nachname",
  "user_username": "<kürzel>",
  "user_email": "",
  "user_avatar": null,
  "project_id": <id>,
  "project": {
    "id": <id>,
    "name": "<name>",
    "description": "",
    "web_url": "<url>",
    "avatar_url": null,
    "git_ssh_url": "<url>",
    "git_http_url": "<url>",
    "namespace": "Vorname Mittelname Nachname",     <--- Dieses Feld wird als userName verwendet
    ...
  },
  "commits": [
    {
      "id": "636845e57b7e9eae1f296e53104d97f4445bc6bb",
      "message": "",
      "title": "",
      "timestamp": "2020-04-09T18:29:34+02:00",
      "url": "<url>",
      "author": {
        "name": "<kürzel>",
        "email": "<Studi mail>"
      },
      "added": [
        ".gitignore",
        "solution.pdf"
      ],
      "modified": [
        "solution.tex"
      ],
      "removed": [

      ]
    }
  ],
  "total_commits_count": 1,
  "push_options": {
  },
  "repository": {
    "name": "<name>",
    "url": "<url>",
    "description": "",
    "homepage": "<url>",
    "git_http_url": "<url>",
    "git_ssh_url": "<url>",
    "visibility_level": 0
  }
}

Hilfe, Administratoren

Die Admins benötigen auch noch ein Hilfe

  • die Namen der Übungsserien dürfen nur 0-9, a-z, A-Z, Leerzeichen (muss aber entfernt werden), _ (muss aber entfernt werden) und "-" enthalten.
  • von GitLab bekommt das System eine .gz-Datei, welche auch von OSTEPU akzeptiert werden muss

die Einsendungsgröße beschränken

Die Größe des Archivs, welches von GitLab kommt, kann beliebig groß sein. Es sollte jedoch entsprechend der Upload.php beschränkt werden.

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.