netvs-core issueshttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues2024-01-31T16:50:57+01:00https://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/594generische, objekttypbezogene basispermissions ab webapi 4.02024-01-31T16:50:57+01:00gq3345rainer.steinmueller@kit.edugenerische, objekttypbezogene basispermissions ab webapi 4.0es gibt keine explizite deprecated-markierung f. perms, wie es bei den attributen der fall ist.
die generischen perms. habe ich ab 4.0 eingefuehrt. sollte sie vllt. noch mit in die doku schreiben. bin bisher nicht davon ausgegangen, dass...es gibt keine explizite deprecated-markierung f. perms, wie es bei den attributen der fall ist.
die generischen perms. habe ich ab 4.0 eingefuehrt. sollte sie vllt. noch mit in die doku schreiben. bin bisher nicht davon ausgegangen, dass das gebraucht wird.
also basisformat:
- leserecht je objekttyp: `<system>.ro:<ot>`
- schreibrecht je objekttyp: `<system>.rw:<ot>`
wobei lesen fuer list-afragen gilt (`wapi.function.is_data_manipulating=false`) und schreiben fuer crud (`wapi.function.is_data_manipulating=true`). dh. es gibt genaugenommen keine inkludierung, das passiert dann nur in den rollenzuordnungen.
sollte das mal nicht stimmen (dh. die perm-definition stimmt nicht oder fehlt), muss das nachgezogen werden. ich habe aktuell nur eine bedingte garantie dafuer, weil es aenderungen an dieser ecke nur selten gibt.API 4.0 Releasehttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/490netdb-client-lib v3.2 fails to list reserved IPv6 addresses for subnet2023-07-24T16:40:13+02:00uv7044netdb-client-lib v3.2 fails to list reserved IPv6 addresses for subnetHi,
following the announcement of the release of NetDB WebAPI 4.0, I validated that our use-cases are still functional with it and found one operation broken: Listing reserved IPv6 addresses of a given subnet.
```
Python 3.8.14 (default...Hi,
following the announcement of the release of NetDB WebAPI 4.0, I validated that our use-cases are still functional with it and found one operation broken: Listing reserved IPv6 addresses of a given subnet.
```
Python 3.8.14 (default, Sep 19 2022, 09:47:48)
[GCC 9.1.1 20190605 (Red Hat 9.1.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import netdb_client
>>> import netdb_client.dns
>>> api = netdb_client.APISession(
... netdb_client.APIEndpoint(
... base_url='api.netdb-devel.scc.kit.edu',
... debug=True,
... endpoint=None,
... token='4230.ey...T44'
... )
... )
>>> netdb_client.dns.IpAddr.list(api, value_cidr_old='2a00:139c:2:579::/64', is_reserved_old=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages/netdb_client/dns.py", line 735, in list
return [cls(**s) for s in res.json()[0]]
File "/opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages/netdb_client/dns.py", line 735, in <listcomp>
return [cls(**s) for s in res.json()[0]]
TypeError: __init__() missing 1 required positional argument: 'is_dhcp_unique'
```
As far as I can tell, there is no version 4.0 of `netdb-client-lib`, so this was done with the latest 3.2.
/cc @domrim, @klara.mall, @xe4704API 4.0 Releasegq3345rainer.steinmueller@kit.edugq3345rainer.steinmueller@kit.eduhttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/488API: dhcp und dhcpvs Endpunkte umbenennen2023-08-04T19:19:10+02:00iv4011benedikt.neuffer@kit.eduAPI: dhcp und dhcpvs Endpunkte umbenennenBevor DHCP in Production geht, könnte man noch einmal diskutieren, ob man die Endpunkte dhcp(cfg) in dhcpv4(cfg) umbenennt, da es in Zukunft sein könnte, dass wir Bedarf für DHCPv6 haben. Insbesondere PXE boot benötigt DHCPv6, da man Sta...Bevor DHCP in Production geht, könnte man noch einmal diskutieren, ob man die Endpunkte dhcp(cfg) in dhcpv4(cfg) umbenennt, da es in Zukunft sein könnte, dass wir Bedarf für DHCPv6 haben. Insbesondere PXE boot benötigt DHCPv6, da man Stand heute keine PXE-boot Informationen per RA verteilen kann.API 4.0 Releasegq3345rainer.steinmueller@kit.eduxe4704janis.streib@kit.eduiv4011benedikt.neuffer@kit.edugq3345rainer.steinmueller@kit.eduhttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/483API 3.2@devel: defect: wapi.data_type.list2023-07-11T17:52:58+02:00xe4704janis.streib@kit.eduAPI 3.2@devel: defect: wapi.data_type.listList-aufruf komplett ohne params
```
{
"exception": {
"error": {
"code": 1,
"description": "[cntl] Ungültige Eingabesyntax für entsprechenden Datentyp",
"details": null
},
"error_type": {
"code": -20...List-aufruf komplett ohne params
```
{
"exception": {
"error": {
"code": 1,
"description": "[cntl] Ungültige Eingabesyntax für entsprechenden Datentyp",
"details": null
},
"error_type": {
"code": -20900,
"name": "format_error",
"description": "Datentyp-Formatierungsfehler"
},
"constraint": {
"name": null,
"description": null
},
"stacked_diag_params": {
"sqlstate": "42703",
"message": "column cdtop.conv_daty_val_attname does not exist",
"detail": "",
"hint": "",
"context": "PL/pgSQL function eh.set_err(eh.stacked_diag_params_rec_type,name,name,eh.userparams_kv_rec_type[],eh.typecode_rec_type) line 22 at RAISE\nSQL statement \"SELECT eh.set_err(sd_rec, fpkg, fname, up_kv_rec_list, et_rec)\"\nPL/pgSQL function wapi_wapi_3_2.ta_stmt_handler(wapi_3_2.exec_ta_stmt_rec_type) line 81 at PERFORM\nSQL statement \"select\n eh_ret_stmt_pos, eh_ret_stmt_idx, null::bigint, attrs.dict\n from wapi_wapi_3_2.ta_stmt_handler(in_stmt_rec => tah_stmt_rec) as attrs(dict)\"\nPL/pgSQL function wapi_3_2.exec_ta_handler(bigint,jsonb,boolean,boolean,boolean,boolean,boolean,text) line 440 at RETURN QUERY\nSQL statement \"select tah.out_stmt_pos, tah.out_stmt_idx, tah.out_obj_dict from wapi_3_2.exec_ta_handler(\n in_ta_id => ta_id,\n in_ta_osr_jsonb => ta_osr_jsonb,\n in_keep_tmp_ta => in_keep_tmp_ta,\n in_report_stmt_pos => in_report_stmt_pos,\n in_is_dry_mode => in_is_dry_mode,\n in_ignore_maint_state => in_ignore_maint_state,\n in_su_login_name => in_su_login_name\n ) AS tah\"\nPL/pgSQL function wapi_3_2.ta_handler(text,text,text,boolean,boolean,boolean,boolean,text) line 27 at RETURN QUERY",
"dml_src_table": null,
"schema": "",
"table": "",
"column": "",
"datatype": "",
"constraint": ""
},
"others": {},
"traceback": [
{
"function": "wapi_3_2.exec_ta_handler",
"param": {
"wapi.transaction_stmt.pos": 0,
"wapi.transaction_stmt.idx": "0"
}
}
]
}
}
```API 4.0 Releasegq3345rainer.steinmueller@kit.edugq3345rainer.steinmueller@kit.eduhttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/469OTAV-suche (abfrage nach value): geht bisher nur mit 'cntl.ro_api'. ziel: eff...2023-06-25T19:07:41+02:00gq3345rainer.steinmueller@kit.eduOTAV-suche (abfrage nach value): geht bisher nur mit 'cntl.ro_api'. ziel: effektive ot-bezogene user-rechte einrechnen`cntl.ot_attr_val.list` mit `ot_attr_def_key_word` (value-suche) ist immer OT-bezogen. koennte in diesem fall die effektive-rechte-abfrage als dynsql-generator analog der bereits vorhandenen rw-rechte-abfrage via `_cntl_calc_wapi_ot_perm...`cntl.ot_attr_val.list` mit `ot_attr_def_key_word` (value-suche) ist immer OT-bezogen. koennte in diesem fall die effektive-rechte-abfrage als dynsql-generator analog der bereits vorhandenen rw-rechte-abfrage via `_cntl_calc_wapi_ot_perms.<ot_tab_name>` gemacht werden?
- [x] neustrukturierung permissions: generell pro OT eine basis-perm. fuer
- readonly (z.b. `<system>.ro:<ot_name>`)
- readwrite (z.b. `<system>.rw:<ot_name>`)
diese basis-perm. dann an die jeweilige rechteabfrage binden (semantische bindung durch namensschema/namensgleichheit via '<ot_tab_name>' oder zusaetzlich auch relational?). bisher bestehende globale permissions waeren dadurch obsolete; perm-hierarchie komplett anpassen bzw. neu gruppieren.
- [x] where-conditions und join-klauseln f.d. effektiven user-rechte sowohl in `cntl.ot_attr_val.list` als auch in der list-fkt. des entsprechenden OT aus dem dynsql-generator holen. aktuell unterstuetzen nur folgende OT die basisrechte-abfrage (is_owner):
- nd.bcd
- nd.ip_subnet
- nd.vlan
- nd.vxlan
- dns.fqdn
- dns.zone
- cntl.mgr
- cntl.groupAPI 4.0 Releasegq3345rainer.steinmueller@kit.edugq3345rainer.steinmueller@kit.eduhttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/468HINT in exception object, z.b. um infos ueber fehlende rechte f. unterkonto a...2023-09-30T12:24:06+02:00gq3345rainer.steinmueller@kit.eduHINT in exception object, z.b. um infos ueber fehlende rechte f. unterkonto auszugeben, wenn im eigenen hauptkonto vorhandenbekommt ein unterkonto einen zugriffsfehler, den das zugehoerige hauptkonto nicht bekommen wuerde (weil es die erforderlichen rechte hat),
wird eine entsprechende info im exception-object unter `"hint"` angezeigt. ist der zugriffsfehler ...bekommt ein unterkonto einen zugriffsfehler, den das zugehoerige hauptkonto nicht bekommen wuerde (weil es die erforderlichen rechte hat),
wird eine entsprechende info im exception-object unter `"hint"` angezeigt. ist der zugriffsfehler eindeutig und ausschliesslich auf globale rollen zurueckzufuehren, werden die erforderlichen rechte (fehlende rollen) zusaetzlich im parameter `cntl.error.required_roles` ausgegeben.
- [x] info, dass der fehler auf selber eintragbare globale rechte zurueckzufuehren ist und diese anzeigen (nur, wenn eindeutig auf globale rollen zurueckfuehrbar)
- [x] info, dass der fehler auf selber eintragbare datenbereichs-rechte (z.b. namensraum, adressraum, andere kombinationen von rechten) zurueckzufuehren ist. nicht generell machbar, z.b. nicht bei bereichsbasiertem namensraum.API 4.0 Releasexe4704janis.streib@kit.eduxe4704janis.streib@kit.eduhttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/516Patch request: Port not selectable2023-09-29T12:39:26+02:00iv4011benedikt.neuffer@kit.eduPatch request: Port not selectable![Screenshot_2023-09-26_at_16-27-38_devel_SCC_-_NETVS_Requests](/uploads/d4c2670690b3b37e9bb75941690bf18e/Screenshot_2023-09-26_at_16-27-38_devel_SCC_-_NETVS_Requests.png)
I have found a module where I cannot select the port. The port i...![Screenshot_2023-09-26_at_16-27-38_devel_SCC_-_NETVS_Requests](/uploads/d4c2670690b3b37e9bb75941690bf18e/Screenshot_2023-09-26_at_16-27-38_devel_SCC_-_NETVS_Requests.png)
I have found a module where I cannot select the port. The port is currently used for wifi, but the message is misleading.
I think the port should be selectable anyway but the network operators should get an additional hint.API 4.0 Releasehttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/514devel: Scroll bar does not work in Patch Request2023-10-27T21:26:27+02:00se7337klara.mall@kit.edudevel: Scroll bar does not work in Patch RequestWhen I try to use the scroll bar to scroll in a drop-down list in Patch Request Form (devel), i.e. choosing "Add a patch action" -> e.g. "building" (but it's also true for the other fields) and then clicking the scrollbar, it just closes...When I try to use the scroll bar to scroll in a drop-down list in Patch Request Form (devel), i.e. choosing "Add a patch action" -> e.g. "building" (but it's also true for the other fields) and then clicking the scrollbar, it just closes the drop-down list. Tested in Google Chrome and Firefox.
It is still possible to type something and thereby shorten the drop-down list.API 4.0 Releasegj4210robert.kossessa9@kit.edugj4210robert.kossessa9@kit.eduhttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/512Benutzer können nicht aus Gruppen entfernt werden2023-09-25T13:39:13+02:00ov5916julian.keck9@kit.eduBenutzer können nicht aus Gruppen entfernt werdenDurch das Drücken des Knopfes wird die Transaktion `Delete cntl.mgr2group:
undefined from group undefined` erstellt.Durch das Drücken des Knopfes wird die Transaktion `Delete cntl.mgr2group:
undefined from group undefined` erstellt.API 4.0 Releasehttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/506/user/tokens Übersetzung `components.transaction_list.config_snippet_descript...2023-10-25T19:25:20+02:00ov5916julian.keck9@kit.edu/user/tokens Übersetzung `components.transaction_list.config_snippet_description.code` kaputtWenn man eine API-Token erstellt, steht `components.transaction_list.config_snippet_description.code` da als PermissionWenn man eine API-Token erstellt, steht `components.transaction_list.config_snippet_description.code` da als PermissionAPI 4.0 Releaserx2495alexander.kaschta9@kit.edurx2495alexander.kaschta9@kit.eduhttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/505BCD Overview (Startseite): Beschreibungstexte für seclevel und categ nichtmeh...2023-10-05T15:43:15+02:00xe4704janis.streib@kit.eduBCD Overview (Startseite): Beschreibungstexte für seclevel und categ nichtmehr angezeigtAPI 4.0 Releasexe4704janis.streib@kit.eduxe4704janis.streib@kit.eduhttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/503Devel: Undo/redo nach Ta-Liste löschen kaputt2023-09-27T15:12:10+02:00xe4704janis.streib@kit.eduDevel: Undo/redo nach Ta-Liste löschen kaputtAPI 4.0 Releaseov5916julian.keck9@kit.eduov5916julian.keck9@kit.eduhttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/501Patch Request error if no BCD selected2023-09-25T17:47:43+02:00gj4210robert.kossessa9@kit.eduPatch Request error if no BCD selectedAPI 4.0 Releasegj4210robert.kossessa9@kit.edugj4210robert.kossessa9@kit.eduhttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/498Translations flipped for `add_mgr_not_possible`2023-08-23T15:21:25+02:00rx2495alexander.kaschta9@kit.eduTranslations flipped for `add_mgr_not_possible`The German string is in the `en.json` and the English string is in the `de.json`.The German string is in the `en.json` and the English string is in the `de.json`.API 4.0 Releasehttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/496System notifications unusable on mobile devices2023-08-23T16:18:44+02:00rx2495alexander.kaschta9@kit.eduSystem notifications unusable on mobile devicesThe system notification's can't be viewed on mobile devices. When selecting the item from the expanded menu, the message will pop up shortly and then disappear in the next moment, when the parent item (the navigation menu) collapses. Thi...The system notification's can't be viewed on mobile devices. When selecting the item from the expanded menu, the message will pop up shortly and then disappear in the next moment, when the parent item (the navigation menu) collapses. This menu collapse seems to be the regular behavior of the menu bar as it collapses on an item selection, redirecting the user to the next important site or entry.API 4.0 Releasehttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/495update auf NULL funktioniert nicht (mehrere Fälle); Parameter wird nicht über...2023-08-22T16:50:39+02:00gq3345rainer.steinmueller@kit.eduupdate auf NULL funktioniert nicht (mehrere Fälle); Parameter wird nicht übergebenGetestete Fälle:
- dns.record.update mit ttl=NULL (von NN zu N)
- nd.bcd.description mit description=NULL (von NN zu N)
In beiden Fällen wird zwar ein update ausgeführt, aber ohne Übergabe des zu nullenden Parameters. Vermutlich ein sys...Getestete Fälle:
- dns.record.update mit ttl=NULL (von NN zu N)
- nd.bcd.description mit description=NULL (von NN zu N)
In beiden Fällen wird zwar ein update ausgeführt, aber ohne Übergabe des zu nullenden Parameters. Vermutlich ein systematischer Fehler.API 4.0 Releasexe4704janis.streib@kit.eduxe4704janis.streib@kit.eduhttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/479PaginatorTable filtering broken2023-09-29T12:39:26+02:00gj4210robert.kossessa9@kit.eduPaginatorTable filtering brokenPaginatorList allows for custom filtering functions & sorting inside the component
The result slicing for pagination takes place in there as well, and the values are passed down to the child components
With the b-table, this doesn't work...PaginatorList allows for custom filtering functions & sorting inside the component
The result slicing for pagination takes place in there as well, and the values are passed down to the child components
With the b-table, this doesn't work, as it does it's own filtering and sorting (while still allowing for custom funcs to be passed)
We need to retrieve the current-page, page-count etc from the b-table & pass it to the paginations while allowing them to control it 😬API 4.0 Releasegj4210robert.kossessa9@kit.edugj4210robert.kossessa9@kit.eduhttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/462"My Groups": Subgruppen werden nicht in ihre Hauptgruppen sortiert2023-09-27T14:47:05+02:00xe4704janis.streib@kit.edu"My Groups": Subgruppen werden nicht in ihre Hauptgruppen sortiertAPI 4.0 Releaseov5916julian.keck9@kit.eduov5916julian.keck9@kit.eduhttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/459OU: Pagination refactor/fixup2023-06-28T17:26:47+02:00xe4704janis.streib@kit.eduOU: Pagination refactor/fixupOU.vue doesn't use the netvs-paginator component and has tables with per_page AND no pagniator at all. Refector necessasary to track per page settings and pagenumber per card.OU.vue doesn't use the netvs-paginator component and has tables with per_page AND no pagniator at all. Refector necessasary to track per page settings and pagenumber per card.API 4.0 Releasegj4210robert.kossessa9@kit.edugj4210robert.kossessa9@kit.eduhttps://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/454Transaction list: Failed ta in copyField reactive to current transactionlist ...2023-08-23T17:08:56+02:00xe4704janis.streib@kit.eduTransaction list: Failed ta in copyField reactive to current transactionlist (should be cloned and stored on ta fail)API 4.0 Releaserx2495alexander.kaschta9@kit.edurx2495alexander.kaschta9@kit.edu