Contextual task befor transaction
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- java
- Domínio
- backend-api-design
Direção de pesquisa
Start by locating ContractInterface.beforeTransaction and SerializerInterface.toBuffer/fromBuffer, then inspect their implementations and tests. Trace how transaction parameters and Context are currently propagated; done means hooks and custom serializers can access the active Context and transaction inputs without ThreadLocal, with compatibility covered by tests.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Current Status
ContractInterface.beforeTransaction receives the active Context, but not the parameters passed to the transaction method. The SerializerInterface methods (toBuffer and fromBuffer) do not receive a Context.
This prevents hooks and custom serializers from directly accessing both the transaction context and its input data. For example, a custom serializer that needs to perform Jakarta Bean Validation during deserialization cannot access the current Context through the API. A workaround is to pass it through a ThreadLocal and a custom Context implementation, relying on the shim's current thread-per-request behavior.
Expected
Contract hooks and custom serializers should be able to access the active transaction Context. The hook should also be able to inspect the parameters intended for the transaction method.
This would allow developers to perform shared parameter validation, make context-dependent decisions, and implement context-aware serialization without relying on ThreadLocal.
Solution
Consider adding the transaction parameters to the hook:
default void beforeTransaction(final Context ctx, final Object... params)
### Please let us know if you plan to work on this.
Yes!
- Linguagem predominante
- Java
- Estrelas
- 322
- Forks
- 210
- Merge médio
- 22h 13min
- PRs com merge (30d)
- 17
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de hyperledger/fabric-chaincode-java
-
Optimize ClassGraph ScanningAbertaenhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
hyperledger/fabric-chaincode-java#627 ·
Mantenedores costumam responder em até 1 dia
-
DataType nested classAbertabug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 75/100
hyperledger/fabric-chaincode-java#626 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
hyperledger/fabric-chaincode-java#625 ·
Mantenedores costumam responder em até 1 dia
-
Read/write batchingTalvez livre de novo @jadebluestar assumiu há 120 dias e não há nenhum pull request aberto. Abertaenhancement help wanted
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
hyperledger/fabric-chaincode-java#378 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
Publish docs on pushAberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 52/100
hyperledger/fabric-chaincode-java#372 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de hyperledger/fabric-chaincode-java
Issues semelhantes
-
code-maintenance
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
Mantenedores costumam responder em até 1 dia
-
bug priority: medium Review effort [1-5]: 3 status: needs-triage type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
carlos-emr/carlos#5258 ·
Mantenedores costumam responder em até 1 dia
-
bug: author create/update with an unknown avatarId returns 404 instead of 400 UNKNOWN_REFERENCETalvez já em andamento @Vinu2111 assumiu hoje. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
atomityhq/blog-cms#59 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
PlatformSpecific.hasGreenThreads incorrectly returns false for JDK updates and non-GA versionsAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 1 dia
-
dev/release: verify-release-candidate.sh runs 0 Java tests with Debian's MavenTalvez já em andamento @kou assumiu hoje. AbertaType: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
apache/arrow-adbc#4947 ·
Mantenedores costumam responder em até 1 dia