{"record":{"id":"2c18d3b78fe9c64b","repo":"quarkusio/quarkus","slug":"manifest-section-name-section-is-invalid-ch","errorCode":null,"errorMessage":"Manifest section name + section + is invalid. \" characters are not allowed.","messagePattern":"Manifest section name \\+ section \\+ is invalid\\. \" characters are not allowed\\.","errorType":"exception","errorClass":"GradleException","httpStatus":null,"severity":"error","filePath":"devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/AbstractQuarkusExtension.java","lineNumber":182,"sourceCode":"        return profile;\n    }\n\n    private static FileCollection dependencyClasspath(SourceSet mainSourceSet) {\n        return mainSourceSet.getCompileClasspath().plus(mainSourceSet.getRuntimeClasspath())\n                .plus(mainSourceSet.getAnnotationProcessorPath())\n                .plus(mainSourceSet.getResources());\n    }\n\n    protected static String toManifestAttributeKey(String key) {\n        if (key.contains(\"\\\"\")) {\n            throw new GradleException(\"Manifest entry name \" + key + \" is invalid. \\\" characters are not allowed.\");\n        }\n        return String.format(\"%s.\\\"%s\\\"\", MANIFEST_ATTRIBUTES_PROPERTY_PREFIX, key);\n    }\n\n    protected static String toManifestSectionAttributeKey(String section, String key) {\n        if (section.contains(\"\\\"\")) {\n            throw new GradleException(\"Manifest section name \" + section + \" is invalid. \\\" characters are not allowed.\");\n        }\n        if (key.contains(\"\\\"\")) {\n            throw new GradleException(\"Manifest entry name \" + key + \" is invalid. \\\" characters are not allowed.\");\n        }\n        return String.format(\"%s.\\\"%s\\\".\\\"%s\\\"\", MANIFEST_SECTIONS_PROPERTY_PREFIX, section,\n                key);\n    }\n}\n","sourceCodeStart":164,"sourceCodeEnd":191,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/AbstractQuarkusExtension.java#L164-L191","documentation":"Thrown by AbstractQuarkusExtension.toManifestSectionAttributeKey() when a manifest SECTION name configured under quarkus.package.jar.manifest.sections contains a double-quote character. Section names are interpolated into nested Gradle property keys, so quotes are rejected.","triggerScenarios":"Configuring quarkus.package.jar.manifest.sections with a section name containing '\"' (e.g. sections.\"Sec\\\"tion\".<attr>=value), evaluated when building the manifest sections property keys.","commonSituations":"Dynamic section names built from input containing quotes; typos with stray quotes in application.properties; programmatic manifest section generation from unvalidated data.","solutions":["Remove the double-quote from the section name","Validate/escape section names before they reach Quarkus configuration","Use spec-compliant JAR manifest section names (e.g. alpha-numeric or dotted names)"],"exampleFix":"// before\nquarkus.package.jar.manifest.sections.\"My\\\"Section\".foo=bar\n// after\nquarkus.package.jar.manifest.sections.\"My-Section\".foo=bar","handlingStrategy":"validation","validationCode":"fun requireNoQuoteSection(section: String) {\n  require('\"' !in section) { \"Manifest section name must not contain quotes: $section\" }\n}","typeGuard":"def isSafeManifestSection(s: String): Boolean = s != null && !s.contains('\"')","tryCatchPattern":"try { quarkusBuildTask.configureManifest() } catch (e: GradleException) {\n  if (e.message?.startsWith(\"Manifest section name\") == true) {\n    logger.error(\"Fix quoted section name in quarkus.package.jar.manifest.sections\")\n  } else throw e\n}","preventionTips":["Keep section names quote-free","Validate dynamic section names from input","Use dotted/alpha-numeric section names per the manifest spec"],"tags":["gradle","manifest","validation"],"backgroundTag":"invalid-manifest-attribute-name","analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}