Affected by GO-2025-3587
and 8 other vulnerabilities
GO-2025-3587: Apache Answer User Using External Images Potentially Discloses User Information in github.com/apache/answer
GO-2026-4421: Apache Answer Exposure of Private Personal Information to an Unauthorized Actor vulnerability in github.com/apache/answer
GO-2026-6147: Apache Answer has an Improper Neutralization of Alternate XSS Syntax vulnerability in github.com/apache/answer
GO-2026-6148: Apache Answer has an Exposure of Private Personal Information to an Unauthorized Actor vulnerability in github.com/apache/answer
GO-2026-6151: Apache Answer vulnerable to Cross-site Scripting in github.com/apache/answer
GO-2026-6152: Apache Answer has an Exposure of Sensitive Information to an Unauthorized Actor vulnerability in github.com/apache/answer
GO-2026-6153: Apache Answer has an Unrestricted Upload of File with Dangerous Type vulnerability in github.com/apache/answer
GO-2026-6154: Apache Answer has an Unrestricted Upload of File with Dangerous Type vulnerability in github.com/apache/answer
GO-2026-6249: Apache Answer: AdminToken not invalidated after admin deactivation in github.com/apache/answer
package
Version:
v1.4.2
Opens a new window with list of versions in this module.
Published: Jan 13, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type RevisionRepo interface {
AddRevision(ctx context.Context, revision *entity.Revision, autoUpdateRevisionID bool) (err error)
GetRevisionByID(ctx context.Context, revisionID string) (revision *entity.Revision, exist bool, err error)
GetLastRevisionByObjectID(ctx context.Context, objectID string) (revision *entity.Revision, exist bool, err error)
GetRevisionList(ctx context.Context, revision *entity.Revision) (revisionList []entity.Revision, err error)
UpdateObjectRevisionId(ctx context.Context, revision *entity.Revision, session *xorm.Session) (err error)
ExistUnreviewedByObjectID(ctx context.Context, objectID string) (revision *entity.Revision, exist bool, err error)
GetUnreviewedRevisionPage(ctx context.Context, page, pageSize int, objectTypes []int) ([]*entity.Revision, int64, error)
CountUnreviewedRevision(ctx context.Context, objectTypeList []int) (count int64, err error)
UpdateStatus(ctx context.Context, id string, status int, reviewUserID string) (err error)
}
RevisionRepo revision repository
Source Files
¶
Click to show internal directories.
Click to hide internal directories.