Skip to content

Conversation

@h1ppox99
Copy link
Collaborator

No description provided.

@h1ppox99 h1ppox99 requested a review from guimard August 30, 2024 11:15
)
} else {
clientServer.authenticate(req, res, (data, id) => {
// TODO : Handle error 403 where the user isn't allowed to see this user's presence status, may have to do with the "users_to_send_full_presence_to" table in the matrixDb

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality

Suspicious comment
})
validateParameters(res, schema, obj, clientServer.logger, (obj) => {
const filter: Filter = new Filter(obj)
// TODO : verify if the user is allowed to make requests for this user id

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality

Suspicious comment
.insert('user_filters', {
user_id: userId,
filter_id: filterId,
filter_json: JSON.stringify(filter) // TODO : clarify the type of the filter_json (bytea, string ???)

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality

Suspicious comment
) as Record<string, string>
} else {
// We construct a URL object to extract the query parameters with .searchParams
const url = new URL(req.url ?? '', 'http://default-host') // No need to provide a correct host since we simply extract the query parameters

Check warning

Code scanning / devskim

An HTTP-based URL without TLS was detected.

Insecure URL
@guimard
Copy link
Member

guimard commented Aug 30, 2024

I just relaunch test. Let's wait for result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants