Jump to content

AndreC

Members
  • Posts

    44
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by AndreC

  1. Here is what I did for the moment, not ideal but better than public schedules;

    Created a folder and set of READ and EXECUTE permissions for each group.

    Duplicated the common reports to each of the folder and only users within those group have permissions to READ and EXECUTE on those folders.

    This does not prevent someone to see that someone else has a scheduled report but at least if prevent them from seeing the parameters of the job.

    What would be nicer is to associate some permissions on the job itself, where the default would be private, but a user might decide to expose it to the group or just make it public.

    Also permission to see/edit the job based on roles would be nice as well. xxx_READ would only show there is a schedule

    xxx_EDIT would allow to edit that schedule. So a schedule could have the permissions xxx_EDIT but not yyy_EDIT and therefore only users of group xxx would be able to edit the schedule..

     

    Hopefully this can be added in a future release of the CE.

     

     

  2. We need to hide the list of reports sheduled by other users.

    Here is what we have so far;

     

    We created many ROLES that correspond to some user group.

    We then created users that beloing to one or many groups.

    for example;

     

    GROUPS:

    USG1_READ, USG1_EXECUTE, USG2_READ, USG2_EXECUTE

     

    USERS:

    USER1 has USG1_READ, USG1_EXECUTE, ROLE_USER

    USER2 has USG2_READ, USG2_EXECUTE, ROLE_USER

     

    each user is allow to schedule reports.

    We would like users to only see/(edit?) schedules from their own group.

     

    Currently all reports are stored in the ROOT folder for easier maintenance. 

    We use to have a copy of the report in each group subfolder but that became unmanageable during report updates..

    Any suggestions someone?

     

    Thanks

     

  3. I restored a backup from my community edition which has no organization.

    I had created a new theme but even without using it (meaning using the default theme) I have the issue with my users but not with the superuser.

     

    I just tried again the superuser and set the custom theme from the organisation as active and still good for that user.

     

    I will now deleted the theme and still the same for both users.. bad with any users from the "organization_1" and good for those without organization.

     

     

     

  4. Hi,

    I think i am getting somewhere here but still no clue how to fix it in Community and/or Commercial (PRO) version

     

    It seem to be happening only when the user belong to an "organisation"

    I created a test user that has the proper roles but not belonging to any organisation and it works.

     

    Now I need to find a way to remove them from any organisation or find a way to fix it permanently.

    Any idea?

     

  5. Basically I see that for all reports, mine of the samples.

     

    Today I have installed JRS on Amazon, the pro version.

    OOTB it show proper headers.

    Then I imported my set of reports and users.

    When I connect using one of my user (mine for instance) it show my problem, regardless of the sample reports or my own.

    When using "superuser" i dont get this on either reports.

    It seem to be associated to some roles or user profile..

    I will keep investigating unless you have an idea.

     

    Ok, i tried, still on the Pro version, to add a new user, and still same issues.

     

    So far only the "superuser" does not have the issue.

     

    Thanks

  6. JasperReport Server 5.2 as well as 5.5

     

    Using IE 11 on Windows 8.1 if you open the Console.

     

    Looking at webapps/jasperserver/WEB-INF/jsp/templates/addFolder.jsp you will notice that many tags are not matched properly.

     

    Line 56:

    See here how the it is closed twice.. it should look like this;

    or

     

    Line: 62

     

    Here the tag span is open, then spring (self close) then span open again, then close than button close...

    There is one missing. (the line 61 is good)

    should look like this;

     

     

    I found plenty more in other jsp from the same directory. If you open them in Eclipse and that it is configure for validation you should see all these.

     

    Some browser just ignore the errors but still this is not good html.

     

     

  7. Hi,

    I've noticed that IE is reporting lots of those messages in the jasperserver repository page.

     

    HTML1300: Navigation occurred.File: j_spring_security_check DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337File: login.htmlHTML1500: Tag cannot be self-closing. Use an explicit closing tag.File: flow.html, Line: 1150, Column: 17HTML1508: Unmatched end tag.File: flow.html, Line: 1160, Column: 134HTML1508: Unmatched end tag.File: flow.html, Line: 1332, Column: 133HTML1508: Unmatched end tag.File: flow.html, Line: 1333, Column: 147HTML1508: Unmatched end tag.File: flow.html, Line: 1334, Column: 125

     

     

    after looking at the source I see that the message are rights as some <span> tags are not all closed;

    see example here;

     

        <t:putAttribute name="footerContent">            <button id="addFolderBtnAdd" class="button action primary up" tabindex="3"><span class="wrap"><spring:message code="dialog.addFolder.add" javaScriptEscape="true"/></span><span class="icon"></span></button>            <button id="addFolderBtnCancel" class="button action up" tabindex="4"><span class="wrap"><spring:message code="dialog.file.cancel" javaScriptEscape="true"/><span class="icon"></span></button>    </t:putAttribute>

     

  8. I have the same in my catalina.out, but the server still seem to work...

     

    INFO: TLD skipped. URI: http://www.springframework.org/tags is already defined
    Creating ActionModelService object.
    Creating action model infrastructure.
    2014-02-22 16:05:25,649 ERROR JNDIResourceProvider,localhost-startStop-1:75 - error closing context
    javax.naming.OperationNotSupportedException: Context is read only
            at org.apache.naming.NamingContext.checkWritable(NamingContext.java:962)
            at org.apache.naming.NamingContext.close(NamingContext.java:762)
            at com.tonbeller.tbutils.res.JNDIResourceProvider.close(JNDIResourceProvider.java:72)
            at com.tonbeller.tbutils.res.CompositeResourceProvider.close(CompositeResourceProvider.java:56)
            at com.tonbeller.tbutils.res.ResourcesFactory.initialize(ResourcesFactory.java:163)
            at com.tonbeller.tbutils.res.ResourcesFactory.<init>(ResourcesFactory.java:92)
            at com.tonbeller.tbutils.res.ResourcesFactory.<clinit>(ResourcesFactory.java:89)
            at com.tonbeller.tbutils.res.ResourcesFactoryContextListener.contextInitialized(ResourcesFactoryContextListener.java:23)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
            at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1120)
            at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1678)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
            at java.util.concurrent.FutureTask.run(FutureTask.java:166)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:701)
    Feb 22, 2014 4:05:27 PM com.sun.jersey.spi.spring.container.servlet.SpringServlet getContext
     
  9. Sorry the attachments did not work,

    here is a block you can add to your existing db.xml. Just note that this way you will create more tables than required but it seem they don't do any harm.

     

    conf_source/db/oracle/db.xml

     

     

    description="run ddl for jasperserver pro db">

     

    description="run ddl for jasperserver db">

     

    description="run ddl for js db">

     

     

  10. Today I have face the same problem.

     

    We are using AWS RDS for our database and already have an Oracle instance for our data.

     

    Then in our previous version of jasper (4.0.0) we had setup our Oracle as our datasource for the data and an MySQL for the jasperdb.

     

    While this woked good it added lot of cost for us, so I looked at migrating to Oracle for the jasperdb.

     

    It took me a while and many tries but then figured out that all it was missing was few configs to create the missing tables.

     

    Since we still dont make use of any Pro features, but only an unsupported database, I assume it is ok to share my changes so others can take advantage of Oracle for the CE edition.

     

    Again, this will only allow you to use Oracle as the database for the CE and does not add any of the Pro features.

     

    The first thing I did is to follow the steps outlined here "http://community.jaspersoft.com/questions/543372/changing-jasper-server-postgres-mysql" but for Oracle instead of MySQL.

     

    Here are the basic steps;

     

    ./js-export.sh --everything --output-zip postgresbackup.zip

     

    Now modify the default_master.properties file with the required informations for your oracle instance. You can use the oracle_master.properties as a reference.

     

    Then I had to change the hibernate dialect in the build_conf/default/hibernate.cfg.xml . Look for the hibernate line and change it for org.hibernate.dialect.Oracle10gDialect

     

    Next, you will need to copy the ojdbc driver to the conf_source/ieCe/lib/

     

     cp conf_source/db/oracle/ojdbc6-11.2.0.2.jar conf_source/ieCe/lib/

     

    now install the attached files as follow;

     

    db.xml -> conf_source/db/oracle/db.xml

     

    js-create.ddl -> install_resources/sql/oracle/js-create.ddl

     

     

     

    Now you are ready to run the buildomatic scripts to create the Oracle repository.

     

    ./js-ant create-js-db

    ./js-ant create-sugarcrm-db 

    ./js-ant create-foodmart-db

    ./js-ant load-sugarcrm-db 

    ./js-ant load-foodmart-db

    ./js-ant update-foodmart-db

    ./js-ant init-js-db-ce

    ./js-ant import-minimal-ce

    ./js-ant import-sample-data-ce

     

    Only the commands in bold are absolutely necessary; the others load sample databases and reports. It's up to you whether you want them or not.

     

     Next you should be able to run your import to populate your Oracle repository from your backup.

     

    ./js-import.sh --input-zip postgresbackup.zip

     

    Once this is fully loaded you are ready to modify your webapp files to tell Jasper to use the new Oracle repository

     

    - Next, modify your context.xml file

     

    Your context.xml file, which is under [TOMCAT_HOME]/webapps/jasperserver/META-INF, will contain JNDI entries that point to the old Postgres database. You'll need to modify the entries there with the right JDBC URL's,  and the right username/password.

     

    Also, make sure to delete the [TOMCAT_HOME]/conf/Catalina/localhost/jasperserver.xml file (if it's there), because Tomcat will check for the existence of this file before reading in the context.xml file you just modified.

     

    - Start up your Tomcat server

     

    - Log in (Hopefully this works)

     

     

     

    Thanks to gdmoreno to give me the initial steps 

     

  11. Hi

    I've just notice a weird issue with login user on jasperreport server 5.2

     

    I have this user name "joeuser" which has some permissions, like ROLE_ADMINISTRATOR for example

    Then I have this user joeuser_readonly which only has the READONLY permission

    now if I login with the second user "joeuser_readonly" it seem like it inherit all of the permission from "joeuser" as well

    if the user was "joeuser_admin" then there are no issues.

    is the permissions based on the username plus a wildcard?? such that all permissions from joeuser will be pass down to any users joeuser* ?

     

     

×
×
  • Create New...