Skip to content
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

GetFeatureInfo bug while solving "relation reference" widget "display expression" values #27652

Closed
qgib opened this issue Sep 12, 2018 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Server Related to QGIS server stale Uh oh! Seems this work is abandoned, and the PR is about to close.

Comments

@qgib
Copy link
Contributor

qgib commented Sep 12, 2018

Author Name: Tudor Bărăscu (@tudorbarascu)
Original Redmine Issue: 19828
Affected QGIS version: 3.3(master)
Redmine category:qgis_server


Test already in:

tests/src/python/test_qgsserver_wms_getfeatureinfo.py

with

@unittest.expectedFailure

    # TODO make GetFeatureInfo show what's in the display expression and enable test
    @unittest.expectedFailure
    def testGetFeatureInfoRelationReference(self):
        """Test GetFeatureInfo solves "relation reference" widget "display expression" values"""
        mypath = self.testdata_path + "test_project_values.qgz"
        self.wms_request_compare('GetFeatureInfo',
                                 '&layers=layer2&styles=&' +
                                 'VERSION=1.3.0&' +
                                 'info_format=text%2Fxml&' +
                                 'width=926&height=787&srs=EPSG%3A4326' +
                                 '&bbox=912217,5605059,914099,5606652' +
                                 '&CRS=EPSG:3857' +
                                 '&FEATURE_COUNT=10' +
                                 '&WITH_GEOMETRY=True' +
                                 '&QUERY_LAYERS=layer2&I=487&J=308',
                                 'wms_getfeatureinfo-values2-text-xml',
                                 'test_project_values.qgz')

The server should have resolved the values and output:

...
<GetFeatureInfoResponse>
 <Layer name="layer2">
  <Feature id="1">
   <Attribute value="value PE 1000 PN6" name="id"/>
...

but it outputs instead:

...
<GetFeatureInfoResponse>
 <Layer name="layer2">
  <Feature id="1">
   <Attribute value="1" name="id"/>
...


@qgib
Copy link
Contributor Author

qgib commented Jan 25, 2019

Author Name: Alessandro Pasotti (@elpaso)


Can you please check current master?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Jan 25, 2019

Author Name: Tudor Bărăscu (@tudorbarascu)


Hi Alessandro, yes.. I can replicate..

It seems somehow the qgz is corrupted or something.. again.. (see #7867 )

Until I try to fix it fully and maybe get to the bottom of this I've attached the test_project_values.qgs project that you can use and debug. You have the request in the tests and just need to change ggz to qgs for that specific test. Of course, the project needs to be in the tests/testdata/qgis_server/ dir.

Thanks a lot for you very precious work.


  • status_id was changed from Feedback to Open
  • 14174 was configured as test_project_values.qgs

@qgib
Copy link
Contributor Author

qgib commented Feb 7, 2019

Author Name: Tudor Bărăscu (@tudorbarascu)


You can replicate now even with the qgz project (getCapabilities not working on it though) so please let me know if there's anything else that I can do. Thank you.

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server labels May 25, 2019
@Pedro-Murteira
Copy link

Hello @tudorbarascu, is this issue still valid on more recent releases?

@gioman gioman added the Feedback Waiting on the submitter for answers label Mar 11, 2022
@github-actions
Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Mar 26, 2022
@github-actions
Copy link

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Server Related to QGIS server stale Uh oh! Seems this work is abandoned, and the PR is about to close.
Projects
None yet
Development

No branches or pull requests

3 participants