Jump to content
We've recently updated our Privacy Statement, available here ×

neil.walker

Members
  • Posts

    17
  • Joined

  • Last visited

neil.walker's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. Thanks for all the help. But the following still allows blank. Am I missing something because a standard regex disallows blank but Jasper is allowing it. Setting 'mandatory' does nothing either ^[0-9]{10,10}$
  2. We need to allow restricted access to Jasper server for people to run and view reports, and it goes inside of an existing web application, so iframe is the only option I believe.
  3. Thanks, good to know. You'd think there would be a way to update a report without losing all your settings...
  4. Ok, but when I enter this exactly as you put, it gives an error if the length is wrong, but on a blank entry it just allows it. Do I need to do anything else other than the pattern? I think there's something a little flaky going on with the validation. If I change it from text to number and say the min is 1000 and the max is 9999, if I enter a number too small it gives correct answer, if I enter 1234567890 it lets it through, and if I enter any other number, e.g. 12345 I get this: There was an error on the server. Try again or contact site administrators. (Error UID: d50cf057-2dbf-41fa-8470-babbe62dbc71) Regarding the mandatory query, I guess that's a separate question, but it doesn't seem to do anything on any input other than put a * next to the name. thanks.
  5. hello, I have token based authentication working (it's an IFRAME in another website) as per: https://community.jaspersoft.com/documentation/jasperreports-authentication-cookbook/v56/token-based-authentication However I have a problem: 1. login to my system as user1 and jasper is passed through a unique token for user1 and logs in 2. logout of my system (not jasper) then login as user2 and jasper is passed through a unique token for user2, but jasper logs in as user1 Can anyone let me know how to fix this session based error.
  6. Thanks, seemed to work after testing, but is there a way to disallow blank entries? I couldn't figure out the regex to put in the pattern (I'd rather not write code) and selecting 'mandatory' seems to do absolutely nothing to the field other than put a '*' next to the field name.
  7. thanks, that took some doing trying to find the 'pattern'. Seems the entire 'edit' option for a report is missing from the documentation. But can I ask why ticking 'mandatory' on the input control shows it with an asterisk in the report but does not actually do anything, i.e. I can leave it blank and it's still happy....
  8. Thanks :) Just a couple of things please: 1. Where in the online documentation is this mentioned because I couldn't find it anywhere, even after you told me how to do it. 2. Is there any way to define this in the report because it seems to be resetting sometimes.
  9. Hello, I managed a while ago to figure out how to get the dialog box for a report to dock to the left, rather than float in the middle, but it's now back to floating and I cannot figure out at all how to do this. I've trawled through the documentation too :( Anyone help? thanks.
  10. Hello, How do I add validation to parameters, e.g. I have a string that is requested but I want to ensure it is only numeric, or max length of 10, or not empty, etc. so when I try to run the report it stops me and shows the error? I've also tried raising an exception in the stored procedure the reports call, but instead of a message, the report fails badly with a stack trace in Studio preview mode. I rather hoped if all else failed it would show the custom exception message rather than simply failing. I've searched and searched the internet and the documentation and absolutely nothing comes up. Surely this is a common enough thing that should be in the documentation... thanks for any help.
  11. Hello, I am using a stored procedure as my dataset. It has now changed and has different field names. If I edit the dataset via the 'dataset and query...' I can update it fine and on clicking 'Read' it gets all the new fields,etc, but it does nothing with it. When I go back to the Outline view under fields they are all the same as my original query. So how do I get the designer to update the fields with the correct ones so I can drop them into my report design, because manually deleting then manually adding is a big task. I then thought it might have been the 'tableDataset', but updating that simply returned 'no data' on doing a preview and didn't update the fields either (so I've no idea what 'tableDataset' is or what it's meant for. the only way I could get it to work was to create a new report, which seems a bit daft. thanks.
  12. found it. 1. all folders are lowercase so Reports becomes reports 2. the report has to use the 'resource id' 3. the resource ID has to match the case so my URL was http://localhost:8082/jasperserver/rest_v2/reports/reports/TestReport.pdf So, it would be nice if the API guide was a little bit more helpful...
  13. Hello, What do I put in the 'path/to/report'? as detailed in the rest v2 api: http://<host>:<port>/jasperserver/rest_v2/reports/path/to/report.xxx I cannot find a single instruction on what you enter here, so I'm starting to think I'm doing something wrong. If I look in Jasper Server it has as folders: root Inside root there is a folder called 'Reports' and inside here is my report called 'test' So I entered: http://localhost:8082/jasperserver/rest_v2/reports/test.pdf http://localhost:8082/jasperserver/rest_v2/reports/Reports/test.pdf http://localhost:8082/jasperserver/rest_v2/reports/reports/test.pdf The report also has a 'resource id' so I tried that and that didn't work either. Thing is, I don't know this is right because you can give a report any name you want including special characters and spaces so how can you enter this into the url if that's the case. I can get it to work with other basic stuff like list of data sources, etc so I know the web service is working fine.
  14. Sorry, it's working :) I went into work and it just worked. I'm guessing it's a VPN issue, though strange that JXplorer works. So leaving this post active in case it might help anyone else with getting Jasper working with AD, i.e. the above xml works. But the cookbook definitely says the preferred approach is to update the master file...
  15. Hello, I said this because the authentication cookbook manual says you can do it by entering the following in the default_master.properties: external.ldapUrl=ldap://hostname:389/dc=example,dc=comexternal.ldapDn=cn=Administrator,dc=example,dc=com external.ldapPassword=passwordSo I presumed if I did this, on rebuilding it might magically put the right values in :) Anyway, if you assume my credentials are correct (which they are), I get the following in my logs, which shows something is working just not fully working.... Authentication attempt using com.jaspersoft.jasperserver.api.security.externalAuth.wrappers.spring.ldap.JSLdapAuthenticationProviderProcessing authentication request for user: pharmacySearching for user 'pharmacy', with user search [ searchFilter: '(sAMAccountName={0})', searchBase: 'OU=Users', scope: subtree, searchTimeLimit: 0, derefLinkFlag: false ]Got Ldap context on server 'ldap://10.17.188.4:389/dc=harris,dc=local'Searching for entry under DN 'dc=harris,dc=local', base = 'ou=Users', filter = '(sAMAccountName={0})'Found DN: cn=pharmacy,ou=UsersAttempting to bind as cn=pharmacy,ou=Users,dc=harris,dc=localRemoving pooling flag for user cn=pharmacy,ou=Users,dc=harris,dc=localFailed to bind as cn=pharmacy,ou=Users: org.springframework.ldap.AuthenticationException: [LDAP: error code 49 - 8009030C: LdapErr: DSID-0C0903AA, comment: AcceptSecurityContext error, data 532, v1772 Bad credentialsI can connect using JXplorer to my ldap server (it's a lightweight version of Microsoft AD) just fine and my credentials for the user are also tested fine, it's just not working. Here are my settings, if anyone can see anything obvious. Thanks. In JXplorer the user credentials are: distinguished name: CN=pharmacy,OU=Users,DC=harris,DC=local <bean id="ldapAuthenticationProvider" class="com.jaspersoft.jasperserver.api.security.externalAuth.wrappers.spring.ldap.JSLdapAuthenticationProvider"> <constructor-arg> <bean class="com.jaspersoft.jasperserver.api.security.externalAuth.wrappers.spring.ldap.JSBindAuthenticator"> <constructor-arg> <ref local="ldapContextSource"/> </constructor-arg> <property name="userSearch"> <ref local="userSearch" /> </property> </bean> </constructor-arg></bean> <bean id="ldapContextSource" class="com.jaspersoft.jasperserver.api.security.externalAuth.ldap.JSLdapContextSource"> <constructor-arg value="ldap://10.17.188.4:389/DC=harris,DC=local"/> <property name="userDn" value="CN=ldadmin,OU=Users,DC=harris,DC=local"/> <property name="password" value="xxxxx"/> <property name="referral" value="follow" /></bean> <bean id="userSearch" class="com.jaspersoft.jasperserver.api.security.externalAuth.wrappers.spring.ldap.JSFilterBasedLdapUserSearch"> <constructor-arg index="0"> <value>OU=Users</value> </constructor-arg> <constructor-arg index="1"> <value>(sAMAccountName={0})</value> </constructor-arg> <constructor-arg index="2"> <ref local="ldapContextSource" /> </constructor-arg> <property name="searchSubtree"> <value>true</value> </property> </bean> Thanks. Sorry, I cannot seem to format the XML very well with this forum's editor...
×
×
  • Create New...