{"record":{"id":"507f88f9f890a7e3","repo":"apache/hadoop","slug":"no-sticky-bit-in-fspermission","errorCode":null,"errorMessage":"No sticky bit in FsPermission","messagePattern":"No sticky bit in FsPermission","errorType":"validation","errorClass":"InvalidObjectException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/permission/FsPermission.java","lineNumber":495,"sourceCode":"  private static class ImmutableFsPermission extends FsPermission {\n    private static final long serialVersionUID = 0x1bab54bd;\n    public ImmutableFsPermission(short permission) {\n      super(permission);\n    }\n\n    @Override\n    public void readFields(DataInput in) throws IOException {\n      throw new UnsupportedOperationException();\n    }\n  }\n\n  @Override\n  public void validateObject() throws InvalidObjectException {\n    if (null == useraction || null == groupaction || null == otheraction) {\n      throw new InvalidObjectException(\"Invalid mode in FsPermission\");\n    }\n    if (null == stickyBit) {\n      throw new InvalidObjectException(\"No sticky bit in FsPermission\");\n    }\n  }\n}\n","sourceCodeStart":477,"sourceCodeEnd":499,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/permission/FsPermission.java#L477-L499","documentation":"Error \"No sticky bit in FsPermission\" thrown in apache/hadoop.","triggerScenarios":"Thrown when code attempts to read the sticky bit from an FsPermission instance that was created without sticky-bit support enabled.","commonSituations":"See trigger scenarios.","solutions":["Use the FsPermission constructor/factory that accepts a sticky bit if you need it.","Remove the sticky bit requirement, or create the permission with setStickyBit enabled."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}