[JBoss Portal] - Re: CMS security not working
by sohil.shah@jboss.com
anonymous wrote :
| I try and I got the following :
| - "Create a folder", in "/MyTopDirectory/TheUsableDirectory", for a user with "myRole"
| ==> exception "access denied"
|
If the role 'myRole' has write access on '/MyTopDirectory/TheUsableDirectory' then you should be allowed to create a Folder under '/TheUsableDirectory'. If thats failing, I will have to look into trying to reproduce this and fix it if it is actually a bug. Let me look into this.
anonymous wrote :
| But there is another effect I don't understand : "myRole" got read access to "/MyTopDirectory/TheUsableDirectory" and not to other directories where it has not been granted write access.
|
Specifying 'write' access to '/TheUsableDirectory' should recurse to other directories under '/TheUsableDirectory', and since write implies read, you should have 'read' access there. *Except ofcouse if you specifically specify permissions on nodes under this, which override the recursing permissions*
Are you overriding the recursing permissions the nodes?
anonymous wrote :
| I try to not give read access to all roles on "/"
|
Are you atleast granting '/' access to roles that should be granted this?
Reason I ask is if you grant read access to 'MyTopDirectory" but no access to '/', then you will not get access to 'MyTopDirectory' for obvious security reasons. Permissions only recurse down the tree, not up the tree.
Hope this clarifies some issues.
Thanks and Merry Christmas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115107#4115107
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115107
18 years, 4 months
[JBoss Seam] - Re: error message & trinidad
by ebu
it is indeed, otherwise there would be no InvalidStateException. The problem appeared to be quite obvious - this exception just was not catched. After reading validation part of seam ref i somehow decided that seam cares about catching validation exception itself. But as it became clear after studying dvd example it doesn't. Thus after adding an interceptor around my bean i got my messages in place:
| try {
| return ctx.proceed();
|
| } catch (InvalidStateException e) {
| InvalidValue[] vals = e.getInvalidValues();
| for (InvalidValue val: vals) {
| FacesMessages.instance().add(val);
| }
| Transaction.instance().setRollbackOnly();
|
| return null;
| }
|
the only problem i still have is that trinidads inputText tag doesn't want to show messages forcing me to use h:inputTag with h:message instead...
Havn't somebody had some issues with using trinidad to display messages?
wbr, eugene.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115102#4115102
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115102
18 years, 4 months
[JBoss Seam] - Re: Transactional Method Flush
by DiegoCoronel
ty, i got then...
|
| validator.assertFalse=falha na valida\u00E7\u00E3o
| validator.assertTrue=falha na valida\u00E7\u00E3o
| validator.future=deve ser uma data futura
| validator.length=comprimento deve estar entre {min} e {max}
| validator.max=deve ser menor ou igual a {value}
| validator.min=deve ser maior ou igual a {value}
| validator.notNull=n\u00E3o deve ser nulo
| validator.past=deve ser uma data passada
| validator.pattern=deve seguir o padr\u00E3o "{regex}"
| validator.range=deve estar entre {min} e {max}
| validator.size=tamanho deve estar entre {min} e {max}
| validator.email=deve ser um endere\u00E7o de e-mail bem formado
|
| org.jboss.seam.loginFailed=Falha no Login
| org.jboss.seam.loginSuccessful=
|
| org.jboss.seam.TransactionFailed=Falha na transa\u00E7\u00E3o
| org.jboss.seam.NoConversation=O fluxo terminou, expirou ou estava processando outro pedido
| org.jboss.seam.IllegalNavigation=Navega\u00E7\u00E3o Ilegal
| org.jboss.seam.ProcessEnded=Processo \#0 j\u00E1 est\u00E1 encerrado
| org.jboss.seam.ProcessNotFound=Processo \#0 n\u00E3o encontrado
| org.jboss.seam.TaskEnded=Tarefa \#0 j\u00E1 est\u00E1 encerrada
| org.jboss.seam.TaskNotFound=Tarefa \#0 n\u00E3o encontrada
| org.jboss.seam.NotLoggedIn=Por favor, primeiro realize o log in
|
| javax.faces.component.UIInput.CONVERSION=o valor n\u00E3o pode ser convertido para o tipo esperado
| javax.faces.component.UIInput.REQUIRED=preenchimento obrigat\u00F3rio
| javax.faces.component.UIInput.UPDATE=Ocorreu um erro durante o processamento da informa\u00E7\u00E3o enviada
| javax.faces.component.UISelectOne.INVALID=valor inv\u00E1lido
| javax.faces.component.UISelectMany.INVALID=valor inv\u00E1lido
|
| javax.faces.converter.BigDecimalConverter.DECIMAL=o valor deve ser um n\u00FAmero
| javax.faces.converter.BigDecimalConverter.DECIMAL_detail=o valor deve ser um n\u00FAmero decimal com um ou mais d\u00EDgitos, opcionalmente seguido por um ponto e a fra\u00E7\u00E3o, ex. {1}
| javax.faces.converter.BigIntegerConverter.BIGINTEGER=o valor deve ser um n\u00FAmero inteiro
| javax.faces.converter.BigIntegerConverter.BIGINTEGER_detail=o valor deve ser um n\u00FAmero inteiro com um ou mais d\u00EDgitos
| javax.faces.converter.BooleanConverter.BOOLEAN=valor deve ser verdadeiro ou falso
| javax.faces.converter.BooleanConverter.BOOLEAN_detail=valor deve ser verdadeiro ou falso (qualquer outro valor diferente de verdadeiro ser\u00E1 falso)
| javax.faces.converter.ByteConverter.BYTE=valor deve ser um n\u00FAmero entre 0 e 255
| javax.faces.converter.ByteConverter.BYTE_detail=valor deve ser um n\u00FAmero entre 0 e 255
| javax.faces.converter.CharacterConverter.CHARACTER=valor deve ser um caractere
| javax.faces.converter.CharacterConverter.CHARACTER_detail=valor deve ser um caractere ASCII v\u00E1lido
| javax.faces.converter.DateTimeConverter.DATE=valor deve ser uma data
| javax.faces.converter.DateTimeConverter.DATE_detail=valor deve ser uma data, ex. {1}
| javax.faces.converter.DateTimeConverter.TIME=valor deve ser uma hora
| javax.faces.converter.DateTimeConverter.TIME_detail=valor deve ser uma hora, ex. {1}
| javax.faces.converter.DateTimeConverter.DATETIME=valor deve ser uma data e uma hora
| javax.faces.converter.DateTimeConverter.DATETIME_detail=valor deve ser uma data e uma hora, ex. {1}
| javax.faces.converter.DateTimeConverter.PATTERN_TYPE=um padr\u00E3o ou tipo deve ser especificado para converter o valor
| javax.faces.converter.DoubleConverter.DOUBLE=valor deve ser um n\u00FAmero
| javax.faces.converter.DoubleConverter.DOUBLE_detail=valor deve ser um n\u00FAmero entre 4.9E-324 e 1.7976931348623157E308
| javax.faces.converter.EnumConverter.ENUM=valor deve poder ser convertido para um enum
| javax.faces.converter.EnumConverter.ENUM_detail=valor deve poder ser convertido para um enum ou de um enum que contenha a constante {1}
| javax.faces.converter.EnumConverter.ENUM_NO_CLASS=valor deve poder ser convertido para um enum ou de um enum, por\u00E9m nenhum enum foi fornecido
| javax.faces.converter.EnumConverter.ENUM_NO_CLASS_detail=valor deve poder ser convertido para um enum ou de um enum, por\u00E9m nenhum enum foi fornecido
| javax.faces.converter.FloatConverter.FLOAT=valor deve ser um n\u00FAmero
| javax.faces.converter.FloatConverter.FLOAT_detail=valor deve ser um n\u00FAmero entre 1.4E-45 e 3.4028235E38
| javax.faces.converter.IntegerConverter.INTEGER=valor deve ser um n\u00FAmero inteiro
| javax.faces.converter.IntegerConverter.INTEGER_detail=valor deve ser um n\u00FAmero inteiro entre -2147483648 e 2147483647
| javax.faces.converter.LongConverter.LONG=valor deve ser um n\u00FAmero inteiro
| javax.faces.converter.LongConverter.LONG_detail=valor deve ser um n\u00FAmero inteiro entre -9223372036854775808 e 9223372036854775807
| javax.faces.converter.NumberConverter.CURRENCY=valor deve ser um valor monet\u00E1rio
| javax.faces.converter.NumberConverter.CURRENCY_detail=valor deve ser um valor monet\u00E1rio, ex. {1}
| javax.faces.converter.NumberConverter.PERCENT=valor deve ser um percentual
| javax.faces.converter.NumberConverter.PERCENT_detail=valor deve ser um percentual, ex. {1}
| javax.faces.converter.NumberConverter.NUMBER=valor deve ser um n\u00FAmero
| javax.faces.converter.NumberConverter.NUMBER_detail=valor deve ser um n\u00FAmero
| javax.faces.converter.NumberConverter.PATTERN=valor deve ser um n\u00FAmero
| javax.faces.converter.NumberConverter.PATTERN_detail=valor deve ser um n\u00FAmero
| javax.faces.converter.ShortConverter.SHORT=valor deve ser um n\u00FAmero inteiro
| javax.faces.converter.ShortConverter.SHORT_detail=valor deve ser um n\u00FAmero inteiro entre -32768 e 32767
|
| javax.faces.validator.DoubleRangeValidator.MAXIMUM=valor deve ser menor ou igual a {0}
| javax.faces.validator.DoubleRangeValidator.MINIMUM=valor deve ser maior ou igual a {0}
| javax.faces.validator.DoubleRangeValidator.NOT_IN_RANGE=valor deve estar entre {0} e {1}
| javax.faces.validator.DoubleRangeValidator.TYPE=valor n\u00E3o corresponde ao tipo correto
| javax.faces.validator.LengthValidator.MAXIMUM=value is must be shorter than or equal to {0} characters
| javax.faces.validator.LengthValidator.MINIMUM=value is must be longer than or equal to {0} characters
| javax.faces.validator.LongRangeValidator.MAXIMUM=valor deve ser menor ou igual a {0}
| javax.faces.validator.LongRangeValidator.MINIMUM=valor deve ser maior ou igual a {0}
| javax.faces.validator.LongRangeValidator.NOT_IN_RANGE=valor deve estar entre {0} e {1}
| javax.faces.validator.LongRangeValidator.TYPE=valor n\u00E3o corresponde ao tipo correto
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115099#4115099
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115099
18 years, 4 months
[JBoss Seam] - Re: Love the test support in seam except for...
by andrew.rw.robinson
For those that are interested, here is my hack:
TestBase.java:
| private static TestBase instance;
|
| /**
| * @see org.jboss.seam.mock.SeamTest#init()
| */
| @Override @BeforeClass @BeforeSuite
| public synchronized void init() throws Exception
| {
| if (instance == null)
| {
| instance = this;
| super.init();
| }
| else
| {
| for (Field field : BaseSeamTest.class.getDeclaredFields())
| {
| field.setAccessible(true);
| field.set(this, field.get(instance));
| }
| }
| }
|
| /**
| * @see org.jboss.seam.mock.SeamTest#cleanup()
| */
| @Override @AfterSuite(alwaysRun = true) @AfterClass
| public synchronized void cleanup() throws Exception
| {
| if (instance == this)
| {
| super.cleanup();
| instance = null;
| }
| else
| {
| for (Field field : BaseSeamTest.class.getDeclaredFields())
| {
| if (field.getType().isPrimitive())
| {
| continue;
| }
| field.setAccessible(true);
| field.set(this, null);
| }
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115090#4115090
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115090
18 years, 4 months