This commit is contained in:
Robin Appelman 2025-08-21 00:06:25 +02:00
commit ff3a0aa0e6
6 changed files with 2948 additions and 631 deletions

View file

@ -1,10 +1,31 @@
pub const STATEMENTS: &[crate::LoggingStatement] = &[
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Operation.php" , line : 104usize , placeholders : & ["$e->getMessage()"] , exception : None , pattern : "\0\u{1}\u{1}" , has_meaningful_message : false , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Operation.php" , line : 106usize , placeholders : & [] , exception : Some ("OCP\\Files\\ForbiddenException") , pattern : "Access denied\u{1}\u{1}" , has_meaningful_message : true , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Operation.php" , line : 203usize , placeholders : & [] , exception : Some ("UnexpectedValueException") , pattern : "No rule given\u{1}\u{1}" , has_meaningful_message : true , },
crate::LoggingStatement {
level: crate::LogLevel::Debug,
path: "/lib/Operation.php",
line: 104usize,
placeholders: &["$e->getMessage()"],
exception: None,
pattern: "\0\u{1}\u{1}",
has_meaningful_message: false,
},
crate::LoggingStatement {
level: crate::LogLevel::Exception,
path: "/lib/Operation.php",
line: 106usize,
placeholders: &[],
exception: Some("OCP\\Files\\ForbiddenException"),
pattern: "Access denied\u{1}\u{1}",
has_meaningful_message: true,
},
crate::LoggingStatement {
level: crate::LogLevel::Exception,
path: "/lib/Operation.php",
line: 203usize,
placeholders: &[],
exception: Some("UnexpectedValueException"),
pattern: "No rule given\u{1}\u{1}",
has_meaningful_message: true,
},
];
pub const ROUTES: &[crate::Route] = &[
];
pub const ROUTES: &[crate::Route] = &[];

View file

@ -46,11 +46,40 @@ pub const STATEMENTS: &[crate::LoggingStatement] = &[
];
pub const ROUTES: &[crate::Route] = &[
crate :: Route { id : "files_antivirus.rule.listAll" , url : "/apps/files_antivirus/settings/rule/listall" , verb : "GET" , ocs : false , },
crate :: Route { id : "files_antivirus.rule.clear" , url : "/apps/files_antivirus/settings/rule/clear" , verb : "POST" , ocs : false , },
crate :: Route { id : "files_antivirus.rule.reset" , url : "/apps/files_antivirus/settings/rule/reset" , verb : "POST" , ocs : false , },
crate :: Route { id : "files_antivirus.rule.save" , url : "/apps/files_antivirus/settings/rule/save" , verb : "POST" , ocs : false , },
crate :: Route { id : "files_antivirus.rule.delete" , url : "/apps/files_antivirus/settings/rule/delete" , verb : "POST" , ocs : false , },
crate :: Route { id : "files_antivirus.settings.save" , url : "/apps/files_antivirus/settings/save" , verb : "POST" , ocs : false , },
crate::Route {
id: "files_antivirus.rule.listAll",
url: "/apps/files_antivirus/settings/rule/listall",
verb: "GET",
ocs: false,
},
crate::Route {
id: "files_antivirus.rule.clear",
url: "/apps/files_antivirus/settings/rule/clear",
verb: "POST",
ocs: false,
},
crate::Route {
id: "files_antivirus.rule.reset",
url: "/apps/files_antivirus/settings/rule/reset",
verb: "POST",
ocs: false,
},
crate::Route {
id: "files_antivirus.rule.save",
url: "/apps/files_antivirus/settings/rule/save",
verb: "POST",
ocs: false,
},
crate::Route {
id: "files_antivirus.rule.delete",
url: "/apps/files_antivirus/settings/rule/delete",
verb: "POST",
ocs: false,
},
crate::Route {
id: "files_antivirus.settings.save",
url: "/apps/files_antivirus/settings/save",
verb: "POST",
ocs: false,
},
];

View file

@ -20,7 +20,10 @@ pub const MAX_VERSIONS: &[(&str, &str)] = &[
("server", "29"),
];
pub fn get_statements_for(name: &str, version: &str) -> Option<(&'static str, &'static [LoggingStatement])> {
pub fn get_statements_for(
name: &str,
version: &str,
) -> Option<(&'static str, &'static [LoggingStatement])> {
match (name, version) {
("deck", "1") => Some(("", deck_1::STATEMENTS)),
("files_accesscontrol", "1") => Some(("", files_accesscontrol_1::STATEMENTS)),
@ -35,6 +38,8 @@ pub fn all_routes() -> impl Iterator<Item = &'static Route> {
deck_1::ROUTES,
files_accesscontrol_1::ROUTES,
files_antivirus_5::ROUTES,
server_29::ROUTES
].into_iter().flatten()
server_29::ROUTES,
]
.into_iter()
.flatten()
}

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long