New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[management] I can't submit a support ticket ! #1202

Closed
yang-dw opened this Issue Apr 9, 2018 · 5 comments

Comments

Projects
None yet
3 participants
@yang-dw

yang-dw commented Apr 9, 2018

the model of PrimaryOwnerEntity ,A field is missing,the errors below .

12:59:56.505 [gravitee-listener-22] INFO i.g.m.service.impl.TicketServiceImpl - Creating a support ticket: NewSupportEntity{subject='gongdan', content='gongdan 222222222', application='ebc65abb-09b8-498c-865a-bb09b8a98c29', api='038927f4-0cad-489c-8927-f40cad489c11', copyToSender='true'}
12:59:57.301 [gravitee-listener-22] ERROR i.g.m.service.impl.EmailServiceImpl - Error while sending email notification
freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> application.primaryOwner.username [in template "supportTicket.html" at line 12, column 75]


Tip: It's the step after the last dot that caused this error, not those before it.

Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??

@brasseld brasseld added the type: bug label Apr 9, 2018

yang-dw added a commit to yang-dw/gravitee-management-rest-api that referenced this issue Apr 9, 2018

@NicolasGeraud

This comment has been minimized.

Member

NicolasGeraud commented Apr 9, 2018

@yang-dw I thing it's better to fix the template (with the displayName) instead of adding the username in the PrimaryOwnerEntity.

wdyt ?

@yang-dw

This comment has been minimized.

yang-dw commented Apr 9, 2018

yeah , only I can't find the template where it is

@yang-dw

This comment has been minimized.

yang-dw commented Apr 9, 2018

ok,I corrected it

yang-dw added a commit to yang-dw/gravitee-management-rest-api that referenced this issue Apr 9, 2018

@NicolasGeraud

This comment has been minimized.

Member

NicolasGeraud commented Apr 9, 2018

perfect, thanks for your contribution.

By the way, you could have forcepush your code on the previous pull request instead of close it and open a new one.

NicolasGeraud added a commit to gravitee-io/gravitee-management-rest-api that referenced this issue Apr 9, 2018

@NicolasGeraud NicolasGeraud added this to the 1.15.1 milestone Apr 10, 2018

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